Item states

Started by fafsasfafawfasdw on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Item states

How to make it so that the item state only changes the item in hand, and not all items of the same type held in the inventory?

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
well it depends on how you…
Wed, 10/29/2025 - 20:24

well it depends on how you're providing the state,

 

Joined Oct 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The item state changes when…
Wed, 10/29/2025 - 22:16

The item state changes when a specific GUI is activated by right clicking it

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can you show the procedure?
Wed, 10/29/2025 - 23:25

can you show the procedure?

Joined Oct 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is my procedure: I…
Thu, 10/30/2025 - 17:41

This is my procedure: Procedure Image
I couldn't find anything that would make the whole procedure only for items in hand

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeah that'd probably be hard…
Fri, 10/31/2025 - 12:01

yeah that'd probably be hard to make not global..

maaaybe you could set a tag on the player when they rightclick the item and then unset it when the gui is closed,

Joined Oct 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Unfortunately, the generator…
Fri, 10/31/2025 - 12:32

Unfortunately, the generator I’m currently using doesn’t support the item_nbt_logic_get block. I’m using a plugin for the Fabric 1.21.8 generator because it’s very important to me to be able to create a mod for the Fabric engine on one of the newer versions of Minecraft.

Image

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
then use a global variable
Fri, 10/31/2025 - 12:43

then use a global variable