Trying to disable collide of a mob

Discussion in 'Plugin Development' started by NortherKnight, Aug 29, 2015.

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

    NortherKnight

    Already created class for CustomIronGolem disabled movement except for looking at player but i can't disable the mob from moving when player is pushing it.

    Tryed Overriding function:
    Code:
    @Override
    public void collide(Entity e)
    {
        if (e instanceof EntityPlayer)
        {
            return;
        }
        super.collide(e);
    }
    It registers but dosent stop it.
    PS: I am aware that collide is client side but can i disable that?
     
  2. Offline

    sailorerik

    1. set iron golem cordinades
    2. every tick teleport golem to cordinades.
     
  3. Offline

    NortherKnight

    @sailorerik Won't that make it buggy and spaze out?
     
  4. Offline

    sailorerik

    Yes and no.
    Yes, mob wont look players anymore, because you teleport mob every time.
    No, Its not buggy at all.
     
  5. Offline

    NortherKnight

    I figgured it out just override the move method and leave it empty
    Code:
    @Override
    public void move(double d0, double d1, double d2)
    {
    
    }
     
Thread Status:
Not open for further replies.

Share This Page