command /isp <text>:
trigger:
set {_inv} to chest with 1 row named "isp %arg%"
set slot 3 of {_inv} to iron ingot
set slot 6 of {_inv} to diamond
open {_inv} to player
on inventory click:
if inventory name of current inventory of player contains "isp":
set {_player} to name of current inventory
replace "isp " with "" in {_player}
cancel event
if clicked slot is 3:
send "IRON"
if clicked slot is 6:
send "DIAMOND"
open chest inventory with 3 rows named "%{_player}%" to player