Help needed with item data

Started by timothédoda on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help needed with item data

I have a piece of code that runs when an item is right-clicked. If it meets a certain condition (which you don’t need to know), it should remove the item and replace it with another item that has the same texture.

Additionally, I want to add data to this new item so that I can use it later in a procedure triggered by the second item.

image

 

Joined Nov 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also just wanted to mention…
Tue, 11/04/2025 - 02:22

Also just wanted to mention that the two blocks at the beggining of the code do not really matter