UDON_JP

Untitled

Apr 1st, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. command /shop:
  2. trigger:
  3. open chest with 4 rows named "Shop-main" to player
  4. format slot 12 of player with stone named "&9Building Blocks" 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 64 grass named "草ブロック" with lore "&7Buy Price: &c$1,000||&7Sell Price: &a$10" to close then run [execute player command "/buyitem %player% 1000 64 grass"]
  12. format slot 2 of player with 64 dirt named "土" with lore "&7Buy Price: &c$250||&7Sell Price: &a$50" to close then run [execute player command "/buyitem %player% 250 64 dirt"]
  13. format slot 3 of player with 64 mycelium named "菌糸" with lore "&7Buy Price: &c$1,000" to close then run [execute player command "/buyitem %player% 1000 64 mycelium"]
  14. format slot 4 of player with 64 dirt named "粗い土" with lore "&7Buy Price: &c$128" to close then run [execute player command "/buyitem %player% 250 64 dirt"]
  15.  
  16. command /buyitem <player> <number> <item>:
  17. trigger:
  18. if arg 1's money is more than or equal to arg 2:
  19. remove arg 2 from arg 1's money
  20. give arg-3 to arg-1
  21. send "&b%arg 3%を買いました。"
  22. send "&d残金:%arg 1's money%"
  23. stop
  24. send "&cお金が足りません!"
Add Comment
Please, Sign In to add comment