UDON_JP

Untitled

Apr 15th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. command /shop:
  2. trigger:
  3. open chest with 6 rows named "Shop-main" to player
  4. format slot 1 of player with stone named "ブロック" to close then run [execute player command "/blocks"]
  5. format slot 2 of player with iron sword named "武器・防具" to close then run [execute player command "/weapons"]
  6.  
  7. command /blocks:
  8. trigger:
  9. wait 3 ticks
  10. open chest with 6 rows named "Shop-blocks" to player
  11. format slot 1 of player with 1 stone named "&r石($200)" to close then run [execute player command "/buyitem %player% 200 1 stone"]
  12. format slot 2 of player with 2 coal ore named "石炭鉱石($300)" to close then run [execute player command "/buyitem %player% 300 2 coal ore"]
  13.  
  14. command /buyitem <player> <number> <item>:
  15. trigger:
  16. if arg 1's money is more than or equal to arg 2:
  17. remove arg 2 from arg 1's money
  18. give arg-3 to arg-1
  19. send "&b%arg 3%を買いました。"
  20. send "&d残金:%arg 1's money%"
  21. stop
  22. send "&cお金が足りません!"
Add Comment
Please, Sign In to add comment