Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. on death of player:
  2. if attacker is a player:
  3. message "<light green>+3point"
  4. add 3 to {point.%attacker%}
  5.  
  6. on rightclick with nether star:
  7. execute console command "/buymenu %player%"
  8.  
  9. command /buymenu <player>:
  10. trigger:
  11. open chest with 6 row named "<green>購入メニュー" to arg
  12. wait 1 tick
  13. format slot 0 of arg with stone sword named "<green>石の剣 [3]" to close then run [make player execute command "/buy stone_sword"]
  14. format slot 8 of arg with {point.%arg%} of nether star named "<pink>残りポイント" to run ""
  15. format slot 53 of arg with barrier named "<magenta>キャンセル" to close
  16.  
  17. command /pbuy <item> <number>:
  18. triger:
  19. if {point.%player%} is {arg 2}:
  20. remove {arg 2} from {%player%.point}
  21. command "/give %player% {arg 1} 1 0"
  22. message "<yellow>購入成功!"
  23. if {point.%player%} > {arg 2}:
  24. remove {arg 2} from {%player%.point}
  25. command "/give %player% {arg 1} 1 0"
  26. message "<yellow>購入成功!"
  27. else:
  28. message "<red>購入条件を満たしていません!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement