Hello i have a problem with inventory click
I just want my skript to give me the name (or the lore ) of a clicked item
All chests has different names set by yml file
I have tested many things without results
When i click on empty slot i have messages in the chat
But when i click on a chest, there is nothing at all in the chat
names or lores are all different,, no one is working
Someone can help me please ?
I just want my skript to give me the name (or the lore ) of a clicked item
All chests has different names set by yml file
I have tested many things without results
Code:
command /conv:
trigger:
if player is op:
set {home} to 0
load yaml "/plugins/Skript/list.yml" as "%list%"
open chest with 6 rows named "Menu1" to player
loop yaml nodes with keys "homes" from "%list%":
format slot {home} of player with chest named loop-value with lore loop-value to close
add 1 to {home}
on inventory click:
wait 2 ticks
if name of player's current inventory contains "Menu1":
send "click ok" to player
send "1 - %name of clicked slot% " to player
send "2 - %lore of event-item% " to player
send "3 - %name of event-item% " to player
When i click on empty slot i have messages in the chat
But when i click on a chest, there is nothing at all in the chat
names or lores are all different,, no one is working
Someone can help me please ?