command /shop:
trigger:
open chest with 5 rows named "&6Shop" to player
create a gui slot 10 of player with gold block named "&6&l+1GPC" to run:
if {gold::%player%} >= 100:
remove 100 from {gold::%player%}
on right click on gold block:
add 1 to {gold::%player%}
if {gold::%player%} <= 100:
stop
How do i make it so the thing with on right click on gold block works when i buy it in the shop?
trigger:
open chest with 5 rows named "&6Shop" to player
create a gui slot 10 of player with gold block named "&6&l+1GPC" to run:
if {gold::%player%} >= 100:
remove 100 from {gold::%player%}
on right click on gold block:
add 1 to {gold::%player%}
if {gold::%player%} <= 100:
stop
How do i make it so the thing with on right click on gold block works when i buy it in the shop?