Item Detection

Started by TheKralGame on Wed, 01/20/2021 - 12:26

Topic category: Help with modding (Java Edition)

Last seen on 07:59, 25. Feb 2021
Joined Feb 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
Last seen on 18:09, 23. Feb 2021
Joined Apr 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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"

Last seen on 07:59, 25. Feb 2021
Joined Feb 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks  
Fri, 01/22/2021 - 04:44

Thanks