Started by
Puglord123
on
Topic category: Help with Minecraft modding (Java Edition)
I am trying to make a Half-Life mod and I'm trying to figure out if I can have guns that shoot at various bullet speeds (for example, a pistol would shoot not slow but not fast, but a different gun would shoot faster or slower) and i was wondering if that would even be possible and if it would be i would like to know how. If anyone knows how to do this, please comment.
You can set bullet speeds on ranged items:
If you want different speeds on the same item you can use a regular item that when right-clicked with shoots a projectile and you could toggle between different NBT item states by sneaking etc which you could then check and then shoot another projectile at a different speed through an if statement.
That isn’t what I mean
Oh you mean like bullet cooldowns? You can in theory use the this block to set a cooldown on the item when used:
You can also use an if statement using a timer based on item NBT tags if you want it more hidden so to say.
That seemed to fix my issue, thank you so much!