Run procedure every tick a tool is being used

Started by Tiny Desk Engineer on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Run procedure every tick a tool is being used

I have a tool which needs to do something every tick the player holding it is holding right click, along with doing another thing on the tick the player starts pressing right click. How can I do this?

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add procedure here -> For…
Tue, 09/05/2023 - 15:57

Add procedure here ->

For when the player is doing something else when it starts pressing, add an nbt boolean variable and set it true if the condition is met

Verify if the nbt variable is true, if it is, execute the thing you want to execute