Solved Unpushable entity

Discussion in 'Plugin Development' started by Someone_Like_You, Apr 2, 2014.

Thread Status:
Not open for further replies.
  1. Ive extended EntitySkeleton and I need to make it unpushable... How would I achieve that without using runnables?
     
  2. Offline

    Jogy34

    override the collide() method in EntitySkeleton
     
    Someone_Like_You likes this.
  3. Jogy34 Where is that method...?
     
  4. Offline

    sara4012

    Someone_Like_You By push what do you mean? Do you mean when you walk into it and it is nudged?
     
    Someone_Like_You likes this.
  5. sara4012 Yea, Im trying to make a moveable npc, but I need the npc to not be pushed by any player
     
  6. Offline

    Jogy34

    the method 'collide(Entity e)' is in the Entity nms class, you can override that and if you just return then your entity won't move when another entity comes into contact with it.
     
    Someone_Like_You likes this.
  7. Jogy34 Thanks, its worked :p
    EDIT: Nope, it didnt worked ;( I can still push the entity
     
  8. Offline

    sara4012

  9. sara4012 I did looked for one, however I havent found any.. :(
     
  10. Offline

    MCForger

    Someone_Like_You
    You can override the move methods inside the extension of EntitySkeleton.
     
    Someone_Like_You likes this.
  11. MCForger ty :p, I decided just letting the npc go around randomly with some pathfinders, :p
     
Thread Status:
Not open for further replies.

Share This Page