SuzukazeK

Untitled

Oct 28th, 2024 (edited)
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on right click:
  2. player is sneaking
  3. set {_itemName} to name of player's tool
  4. {_itemName} does not contain "+"
  5. if player's offhand item is iron nugget:
  6. set name of player's tool to "&f%name of player's tool% &a+鉄塊"
  7. synthesize(player)
  8. if player's offhand item is spider eye:
  9. set name of player's tool to "&f%name of player's tool% &a+クモの目"
  10. synthesize(player)
  11.  
  12. function synthesize(p: player):
  13. remove 1 of {_p}'s offhand item from {_p}
  14. command "/execute %{_p}% ~ ~ ~ playsound minecraft:ui.button.click master %{_p}% ~ ~ ~ 1 1"
  15.  
  16. on damage:
  17. attacker is a player
  18. set {_itemName} to name of attacker's tool
  19.  
  20. if {_itemName} contains "+鉄塊":
  21. damage victim by 2 hearts
  22.  
  23. if {_itemName} contains "+クモの目":
  24. apply potion of poison of tier 2 to victim for 5 seconds
Advertisement
Add Comment
Please, Sign In to add comment