Run procedure every tick a tool is being used

Started by Tiny Desk Engineer on

Topic category: Help with modding (Java Edition)

Last seen on 20:23, 19. Aug 2023
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?

Last seen on 14:46, 7. Oct 2023
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