Started by
flamearrows1
on
Topic category: Help with modding (Java Edition)
I'm trying to detect how long a player has been holding a specific item. For example a regular stick. If the player holds it for 100 ticks then a procedure runs. If the player switches from the stick they still keep the ticks they were at before they switch. For example they held the stick for 40 ticks then switched items, then switched back, the timer would resume from tick 40
https://imgur.com/MtgAYF0
You could also use item in hand tick trigger on the item itself.