SuzukazeK

Untitled

Oct 28th, 2024 (edited)
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  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%{_itemName}% &a+鉄塊"
  7. synthesize()
  8. if player's offhand item is spider eye:
  9. set name of player's tool to "&f%{_itemName}% &a+クモの目"
  10. synthesize()
  11.  
  12. function synthesize():
  13. remove 1 of player's offhand item from player
  14. play sound "ui.button.click" with volume 1 and pitch 2 at player
  15.  
  16. on damage:
  17. attacker is a player
  18. attacker's tool is not air
  19. player does not have player's tool on cooldown:
  20.  
  21. set {_itemName} to name of attacker's tool
  22.  
  23. if "+鉄塊" is in {_itemName}:
  24. set damage of event to (damage of event + 2)
  25.  
  26. if "+クモの目" is in {_itemName}:
  27. apply potion of poison of tier 2 to victim for 5 seconds
Advertisement
Add Comment
Please, Sign In to add comment