what am i doing wrong here?
command /blockshop:
trigger:
wait 3 ticks
open chest with 3 rows named "&a&lBlocks" to player
format slot 0 of player with grass block named "&a&lGrass Block" with lore "&7Price: &a&l$200" to close then run [execute player command "/buy grass_block"]
command /buy [<text>]:
trigger:
if arg 1 is "grass_block":
set {_playermoney} to balance of player
if {_playermoney} is more then 200
remove 200 from player's balance
add 16 grass block to player's inventory
command /blockshop:
trigger:
wait 3 ticks
open chest with 3 rows named "&a&lBlocks" to player
format slot 0 of player with grass block named "&a&lGrass Block" with lore "&7Price: &a&l$200" to close then run [execute player command "/buy grass_block"]
command /buy [<text>]:
trigger:
if arg 1 is "grass_block":
set {_playermoney} to balance of player
if {_playermoney} is more then 200
remove 200 from player's balance
add 16 grass block to player's inventory