Silo32

Untitled

Oct 20th, 2023
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. on death of player:
  2. if attacker is a player:
  3. if attacker's tool is a netherite sword:
  4. if name of attacker's tool is "&dBlade Of Gaia":
  5. set {_p} to attacker
  6. add 1 to {u::%{_p}%}
  7. if {u::%{_p}%} is 11:
  8. set {u::%{_p}%} to 10
  9. else:
  10. set {_e} to "%{u::%{_p}%}%"
  11. enchant the attacker's tool with "sharpness %{_e}%" parsed as enchantment type
  12.  
  13. command /sword [<text>] [<player>]:
  14. permission: skript.op
  15. trigger:
  16. if arg-1 is set:
  17. if arg-1 is "gaia":
  18. if arg-2 is set:
  19. if arg-2 is online:
  20. if arg-2 is alive:
  21. set {_p} to arg-2
  22. set {u::%{_p}%} to 0
  23. give {_p} netherite sword named "&dBlade Of Gaia"
  24. else:
  25. send "%arg-2% is not alive"
  26. else:
  27. send "%arg-2% is not online"
  28. else:
  29. set {_p} to command sender
  30. set {u::%{_p}%} to 0
  31. give a netherite sword named "&dBlade Of Gaia" to {_p}
  32. else:
  33. send "Invalid name"
  34. else:
  35. send "Must have a name"
Advertisement
Add Comment
Please, Sign In to add comment