Im trying to get a command to issue after clicking on something in a gui menu im working on, but when I use to run I keep getting an error
Error: Can't understand this condition/effect: format gui slot 0 of arg-1 with diamond named "test" with lore "test" to run [make player execute command "nextshop %arg-1%"] (villagermenu.sk, line 21: format gui slot 0 of arg-1 with diamond named "test" with lore "test" to run [make player execute command "nextshop %arg-1%"]')
Code:
Error: Can't understand this condition/effect: format gui slot 0 of arg-1 with diamond named "test" with lore "test" to run [make player execute command "nextshop %arg-1%"] (villagermenu.sk, line 21: format gui slot 0 of arg-1 with diamond named "test" with lore "test" to run [make player execute command "nextshop %arg-1%"]')
Code:
Code:
on right click on villager:
cancel event
wait 1 tick
execute console command "/open %player%"
command /open <player>:
permission: shop.admin
trigger:
wait 1 tick
open chest with 2 rows named "&6Shop" to arg-1
wait 1 tick
format gui slot 0 of arg-1 with diamond named "test" with lore "test" to run [make player execute command "nextshop %arg-1%"]
command /nextshop <player>:
permission: shop.admin
trigger:
wait 1 tick
open chest with 1 row named "This is a test" to arg-1
wait 1 tick
format gui slot 0 of arg-1 with gold ingot named "test2" with lore "test2"