Ender dragon NoClip

Discussion in 'Plugin Development' started by Ytry, Jul 28, 2012.

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

    Ytry

    Today I am here to ask if anyone knows a way to remove no clip from Ender Dragons. I am pretty sure this is possible as I have seen people edit mob AI. Anyone got any suggestions on how I would do this?

    I know that to modify something about an EnderDragon you have to create a class, make it extend the class for EnderDragons.
    Code:
    import org.bukkit.entity.EnderDragon;
     
    import net.minecraft.server.World;
     
    public class Dragons extends net.minecraft.server.EntityEnderDragon {
       
        public Dragons(World world) {
            super(world);
           
        }
        public void s_(){
        EnderDragon dragon = (EnderDragon) this.getBukkitEntity();
        }
    }
    This is what I have so far. I just can't figure out a way to take away their noclip.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 27, 2016
  2. Offline

    bossomeness

    I know this is UBER late, but I need this too! Thanks to anyone who can help.
     
  3. Offline

    adam753

    ... Just a bit late, yeah.
    I suppose you could override EntityMoveEvent (or whatever it's called) to stop ender dragons going near walls? Might cause a bit of lag.
     
  4. Offline

    ZeusAllMighty11

    adam753

    There is no entity move event
     
Thread Status:
Not open for further replies.

Share This Page