Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {%player%.d} = 30
- {%player%.dmax} = 30
- on right click on an anvil:
- cancel event
- if {%player%.d} < {%player%.dmax}:
- add 1 to {%player%.d}
- command "/playsound minecraft:block.stone.place ambient %player% ~ ~ ~ 1 2 1"
- else:
- message "&6最大の耐久値になりました。"
- set name of tool of player to "&bDiamond Pickaxe &8[&f%{%player%.d}%&8/&f%{%player%.dmax}%&8]"
- on mine of cobblestone:
- cancel event
- if {%player%.d} >= 1:
- remove 1 from {%player%.d}
- command "/give %player% cobblestone"
- set name of tool of player to "&bDiamond Pickaxe &8[&f%{%player%.d}%&8/&f%{%player%.dmax}%&8]"
- else:
- message "&8---&c耐久力がありません。金床で耐久値を回復してください。"
Add Comment
Please, Sign In to add comment