Can't see custom entity

Discussion in 'Plugin Development' started by thok13, Nov 27, 2013.

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

    thok13

    I have a custom chicken:
    Code:java
    1. import net.minecraft.server.v1_6_R3.EntityChicken;
    2. import net.minecraft.server.v1_6_R3.EntityHuman;
    3. import net.minecraft.server.v1_6_R3.PathfinderGoalNearestAttackableTarget;
    4. import net.minecraft.server.v1_6_R3.PathfinderGoalSelector;
    5. import net.minecraft.server.v1_6_R3.World;
    6.  
    7. public class derpychicken extends EntityChicken
    8. {
    9.  
    10. public derpychicken(World world)
    11. {
    12. super(world);
    13. this.targetSelector.a(2, new PathfinderGoalNearestAttackableTarget(this, EntityHuman.class, 0, true));
    14. }
    15.  
    16.  
    17. }
    18.  

    I can kill it, and it drops items, but I can't see it.
    Here's the code I use to spawn it:
    Code:java
    1. CraftWorld c = (CraftWorld)l.getWorld();
    2. derpychicken fo = new derpychicken(c.getHandle());
    3. c.getHandle().addEntity(fo, SpawnReason.NATURAL);
    4. fo.setLocation(x,y,z);
     
Thread Status:
Not open for further replies.

Share This Page