Item Detection

Started by TheKralGame on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Item Detection
Wed, 01/20/2021 - 12:28 (edited)

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
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Easy, I hope. Attempt one:…
Wed, 01/20/2021 - 23:13

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"