Jump to content

LunarBurn1

Member
  • Posts

    52
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by LunarBurn1

  1. command /clearchat:
    	permission: staff.clear
    	permission message: &cYou may not execute this command!
    	trigger:
    		loop 500 times:
    			broadcast " "

    That should work

  2. As far as I'm aware, there really isn't an effective way of removing blocks when players come in contact with them from the side...

    You could try something like:

    loop blocks in raidus 1 around player:
    	if loop-block is snow block:
    		set loop-block to air

    (Did not test, but should work)

  3. You would need to loop a couple hundred times, and broadcast a space each time.

    it should look something like this:

    loop 500 times:
    	broadcast " "

     

  4. As the person before me said, you need to use 'loop-player' instead of 'player', because there is no player in a periodical, or timed, event.
    Your fixed section of code should look like this:

    every 5 minutes:
        loop all players:
            if "%region at loop-player%" contains "afk":
                give green candle of unbreaking named "&a&lᴀꜰᴋ ᴛᴏᴋᴇɴ" to loop-player 
                send "&dYou got a &b AFK TOKEN &dfor being AFK!" to loop-player
                broadcast ""
                broadcast "&5All players in the AFK pit just got &5a&b AFK TOKEN!"
                broadcast ""

     

  5. Move line 5 to the bottom of the first section, so as to apply the conditions to it.

    Your code looks like this right now:

    command /dupe:
        cooldown: 2 minutes
        cooldown message: &7You last duplicated an item &2%elapsed time% &7ago, you may dupe again in &2%remaining time%
        trigger:
            give player player's held item
            if player's held item is not air:
                if player's held item is not nether star:
                    if player's held item is not a shulker box:
                        play sound "ENTITY_PLAYER_LEVELUP" or "BLOCK_RESPAWN_ANCHOR_CHARGE" to player

    It should look like this:

    command /dupe:
        cooldown: 2 minutes
        cooldown message: &7You last duplicated an item &2%elapsed time% &7ago, you may dupe again in &2%remaining time%
        trigger:
            if player's held item is not air:
                if player's held item is not nether star:
                    if player's held item is not a shulker box:
                        play sound "ENTITY_PLAYER_LEVELUP" or "BLOCK_RESPAWN_ANCHOR_CHARGE" to player
                        give player player's held item

     

  6. For the inventory, you could do something like this (untested, but should work in theory)

    if victim's inventory contains armor:

    As for the Enderchest/PVs, I'm not quite sure, since Skript does not have integration into the plugin Personal Vaults (as far as I'm aware).

    For Enderchest, you are using a Custom Enderchest plugin, which likely creates a Custom GUI and completely replaces the default Enderchest, so Skript's Enderchest support would not function for it.

    I do not know quite what to do for the PVs and EnderChests, but hopefully the inventory bit helps!

     

    • Like 1
  7. That should already be a thing. In this case, the skript only allows pvp if both players are wearing armor. Having armor in a PV, Enderchest, or simply in their inventory does not count as wearing it, so they should be protected regardless. 

    If I got your post request wrong, let me know lol

    • Confused 1
  8. I would just like to point out that, without further context, there's not much anyone can do to really help you. We would have to know what the boosts will affect, for one thing. For example, if this is to increase drop rates on a gens server, you would have to give us more information about what you are using for gens, and so on. 

  9. @paryx, in response to your previous question:

    If you are using something along the lines of

    if executor is console:

    You could make it send a message if the executor is not console, like this

    if executor is console:
    	#rest of your skript if it IS console
    else:
    	send "&cHey! You aren't console!" #change the text to whatever message you want

    Untested, but should work!

    Let me know if you need anything else!

  10. You could start by having a plugin that allows temporary rank access, like LuckPerms.
    Then you could make a custom command to execute the temporary rank command, either by using Skript or by using a Custom Commands plugin.
     

  11. Hey MrColin_! So, I looked at your skript, made some changes, tested it, and I think this what you're looking for:

    command /spawn:
    	trigger: &7Usage: &a/spawn
    	trigger:
    		set {teleporting.spawn.%player%::loc} to player's location
    		loop 5 times:
    			send action bar "&a&lTELEPORTING IN %6 - loop-value%" to player
    			play sound "block.note_block.pling" with volume 10 and pitch 1 to player
    			wait 1 second
    		if player's location is {teleporting.spawn.%player%::loc}:
    			set {spawn} to location(5755.926731864181, 81.5, 537.9135724377974)
    			set pitch of {spawn} to 15.299637
    			set yaw of {spawn} to 179.83743
    			teleport player to {spawn}
    			play sound "entity.enderman.teleport" with volume 10 and pitch 1 to player
    			set {teleporting.spawn.%player%} to false
    			send " "
    			send "&c&l&nTIMES UP!"
    			send "&a&lYou have been sent back to spawn!"
    			send " "
    		else:
    			play sound "entity.villager.death" with volume 10 and pitch 1 to player
    			send "&cYou MOVED! Teleportation cancelled!"

    Please let me know if any errors occur!

  12. Hey Monsterjoep! If you don't care what WorldEdit plugin you use, I would suggest using FAWE (FastAsyncWorldEdit).
    If you need the download for it, it's here.
    https://www.spigotmc.org/resources/fastasyncworldedit.13932/
    To add a plugin to your server, go to your server File Manager tab. Once in there, find the plugins folder. Click on that folder, and then upload (drag & drop the file, or click the paper with an up arrow) the plugin to that folder. Then restart your server, and it should be added!

    let me know if you need more help!

  13. Honestly, I agree 100%. 

    Personally I own a multi-gamemode server on minehut, and over the past 3 months, I've only gained about 3 players. Any time I go to advertise my server, it's lost in the sheer number of ads, not to mention the extreme amounts of color we see.

    Due to rank ad colors, the only advertisements you really see (because of all the bots) are the ones that are from high-ranked users/bots.

    Minehut. Please fix all the issue this dude acknowledged!

  14. Hey SlimeFroster! I believe I fixed your script! I added notes of what I changed to the areas where you added comments in the Skript! Please let me know if it doesn't work!

    command /ShopTest123:
        trigger:
            set {_gui} to a new chest inventory with 3 row with name "&6&lChoose The Shop!"
            set slot 11 of {_gui} to stone with name "&b&lBuyShop!"
            set slot 15 of {_gui} to grass with name "&2&lSellShop!"
            set slot 22 of {_gui} to barrier with name "&c&lExit."
            open {_gui} to player
     
    on inventory click:
        if name of event-inventory is "&6&lChoose The Shop!":
            if index of event-slot = 11:
                close player's inventory
                wait 5 ticks
                set {_gui} to a new chest inventory with 5 row with name "&b&lBuyShop!"
                set slot 44 of {_gui} to barrier with name "&c&lExit"
                set slot 36 of {_gui} to barrier with name "&c&lExit"
                set slot 40 of {_gui} to paper with name "&f&lPage 0/1"
                open {_gui} to player
    on inventory click:
        if name of event-inventory is "&6&lChoose The Shop!":
            if index of event-slot = 15:
                close player's inventory
                wait 5 ticks
                set {_gui} to a new chest inventory with 5 row with name "&2&lSellShop!"
                set slot 44 of {_gui} to barrier with name "&c&lExit"
                set slot 36 of {_gui} to barrier with name "&c&lExit"
                set slot 40 of {_gui} to paper with name "&7&lPage 0/1"
                set slot 0 of {_gui} to dirt with name "&2&l$0.1"
                open {_gui} to player
    on inventory click:
        if name of event-inventory is "&6&lChoose The Shop!":
            if index of event-slot = 22:
                close player's inventory
    on inventory click:
        if name of event-inventory is "&b&lBuyShop!":
            if index of event-slot = 44:
                close player's inventory
    on inventory click:
        if name of event-inventory is "&2&lSellShop!":
            if index of event-slot = 44:
                close player's inventory
    on inventory click:
        if name of event-inventory is "&b&lBuyShop!":
            if index of event-slot = 36:
                close player's inventory
    on inventory click:
        if name of event-inventory is "&2&lSellShop!":
            if index of event-slot = 36:
                close player's inventory
    on inventory click:
        if name of event-inventory is "&b&lBuyShop!":
            if index of event-slot = 40:
                cancel event
    on inventory click:
        if name of event-inventory is "&2&lSellShop!":
            if index of event-slot = 40:
                cancel event
    on inventory click:
        if name of event-inventory is "&2&lSellShop!":
            if index of event-slot = 0:
                if player has 1 dirt: #I added this line as before it just gave you money any time you clicked slot 0!        
                    remove 1 dirt from player's inventory #Skript doesn't register 'take' as a deletion or removal action- Use 'Remove' or 'Delete' in the future!
                    add 0.1 to money of player # Your issue here was that you used percentages when it wasn't necessary- As well you wrote it as you would when executing a command.
                    send "&2&lShop | SuccessFully Gave You $0.1"
                else:
                    send "&2&lShop | Get More Dirt!"
    on inventory click:
        if name of event-inventory is "&2&lSellShop!":   #I believe I fixed everything you had!!
            if index of event-slot = 0:
                cancel event

×
×
  • Create New...