Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /sshop [<text>] [<text>]:
- trigger:
- if arg-1 is not set:
- open chest with 6 rows named "&a&lショップ" to player
- wait a tick
- format slot 8 of player with gold ingot named "&6今持ってるコイン" with lore "&e%{%player%_coins}%コイン"
- format slot 10 of player with apple named "&b&lりんご" with lore "&d10コイン" to close then run "sshop item1 %player%"
- format slot 11 of player with stone sword named "&b&l初心者の証" with lore "&d1000コイン" to close then run "sshop item2 %player%"
- else if arg-1 is "item1":
- set {%arg-2%_coins} to {%arg-2%_coins} - 10
- give arg-2 20 apple named "りんご"
- message "&aリンゴを買いました" to arg-2
- else if arg-1 is "item2":
- set {%arg-2%_coins} to {%arg-2%_coins} - 1000
- command '/give %player% minecraft:leather_helmet 1 0 {"display":{"Name":"§6§lミニゲ初心者の証","Lore":["§e§l頑張って§4§l上級者§e§lになるんだ!"],"color":64},"Unbreakable":1b,"ench":[{"id":0s,"lvl":0s},{"id":0s,"lvl":0s}],"HideFlags":63}'
- message "&a初心者の証を買いました" to arg-2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement