#custom items
1 messages · Page 1 of 1 (latest)
name of player's held item = "&fLaunch Sword":
if {cd::launchsword::%player's uuid%} is not set:
set {cd::launchsword::%player's uuid%} to 1
push player up at speed 1.5
send actionbar "&aUsed Launch"
play sound "entity.slime.jump" with volume 10 to player
wait 2 seconds
delete {cd::launchsword::%player's uuid%}```
create a sword with the name &fLaunch Sword
and then try it out
it has a cooldown that u can change by changing the wait 2 seconds to something like wait 1 or 3 seconds
name of player's held item = "&bDolphin Sword":
add potion effect of (here you will need to add the effect) to potion effects of player
wait 10 seconds
clear potion effects of player```
second ability
can be improved tho
I'd recommend using a "CustomItem" nbt tag to make sure the item still works if a player renames it in an anvil.
this doent work