familychicken

Untitled

Jul 17th, 2021 (edited)
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. variables:
  2. {%player%.d} = 30
  3. {%player%.dmax} = 30
  4.  
  5.  
  6. on right click on an anvil:
  7. cancel event
  8. if {%player%.d} < {%player%.dmax}:
  9. add 1 to {%player%.d}
  10. command "/playsound minecraft:block.stone.place ambient %player% ~ ~ ~ 1 2 1"
  11. else:
  12. message "&6最大の耐久値になりました。"
  13. set name of tool of player to "&bDiamond Pickaxe &8[&f%{%player%.d}%&8/&f%{%player%.dmax}%&8]"
  14.  
  15. on mine of cobblestone:
  16. cancel event
  17. if {%player%.d} >= 1:
  18. remove 1 from {%player%.d}
  19. command "/give %player% cobblestone"
  20. set name of tool of player to "&bDiamond Pickaxe &8[&f%{%player%.d}%&8/&f%{%player%.dmax}%&8]"
  21. else:
  22. message "&8---&c耐久力がありません。金床で耐久値を回復してください。"
Add Comment
Please, Sign In to add comment