I know this is complicated, but I'm stuck. Basically what I would like is to have a zombie walk in a circle endlessly. I still want the zombie to be able to track players, but I don't want it to stop walking. If somebody could point me towards an up-to-date tutorial or other resource, that would be fantastic.
Not quite enough... Much appreciated, though. Bump? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
@bean710 Do you need help with the custom entity itself, making it walk in a circle around its target, or both?
@bean710 Something like a Pathfinder would do: 0) Create a number field in the class and set it to 0 and create a location from where you want it to circle 1) Check for nearby tagettable entities 1a) If there are entities, target 1b) If there aren't, continue 2) Increment the number, and let the zombie walk to x=Math.cos(Math.toRadians(number)), z = Math.sin(Math.toRadians(number))
I guess now I only need help with the custom entity thing. It seems really difficult to find an up-to-date resource
@bean710 This is the most up-to-date tutorial about how to create a custom entity, and the one which I personally recommend. There is no tutorial for 1.8 specifically, but not much has changed between versions for the creation of custom entities.
I have tried this, but I got errors in my IDE, let me try again... @ShadowLAX I have to suppress a bunch of warnings and I also get an error for 'ZOMBIE("Zombie", 54, EntityType.ZOMBIE, EntityZombie.class, CustomEntityZombie.class);' EDIT by Moderator: merged posts, please use the edit button instead of double posting.
@bean710 You shouldn't have the error, but the warnings *should* be normal and can be suppressed. What is the error?
Alright, so let me clarify. I need a zombie that will walk in a circle, but I need it to call a function when it tracks a player and then keep walking. I've been stuck for about a week.