Advertisement
UDON_JP

Untitled

Apr 27th, 2020
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.86 KB | None | 0 0
  1. command /shop:
  2. trigger:
  3. open chest with 3 rows named "Shop-main" to player
  4. format slot 12 of player with stone named "&9ブロック(買う)" to close then run [execute player command "/blocks"]
  5. format slot 13 of player with iron sword named "&b鉱石(売る)" to close then run [execute player command "/ores"]
  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 named "&7草ブロック" with lore "&7購入価格:&c2000円" to close then run [execute player command "/buyitem %player% 2000 64 grass"]
  12. format slot 1 of player with 64 dirt named "&7土" with lore "&7購入価格:&c1000円" to close then run [execute player command "/buyitem %player% 1000 64 dirt"]
  13. format slot 2 of player with 64 mycelium named "&7菌糸" with lore "&7購入価格:&c3000円" to close then run [execute player command "/buyitem %player% 3000 64 mycelium"]
  14. format slot 3 of player with 64 coarse dirt named "&7粗い土" with lore "&7購入価格:&c2000円" to close then run [execute player command "/buyitem %player% 2000 64 coarse dirt"]
  15. format slot 4 of player with 64 podzol named "&7ポドゾル" with lore "&7購入価格:&c2000円" to close then run [execute player command "/buyitem %player% 2000 64 podzol"]
  16. format slot 5 of player with 16 ice named "&7氷" with lore "&7購入価格:&c500円" to close then run [execute player command "/buyitem %player% 500 16 ice"]
  17. format slot 6 of player with 16 packed ice named "&7氷塊" with lore "&7購入価格:&c1000円" to close then run [execute player command "/buyitem %player% 1000 16 packed ice"]
  18. format slot 7 of player with 64 oak log named "&7オークの原木" with lore "&7購入価格:&c1000円" to close then run [execute player command "/buyitem %player% 3000 64 oak log"]
  19. format slot 8 of player with 64 spruce log named "&7マツの原木" with lore "&7購入価格:&c3000円" to close then run [execute player command "/buyitem %player% 3000 64 spruce log"]
  20. format slot 9 of player with 64 birch log named "&7シラカバの原木" with lore "&7購入価格:&c3000円" to close then run [execute player command "/buyitem %player% 3000 64 birch log"]
  21. format slot 10 of player with 64 jungle log named "&7ジャングルの原木" with lore "&7購入価格:&c3000円" to close then run [execute player command "/buyitem %player% 3000 64 jungle log"]
  22. format slot 11 of player with 64 acacia log named "&7アカシアの原木" with lore "&7購入価格:&c3000円" to close then run [execute player command "/buyitem %player% 3000 64 acacia log"]
  23. format slot 12 of player with 64 dark oak log named "&7ダークオークの原木" with lore "&7購入価格:&c3000円" to close then run [execute player command "/buyitem %player% 3000 64 dark oak log"]
  24. format slot 13 of player with 64 cobblestone named "&7丸石" with lore "&7購入価格:&c100円" to close then run [execute player command "/buyitem %player% 100 64 cobblestone"]
  25.  
  26. command /ores:
  27. trigger:
  28. wait 3 ticks
  29. open chest with 1 rows named "&9鉱石" to player
  30. format slot 0 of player with 1 diamond named "&bダイヤモンド" with lore "&7販売価格:&a250円" to close then run [execute player command "/sell %player% 250 diamond"]
  31. format slot 1 of player with 1 emerald named "&aエメラルド" with lore "&7販売価格:&a300円" to close then run [execute player command "/sell %player% 300 emerald"]
  32. format slot 2 of player with 1 gold ingot named "&6金インゴット" with lore "&7販売価格:&a75円" to close then run [execute player command "/sell %player% 75 gold ingot"]
  33. format slot 3 of player with 1 iron ingot named "&f鉄インゴット" with lore "&7販売価格:&a50円" to close then run [execute player command "/sell %player% 50 iron ingot"]
  34. format slot 4 of player with 64 redstone named "&4レッドストーン" with lore "&7販売価格:&a640円" to close then run [execute player command "/sell %player% 640 64 redstone"]
  35. format slot 5 of player with 64 lapis lazuli named "&1ラピスラズリ" with lore "&7販売価格:&a640円" to close then run [execute player command "/sell %player% 640 64 lapis lazuli"]
  36. format slot 6 of player with 64 coal named "&8石炭" with lore "&7販売価格:&a640円" to close then run [execute player command "/sell %player% 640 64 coal"]
  37.  
  38. command /buyitem <player> <number> <item>:
  39. trigger:
  40. if arg 1's money is more than or equal to arg 2:
  41. remove arg 2 from arg 1's money
  42. give arg-3 to arg-1
  43. send "&a%arg 3%を買いました。"
  44. send "&d残金:&2%arg 1's money%"
  45. stop
  46. send "&cお金が足りません!"
  47. command /sell <player> <number> <item>:
  48. trigger:
  49. if arg 1 does not have arg 3:
  50. send "&cあなたは対象のアイテムを所持していません。"
  51. stop
  52. remove arg 3 from arg 1's inventory
  53. add arg 2 to arg 1's money
  54. send "&b%arg 3%を売りました。
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement