How do you get the type of item in a gui slot?

Started by Mimi on Thu, 11/26/2020 - 12:59

Topic category: Help with MCreator software

Last seen on 06:39, 2. Jan 2021
Joined Nov 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do you get the type of item in a gui slot?
Thu, 11/26/2020 - 12:59

I want to do an if statement that is different based on if something in a gui slot is armor, weapon and so on. specifically I want to know how to tell if the item in the gui slot is armor first off (without just checking if the armor rating is above 0, since I will want to check for other types of items later)

Last seen on 19:43, 18. Jan 2021
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Get item in slot and use…
Fri, 11/27/2020 - 09:18

Get item in slot and use compare block to check it, or use tag checking.

I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei