Advertisement
Guest User

Untitled

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