Started by
555zxc
on
Topic category: Help with Minecraft modding (Java Edition)
I basicly want to have a procedure happen every tick when Righ Click is held down. Problem is All triggers that detect right click can only happen every 4 ticks. Is there a way to detect right click every tick? I also tried using a code snipper that detects the Use keybind but then it does the procedure only once every time I click instead of continously doing it. Please help!
with the plug-in Better Procedures https://mcreator.net/plugin/71402/fly-procedures
on Player Tick Update
if Down Key is: RIGHT_CLICK
do (whatever)
or a keybind
Thank you SO MUCH, I dont know if you understand, but this bassicly enables proper guns with actual fire rate. I love you.
nice. good luck on your mod
Uhh, I didnt find the procedure in the addon. U sure tis the right addon?
Nevermind I found it i forgot to restard mcreator and the tab didnt appear
Bruh it says "Statement do does not support local variables"
Welp, guess this wont work as the "is KEY down" uses glfw_Key and mouse is detected with glfw_mouse. I tried altering it but the if do thing it comes with is evertremly glitchy. welp guess i wont be able to have custom fire rate :')
I mean you can always see the github repository of another gun mods and see how they did it
I did that via tools' "right-click on air" trigger, it works smoothly. And it is much more lag-free, because it doesn't check the procedure every tick.
@RexCerv , does the plug-in still exist ?
yeah I think but I understood you wrong, my method ain't gonna work, use toma one
@RexCerv is that plugin removed from mcreator? it says page not found. or is just an issue with me?
the plugin still exist i cant find use the link