Topic category: Help with Minecraft modding (Java Edition)
Hello, dear forum readers.
I have come back to trying to update my old mod again and this time, i want to make something big.
I already have a texture for a sniper rifle, sound effects too. But there is one thing i'd like to know..
Is there somehow a way to cooldown the weapon for 80 seconds after either:
- firing four shots out of the weapon
- 10 seconds pass from activating (right clicking) the weapon.
So in theory, what i'd specifically like to do is quite complicated but here goes:
The procedure itself
1. Rightclick with the weapon having 0 ammo. Cannot be reloaded anyhow.
2. Rightclicking loads four shots (the maximum capacity) into said gun, starting the 10 seconds countdown, during which the four bullets can be shot.
3. After these ten seconds, the gun clears any left ammo and is set on a cooldown for a minute or so.
I bow before anyone even trying to read this whole, since i guess noone will. But for those who may help, thanks beforehand.
that is rather complicated......
yeaaaaaa i just made my first tutorial i have no idea how to do this