so, i just did this (excuse the rename part, used that to rename a chest)
And it works totally fine for me
[doublepost=1524939016,1524938970][/doublepost]NOTE how i open a chest named &6Spawner and check the name of the inventory to &6Spawner
code_language.skript:
command /rename <text>:
trigger:
set name of player's held item to colored arg-1
on inventory click:
if name of player's current inventory is "&cShop":
clicked slot is 10:
open chest with 2 rows named "&6Spawner" to player
set slot 0 of player's current inventory to 52 named "&cSpawner"
stop
else if name of player's current inventory is "&6Spawner":
clicked slot is 0:
if clicked type is LEFT mouse:
send "hi"
else if clicked type is right mouse button:
send "hi rechts"
[doublepost=1524939016,1524938970][/doublepost]NOTE how i open a chest named &6Spawner and check the name of the inventory to &6Spawner