Started by
RedCorr
on
Topic category: Help with Minecraft modding (Java Edition)
Basically I have a weapon and I already made one procedure with it, however I can't make timer.
I need to set timer on how fast XP will be removed from player, and while XP is removed it will generate effects.
I don't know how to make timer, as well as one button that can turn that mode on and off, please help me
I don't know about the timer, but maybe you could make a GUI for the buttons?
Add a keybing that will manipulate the boolean. Add a global variable that will hold the remaining seconds (you'll need to enter the seconds in ticks (1 second = 20 ticks). On entity tick when the mode is on remove one tick from global variable. When boolean is off, reset the timer.
https://mcreator.net/forum/90710/how-make-shooting-speed-timer