Started by
spacecowboy234
on
Topic category: Help with Minecraft modding (Java Edition)
So I have a custom entity that's a hostile mob and has a leap attack and I keep experiencing an annoying issue mainly because of its inconsistency. I made the entity jump with the push entity block, along with math look vectors but sometimes when it jumps it doesn't stay facing where it jumps till the jump is over. It will sometimes just turn around in random directions in the middle of the jump or even jump in random directions, I've tried setting conditions for the wander around and look around ai goals but that didn't work and the make entity look at block is too choppy and makes the entity stutter. Can anybody provide any help please?
Edited by spacecowboy234 on Wed, 06/24/2026 - 09:59
Set its yaw to be constant throughout, through a number nbt, save the yaw at the start of the jump and continue to override to that same value until the jump is over. Or set its yaw to look at the nearest player using an iterator or use get entity is targeting for attack.