Advertisement
TEKITOU-123

ability

May 3rd, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. command /ability:
  2. trigger:
  3. open chest with 1 rows named "&4&lAbility&r&7(%{%uuid of player%::AP}%)" to player
  4. format slot 0 of player with Iron sword with custom nbt "{HideFlags:2,display:{Name:""&c&lSTR"", Lore:[""&b+0.05%%(ATK)""]}}" to run [execute player command "/STRPOINT"]
  5. format slot 1 of player with Iron chestplate with custom nbt "{HideFlags:2,display:{Name:""&6&lVIT"", Lore:[""&bHP+1"",""&bDEF+0.5""]}}" to run [execute player command "/VITPOINT"]
  6. format slot 2 of player with Arrow with custom nbt "{HideFlags:2,display:{Name:""&e&lDEX"", Lore:[""&b+0.07%%(SAT)""]}}" to run [execute player command "/DEXPOINT"]
  7. format slot 3 of player with end crystal with custom nbt "{HideFlags:2,display:{Name:""&5&lINT"", Lore:[""&bMANA+1"", ""&bMANAR+0.1""]}}" to run [execute player command "/INTPOINT"]
  8. command /STRPOINT:
  9. trigger:
  10. {%uuid of player%::AP} > 0
  11. add 0.5 to {%uuid of player%::STR}
  12. subtract 1 from {%uuid of player%::AP}
  13. command /VITPOINT:
  14. trigger:
  15. {%uuid of player%::AP} > 0
  16. add 0.5 to player's max health
  17. set player's scaled health to 10
  18. add 0.5 to {%uuid of player%::DEF}
  19. subtract 1 from {%uuid of player%::AP}
  20. stop
  21. command /DEXPOINT:
  22. trigger:
  23. {%uuid of player%::AP} > 0
  24. add 0.5 to {%uuid of player%::DEF}
  25. subtract 1 from {%uuid of player%::AP}
  26. command /INTPOINT:
  27. trigger:
  28. {%uuid of player%::AP} > 0
  29. add 1 to {%uuid of player%::maxMP}
  30. subtract 1 from {%uuid of player%::AP}
  31. every second:
  32. loop all players:
  33. if loop-player's max health != loop-player's health:
  34. heal the loop-player by (loop-player's max health/200)
  35. if {%uuid of loop-player%::maxMP} > {%uuid of loop-player%::MP}:
  36. add ({%uuid of loop-player%::maxMP}/100) to {%uuid of loop-player%::MP}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement