Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /shop:
- trigger:
- open chest with 6 rows named "Shop-main" to player
- format slot 1 of player with stone named "ブロック" to close then run [execute player command "/blocks"]
- format slot 2 of player with iron sword named "武器・防具" to close then run [execute player command "/weapons"]
- command /blocks:
- trigger:
- wait 3 ticks
- open chest with 6 rows named "Shop-blocks" to player
- format slot 1 of player with 1 stone named "&r石($200)" to close then run [execute player command "/buyitem %player% 200 1 stone"]
- format slot 2 of player with 2 coal ore named "石炭鉱石($300)" to close then run [execute player command "/buyitem %player% 300 2 coal ore"]
- 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 "&b%arg 3%を買いました。"
- send "&d残金:%arg 1's money%"
- stop
- send "&cお金が足りません!"
Add Comment
Please, Sign In to add comment