Started by
shuppyer
on
Topic category: Help with Minecraft modding (Java Edition)
The title may be confusing but I'm just having a bit of trouble. I've made two mobs, my own version of the Iceologer and a Ghost. The Iceologer fires snowballs and the ghost fires soul fire. The problem I'm encountering is that they fire indefinitely with no limitations. I'm trying to have them fire in bursts. I want the Ghost's attack to behave like a Blaze, while the Iceologer would preferably fire between 10 to 15 snowballs in one burst. Could anyone explain how to fix this? Thanks!
look for the "wait on server-side for X ticks" procedure block
also if problems occur with server-side bs, try looking into this: https://mcreator.net/wiki/developing-multiplayer-compatible-mods
1, Unlock the code on the entity.
2, Find this line in this code
this.goalSelector.addGoal(1, new RangedAttackGoal(this, 1.25, 20, 10) {
3, The number 20 is the cooldown on the ranged attack. I find changing it to 90 or 120 is a decent cooldown for mobs. 60 is firing every other second pretty.
Chew
"pretty much" uggg
otherwise use procedure. Don't use AI ranged items but use normal AI and add procedure if entity burning = shoot ranged