item in hand to global itemstack variable

Started by 0vershake on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
item in hand to global itemstack variable

Hello, I'm opening this topic to ask for your help. I'm using MCreator 2024.4 on Forge, and in one of my procedures (when tool in hand tick), I can't manage to save the item in question to a global variable. I don't use this type of variable often, so maybe I'm doing it wrong. Basically, the chat message always shows '0 air' regardless of the item held in hand. Here is the screenshot of the procedure and the variable.