Advertisement
CREAMPAN0408

Untitled

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