#custom items

1 messages · Page 1 of 1 (latest)

amber marlin
#

I dont know where to start with coding but i want a sword with right click you get temp speed in water on left click you get launched with a name on the sword

plush abyss
#
  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

next hound
#

I'd recommend using a "CustomItem" nbt tag to make sure the item still works if a player renames it in an anvil.