Started by
aoooodi2
on
Topic category: Help with Minecraft modding (Java Edition)
I would like to know how to add a cooldown to a ranged item and how to add a cooldown to a mob,like a skeleton because the mob i made shoots to fast.
Topic category: Help with Minecraft modding (Java Edition)
I would like to know how to add a cooldown to a ranged item and how to add a cooldown to a mob,like a skeleton because the mob i made shoots to fast.
i don't think you can change a custom mob's shooting speed without coding. but if you're up for modifying source code, its a fairly simple thing to change. which minecraft version you modding?
1.15
edit code of your custom entity element. look for a line that looks like this:
in this line of code, 1.25D is the entity's movement speed, 20 is the max attack interval in ticks (so around once per second), 10.0F is the max distance it will shoot. modify the 20 to maybe 40 for 2 second intervals or 60 for 3 second intervals.
Thank you very much,it really helped and i learned how to changed entity cooldown and range,but im still strugiln with item cooldown
there's a code block to set an item's cooldown:
i know but for some reason that didnt work
be specific. how does it not work. how are you doing it?
like i put the cooldown procedure in a when item is used trigger but i can just spam bullets