Topic category: Help with Minecraft modding (Java Edition)
So ive been making my 1st mod where you can make Elemental staffs where they have 2 abilities
This is my 1st mod with actual models and it works but i cant seem to make one of the abilities to work
The 1st ability for one of the staffs - Fire Staff - is that if you HOLD right click you would be able to charge fireballs up to 6 and then after releasing right click it would shoot them
The 2nd would be a fire slash which i could try making but the problem is simple but not
1st ability - i cant seem to make it so that the player holds right click it charges and i cant really make it so that it makes 1 fireball charge every second of holding right click
i am using geckolib and i will use any library if needed so if you have any idea on how i could make that then pls help :(
Problem - Cant hold rightclick constantly - Cant make something that stores 1 fireball count every second.
Create an Counter how many Fireballs you can shoot each second while you holding the Right Click Button.
This rather easy to implement.
yea hthe problem is i dont know how to detect if the player holds right click and how i can store the fireball count
my idea was to use a bit of python but idk if its possible too