Tutorial - How to Customize the Behaviour of a Mob or Entity

Discussion in 'Resources' started by Jacek, Jan 13, 2012.

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

    Dealyise

    So, is there any solution for the Minecart Problem? I can't use MINECART or MINECART_RIDEABLE like here:
    MINECART_RIDEABLE("Minecart_Rideable", 42, EntityType.MINECART, EntityMinecartRideable.class, CustomEntityMinecartRideable.class);

    Could someone help me out?
     
  2. I have the same problem :(
     
  3. Offline

    Acer_Mortem

    How do we know which methods to replace?

    For example, I want a Zombie to shoot arrows instead of moving to a player and melee attacking. How would I know which methods to override?
     
  4. Offline

    RingOfStorms

    By reading the code and figuring out the differences between a skeleton and a zombie.
     
  5. Offline

    terturlcraft

    I am having some trouble....

    when I got down to the bottom I entered this code in
    Code:java
    1. for (BiomeBase biomeBase : BiomeBase.biomes)

    the BiomeBase.biomes was not visible... It may just be me being dumb, but does anyone know how to fix it?
     
  6. Offline

    Cirno

    Quick fix (aka, please find a better method):
    Code:java
    1.  
    2. Field biomes_f = BiomeBase.class.getDeclaredField("biomes");
    3. biomes_f.setAccessible(true);
    4. BiomeBase[] biomes = biomes_f.get(null);
    5. for(BiomeBase base : biomes){
    6. //whatever
    7. }
     
Thread Status:
Not open for further replies.

Share This Page