Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on level change:
- add 1 to {level.%player%}
- on rightclick with nether star:
- execute console command "/applyskill %player%"
- command /applyskill <player>:
- trigger:
- open chest with 1 row named "<green>ステータス振り" to arg
- wait 1 tick
- format slot 0 of arg with iron sword named "<pink>攻撃力" to close then run "upskill 攻撃力 %arg%"
- format slot 1 of arg with iron chestplate named "<aqua>防御力" to close then run "upskill 防御力 %arg%"
- format slot 2 of arg with blaze rod named "<purple>魔力" to close then run "upskill 魔力 %arg%"
- format slot 3 of arg with book named "<yellow>知力" to close then run "upskill 知力 %arg%"
- format slot 4 of arg with emerald named "<lime>運" to close then run "upskill 運 %arg%"
- format slot 7 of arg with {level.%arg%} of nether star named "<pink>残りポイント" to run ""
- format slot 8 of arg with barrier named "<magenta>キャンセル" to close
- command /upskill <string> <player>:
- trigger:
- {level.%arg 2%} > 0
- remove 1 from {level.%arg 2%}
- if arg 1 is "攻撃力":
- add 1 to {str.%arg 2%}
- if arg 1 is "防御力":
- add 1 to {def.%arg 2%}
- if arg 1 is "魔力":
- add 1 to {mag.%arg 2%}
- if arg 1 is "知力":
- add 1 to {int.%arg 2%}
- if arg 1 is "運":
- add 1 to {luk.%arg 2%}
- if {level.%arg 2%} > 1:
- wait 1 tick
- execute console command "applyskill %arg 2%"
- command /showskill:
- trigger:
- message "<gray>%player%のスキル"
- message "<pink>攻撃力:%{str.%player%}%"
- message "<aqua>防御力:%{def.%player%}%"
- message "<purple>魔力:%{mag.%player%}%"
- message "<yellow>知力:%{int.%player%}%"
- message "<lime>運:%{luk.%player%}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement