Cancel item tick

Started by As1759 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Cancel item tick

I have a piece of code for an item to say something in the action bar on tick for the inventory, but I only want it to play the message once. How would I do this? Would it require something else completely?

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use a logic item property…
Fri, 04/03/2026 - 09:02

Use a logic item property. On the tick update check whether logic = false, if so send message and set logic to true. This will make it only send once ever per item. If you have a series of messages, use a number and have each number equal to a different message instead of using one logic per message.