View difference between Paste ID: 07i2DFjS and E5gdeJV8
SHOW: | | - or go back to the newest paste.
1-
command /shop [<text>] [<text>]:
1+
command /sshop [<text>] [<text>]:
2
	trigger:
3
		if arg-1 is not set:
4
			open chest with 6 rows named "&a&lショップ" to player
5
			wait a tick
6
			format slot 8 of player with gold ingot named "&6今持ってるコイン" with lore "&e%{%player%_coins}%コイン"
7-
			format slot 10 of player with apple named "&b&lりんご" with lore "&d10コイン" to close then run "shop item1 %player%"
7+
			format slot 10 of player with apple named "&b&lりんご" with lore "&d10コイン" to close then run "sshop item1 %player%"
8-
			format slot 11 of player with stone sword named "&b&l初心者の証" with lore "&d1000コイン" to close then run "shop item2 %player%"
8+
			format slot 11 of player with stone sword named "&b&l初心者の証" with lore "&d1000コイン" to close then run "sshop item2 %player%"
9
		else if arg-1 is "item1":
10
			set {%arg-2%_coins} to {%arg-2%_coins} - 10
11
			give arg-2 20 apple named "りんご"
12
			message "&aリンゴを買いました" to arg-2
13
		else if arg-1 is "item2":
14
			set {%arg-2%_coins} to {%arg-2%_coins} - 1000
15
			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}"
16
			message "&a初心者の証を買いました" to arg-2