UDON_JP

Untitled

Apr 1st, 2019
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.94 KB | None | 0 0
  1. command /shop:
  2. trigger:
  3. open chest with 4 rows named "Shop-main" to player
  4. format slot 11 of player with stone named "&9建築用ブロック" 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 "&9建築用ブロック" to player
  11. format slot 0 of player with 64 grass lore "&7購入価格: &c$1,000" and "&7販売価格: &a$10" to close then run [execute player command "/buyitem %player% 1000 64 grass"]
  12. format slot 1 of player with 64 dirt named "土" with lore "&7購入価格: &c$250" and "&7販売価格: &a$50" to close then run [execute player command "/buyitem %player% 250 64 dirt"]
  13. format slot 2 of player with 64 mycelium named "菌糸" with lore "&7購入価格: &c$1,000" to close then run [execute player command "/buyitem %player% 1000 64 mycelium"]
  14. format slot 3 of player with 64 coarse dirt named "粗い土" with lore "&7購入価格: &c$128" to close then run [execute player command "/buyitem %player% 128 64 coarse dirt"]
  15. format slot 4 of player with 64 podzol named "ポドゾル" with lore "&7購入価格: &c$128" to close then run [execute player command "/buyitem %player% 128 64 podzol"]
  16. format slot 5 of player with 16 ice named "氷" with lore "&7購入価格: &c$500" to close then run [execute player command "/buyitem %player% 500 16 ice"]
  17. format slot 6 of player with 16 picked ice named "氷塊" with lore "&7購入価格: &c$1000" to close then run [execute player command "/buyitem %player% 1000 16 picked ice"]
  18. format slot 7 of player with 64 oak log named "オークの原木" with lore "&7購入価格: &c$6,400" and "&7販売価格: &a$250" to close then run [execute player command "/buyitem %player% 6400 64 oak log"]
  19. format slot 8 of player with 64 spruce log named "マツの原木" with lore "&7購入価格: &c$6,400" and "&7販売価格: &a$250" to close then run [execute player command "/buyitem %player% 6400 64 spruce log"]
  20. format slot 9 of player with 64 birch log named "シラカバの原木" with lore "&7購入価格: &c$6,400" and "&7販売価格: &a$250" to close then run [execute player command "/buyitem %player% 6400 64 birch log"]
  21. format slot 10 of player with 64 jungle log named "ジャングルの原木" with lore "&7購入価格: &c$6,400" and "&7販売価格: &a$250" to close then run [execute player command "/buyitem %player% 6400 64 jungle log"]
  22. format slot 11 of player with 64 acacia log named "アカシアの原木" with lore "&7購入価格: &c$6,400" and "&7販売価格: &a$250" to close then run [execute player command "/buyitem %player% 6400 64 acacia log"]
  23. format slot 12 of player with 64 dark oak log named "ダークオークの原木" with lore "&7購入価格: &c$6,400" and "&7販売価格: &a$250" to close then run [execute player command "/buyitem %player% 6400 64 dark oak log"]
  24. format slot 13 of player with 64 andesite named "安山岩" with lore "&7購入価格: &c$700" and "&7販売価格: &a$75" to close then run [execute player command "/buyitem %player% 700 64 andesite"]
  25.  
  26.  
  27. command /buyitem <player> <number> <item>:
  28. trigger:
  29. if arg 1's money is more than or equal to arg 2:
  30. remove arg 2 from arg 1's money
  31. give arg-3 to arg-1
  32. send "&a%arg 3%を買いました。"
  33. send "&d残金:&2%arg 1's money%"
  34. stop
  35. send "&cお金が足りません!"
  36. command /sell <player> <number> <item>:
  37. trigger:
  38. if arg 1 does not have arg 3:
  39. send "&cあなたは対象のアイテムを所持していません。"
  40. stop
  41. remove arg 3 from arg 1's inventory
  42. add arg 2 to arg 1's money
  43. send "&b%arg 3%を売りました。"
Add Comment
Please, Sign In to add comment