Topic category: Help with Minecraft modding (Java Edition)
Hello!
I was making a custom mob called the Hydra. I won't get into its details here, because it doesn't really matter. What does matter is that it won't run after players. It will attack them, but you will have to walk right up to it for the Hydra to attack you. This isn't really a challenging mob to fight (it's supposed to be a boss) as you can tell. I also have some other mobs that do work, however... One is called the stone golem. This is like the iron golem, but it won't toss you into the air. It will just attack like a normal mob, but only when you hit it, BUT it will also run after you when you hit it. (To clarify, the stone golem is a neutral mob, the Hydra is supposed to be aggressive/hostile). I don't really know what to do here!
Any help would be greatly appreciated. Here are some screenshots of the code for each mob.
Here is the code for the Hydra:
https://drive.google.com/file/d/1RjXWghlHIhsvd4pFGYAo-2GhEWPWghx_/view?…
And here is the code for the stone golem:
https://drive.google.com/file/d/1QHi4XNQ3etwA7Kx94-f6SGczKMe3pUzM/view?…
I know there's not much point to show the both of them but I thought I would anyway.
Im sorry if this forum post is really long or confusing, but I wanted to share as much information as possible.
TLDR: My custom mob will only attack you when you walk up to it. It wont run after you. Pls help.
insert code block "Attack in sight only {false} nearby only {false} entities of type {mob}" before "do melee attack..."
I tried adding that to the procedure, but it still did the same thing...
check the checkbox "chase after lost sight"
i tried that, but it is still doing the same thing...
If you want it to stay still then either do stick in cobwebs or set the speed to 0
I don't want it to stay still the problem is that it is staying still.
It's a Vanilla bug and it happens to vanilla creatures as well, fixed in 1.16 snapshots
In twilight forest mod that was the same issue for the hydra so they kept it and everybody loved fighting the boss. You should keep trying to fix it, you will eventually get it to work.