Started by
TheKralGame
on
Topic category: Help with Minecraft modding (Java Edition)
How to detect item name from custom gui slot?
for example
send chat to all players of Custom GUI Slot #1's item
Edited by TheKralGame on Wed, 01/20/2021 - 12:28
Easy, I hope.
Attempt one: Create this procedure below, and double click on the slot in the GUI and set this procedure to "When slot contents change". This works for GUI on player
"Send to chat to all players" "Get display name of" "Get item from slot [] of the currently open GUI of" "Event/target Entity"
Attempt Two: Create this procedure below, and double click on the slot in the GUI and set this procedure to "When slot contents change". This works for GUI on block.
"Send to chat to all players" "Get display name of" "Get a copy of item from slot [] of block at x y z if it has inventory"
Thanks