Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /shop:
- trigger:
- open chest with 3 rows named "Shop-main" to player
- format slot 12 of player with stone named "&7ブロック(買う)" to close then run [execute player command "/blocks"]
- format slot 13 of player with diamond named "&b鉱石(売る)" to close then run [execute player command "/ores"]
- command /blocks:
- trigger:
- wait 3 ticks
- open chest with 6 rows named "&9ブロック" to player
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- command /ores:
- trigger:
- wait 3 ticks
- open chest with 1 rows named "&9鉱石" to player
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- command /buyitem <player> <number> <item>:
- trigger:
- if arg 1's money is more than or equal to arg 2:
- remove arg 2 from arg 1's money
- give arg-3 to arg-1
- send "&a%arg 3%を買いました。"
- send "&d残金:&2%arg 1's money%"
- stop
- send "&cお金が足りません!"
- command /sell <player> <number> <item>:
- trigger:
- if arg 1 does not have arg 3:
- send "&cあなたは対象のアイテムを所持していません。"
- stop
- remove arg 3 from arg 1's inventory
- add arg 2 to arg 1's money
- send "&b%arg 3%を売りました。
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement