NMS - Magma Cubes don't want to attack wolf, just follow them

Discussion in 'Plugin Development' started by TheEnderCrafter9, Aug 21, 2017.

Thread Status:
Not open for further replies.
  1. Hi, I am creating an NMS class that will substitute the Magma Cube class. I want to make it so that this magma cube attacks wolves and horses, however it does not attack them, just follow them.

    This is the constructor
    Code:
        public ESGLavaSlime(World world) {
            super(world);
           //trying to make the slime ridable
            if (FIELD_JUMP == null) {
                try {
                    FIELD_JUMP = EntityLiving.class.getDeclaredField("aY");
                    FIELD_JUMP.setAccessible(true);
                } catch (NoSuchFieldException e) {
                    e.printStackTrace();
                }
            }
            this.targetSelector.a(3, new PathfinderGoalNearestAttackableTargetInsentient(this, EntityWolf.class));
        }
    
     
  2. That post is mad outdated. Also, it doesn't cover slimes which have different methods
     
  3. Offline

    flo077

    which version of spigot do you use?
     
Thread Status:
Not open for further replies.

Share This Page