Started by
Johannes_V
on
Topic category: Help with Minecraft modding (Java Edition)
Is there any way to have a crossbow-like mechanic, or maybe a delay on items? I'm currently in the process of making some flintlock guns and I'm not a fan of having them all be essentially machineguns.
Managed to do this
You can create a procedure that, when you shoot, ads a cool down much like the enderpearl one.
The cool down block is on Item } Add cool down to provided item
Thank you so much!
Too bad there isn't a cooldown for a specific item and not just its entire item type since it would be neat if your attacks altered between two items if you had one in the off hand.
On this topic, can you actually make a single bullet loading mechanic in mcreator?
if it's in the main hang cooldown item in the main hand, else if it's in the offhand, cooldown item in the offhand
Oh no. I just meant it would be neat if cool down was more akin to an nbt tag so it would cool down on in individual item instead of itemstack.
How to make such a procedure for cooldown?
but it would be better for me to know how to make it like a actually crossbow.
You can edit the ranged item code to extend the crossbow class