Jump to content

Skript Help


TeamF

Recommended Posts

if player inventory contains emerald called "jump booster":
 apply jump boost to player for 2 sec

 

Can some1 fix my skript? im new and rely on forums so my skripts are terrible.  im trying  to  make an emerald called "jump booster" that gives you jump boost 2 untill it is removed from the inv. TY!

Thanks to any1 that can fix my half a** skript 😛

Kind regards, TeamF/Darth1013.

Link to comment
Share on other sites

command /jumpboostemerald:
    permission: op
    permission message: &cYou don't have the required permissions to use this!
    aliases: jbe
    trigger:
        give player 1 emerald named "&2Jump Boost Emerald" with lore " " and "&3>> &6An emerald that gives jump boost" to player
        send "&2You have been given 1 Jump Boost Emerald" to player


every 1 seconds
    loop all players:
        if player has 1 emerald named "&2Jump Boost Emerald" with lore " " and "&3>> &6An emerald that gives jump boost":
            make console execute command "/effect give %loop-player% jump_boost 5 2 true"

Link to comment
Share on other sites

every 1 second:
	loop all players:
		if loop-player's inventory contains emerald named "&6&lJump Booster":
			apply jump boost 2 to the loop-player for 1 second
			

Try that, it should work

 

Owner of play.hiveminez.net

 

⊱------------------------------⊰

Joined Minehut on 1/28/2021 (Same day I got Minecraft)

[VIP] - 3/14/2021

[LEGEND] - 5/27/2021

⊱------------------------------⊰

Discord - NotKaizo#0001

In-game name - iKaizo_

If you need any help, feel free to contact me.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...