code
add dirt to {shoplist::*}
add coarse dirt to {shoplist::*}
add rooted dirt to {shoplist::*}
command /shop:reset:
permission: op
trigger:
set {shop.item1} to a random element out of {shoplist::*}
set {shop.item2} to a random element out of {shoplist::*}
set {shop.item3} to a random element out of {shoplist::*}
send "&fDaily Shop Items Reset"
command /shop:
trigger:
set {_gui} to a new chest inventory with 3 rows named "&8Daily Shop"
set slot 11 of {_gui} to {shop.item1}
set slot 13 of {_gui} to {shop.item2}
set slot 15 of {_gui} to {shop.item3}
open {_gui} to player
on inventory click:
if name of event-inventory is "&8Daily Shop":
if event-slot is dirt:
send "&fTest1"
if event-slot is coarse dirt:
send "&fTest2"
if event-slot is rooted dirt:
send "&fTest3"```