Why can't u use guistate in "when right-clicked" statement?

Started by Lord Makishi on

Topic category: Help with modding (Java Edition)

Last seen on 11:29, 14. Apr 2023
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Why can't u use guistate in "when right-clicked" statement?

Hey, i made a procedure that should activate when the player right clicks with an specific item. It uses guistate dependencies, but as it turns out you can't use that. Any help with that?

Last seen on 19:54, 12. Apr 2024
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use the item-in-main-hand…
Wed, 01/04/2023 - 15:31

Use the item-in-main-hand block instead of GUI-state or item-state. For some reason, item-in-main-hand doesn't have the item-state properties, so it is perfect for doing these types of proceduresScreenshot-2023-01-04-093030