Advertisement
CREAMPAN0408

Untitled

Mar 1st, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. on level change:
  2. add 1 to {level.%player%}
  3.  
  4. command /stats <player>:
  5. trigger:
  6. open chest with 1 row named "<green>ステータス振り" to arg
  7. wait 1 tick
  8. format slot 0 of arg with iron sword named "<pink>攻撃力" to close then run "upskill 攻撃力 %arg%"
  9. format slot 1 of arg with iron chestplate named "<aqua>防御力" to close then run "upskill 防御力 %arg%"
  10. format slot 2 of arg with emerald named "<lime>運" to close then run "upskill 運 %arg%"
  11. format slot 7 of arg with {level.%arg%} of nether star named "<pink>残りポイント" to run ""
  12. format slot 8 of arg with barrier named "<magenta>キャンセル" to close
  13.  
  14. command /upstats <string> <player>:
  15. trigger:
  16. {level.%arg 2%} > 0
  17. remove 1 from {level.%arg 2%}
  18. if arg 1 is "攻撃力":
  19. add 1 to {str.%arg 2%}
  20. if arg 1 is "防御力":
  21. add 1 to {def.%arg 2%}
  22. if arg 1 is "運":
  23. add 1 to {luk.%arg 2%}
  24. if {level.%arg 2%} > 1:
  25. wait 1 tick
  26. execute console command "applyskill %arg 2%"
  27.  
  28. command /showstats:
  29. trigger:
  30. message "<gray>%player%のステータス"
  31. message "<pink>攻撃力:%{str.%player%}%"
  32. message "<aqua>防御力:%{def.%player%}%"
  33. message "<lime>運:%{luk.%player%}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement