Entity following Entity

Discussion in 'Plugin Development' started by thijs_a, Aug 4, 2014.

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

    thijs_a

    Hi, i'm trying to make a pet plugin, and i can't get the following part working.
    So when I do

    Code:java
    1. Chicken chicken = (Chicken) e.getWorld().spawnEntity(e.getLocation(), EntityType.CHICKEN);
    2. chicken.setTarget(LivingEntity);


    It doesn't follow the LivintEntity.
    Can someone help me with this?


    - Thijs
     
  2. Offline

    Gerov

    thijs_a I believe setTarget(); has been broken for a while, correct me if I am wrong.

    If you want to make a pet plugin, you'd need to re write the NMS.
     
  3. Offline

    thijs_a

    What is the NMS :eek:?
     
  4. Offline

    Gerov

    thijs_a Basically, you are adding or editing classes in the bukkit.jar. You can make custom entities, blocks and items using it.
     
  5. Offline

    krazytraynz

    Not entirely accurate. You can technically create new items, blocks, and entities, but only using existing things (no new textures, sounds, etc. without custom resource packs). NMS (the net.minecraft.server package) is more "tapping into" classes, for lack of a better term. You aren't really adding/editing anything.

    As for the question, this tutorial should help you out.
     
Thread Status:
Not open for further replies.

Share This Page