Custom Zombie Thingys

Discussion in 'Plugin Development' started by bean710, Sep 5, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    bean710

    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.
     
  2. Offline

    Zombie_Striker

  3. Offline

    bean710

    Last edited by a moderator: Jun 11, 2016
  4. Offline

    Zombie_Striker

    @bean710
    You must wait 24 hours before bumping your thread.
     
  5. Offline

    bean710

    Bump, please, anyone...
     
  6. Offline

    ShadowLAX

    @bean710 Do you need help with the custom entity itself, making it walk in a circle around its target, or both?
     
  7. @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))
     
  8. Offline

    bean710

    I guess now I only need help with the custom entity thing. It seems really difficult to find an up-to-date resource
     
  9. Offline

    ShadowLAX

    @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.
     
  10. Offline

    bean710

    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.
     
    Last edited by a moderator: Jun 11, 2016
  11. Offline

    ShadowLAX

    @bean710 You shouldn't have the error, but the warnings *should* be normal and can be suppressed. What is the error?
     
  12. Offline

    bean710

    @ShadowLAX *sigh* I go to check what the error is and it's not there. Funny how that works...
     
  13. Offline

    bean710

    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.
     
  14. Offline

    RoboticPlayer

    @bean710 Is this still an issue, or is it fixed?
     
Thread Status:
Not open for further replies.

Share This Page