Supporting Other Mods

Hungry Animals provides nice compatibility with other mods.

## Find Compatible Animals

However not all animals are compatible. In details about mod development, animals(entities) whose class extends EntityAnimal can be supported by Hungry Animals mod. Don't worry, this mod also has nice tools to check compatibility.

### Debug Glass

Debug glass is very useful tool for in-game debugger. To get debug glass, you should use creative mode or /give command.

To examine specific animal, you need it. Most entities have their own spawn eggs, so take it also in creative mode. If impossible, you should use /summon command.

Summon the animal using spawn egg. Then right-click the animal with a debug glass. Then GUI Overlay will appear. On the top-left corner of the screen, you can see the name of the animal. Additionally compatible animals have "Compatible" post fix of their name.

### Console Log

You can enable minecraft console in launcher setting. During mod initialization and loading, Hungry Animals outputs logs like this :

[20:32:03] [Client thread/INFO] [hungryanimals]: Configuration: Check compatibility of registered Entity Classes

[20:32:03] [Client thread/INFO] [hungryanimals]: Configuration: Compatible entities' name :

[20:32:03] [Client thread/INFO] [hungryanimals]: Configuration: MoCreatures.Crab

[20:32:03] [Client thread/INFO] [hungryanimals]: Configuration: Ozelot

[20:32:03] [Client thread/INFO] [hungryanimals]: Configuration: MoCreatures.Mole

[20:32:03] [Client thread/INFO] [hungryanimals]: Configuration: MoCreatures.Ent

[20:32:03] [Client thread/INFO] [hungryanimals]: Configuration: MoCreatures.BigCat

[20:32:03] [Client thread/INFO] [hungryanimals]: Configuration: Duck

.

.

.

[20:32:03] [Client thread/INFO] [hungryanimals]: Configuration: Uncompatible entities' name :

[20:32:03] [Client thread/INFO] [hungryanimals]: Configuration: Boat

[20:32:03] [Client thread/INFO] [hungryanimals]: Configuration: Shark

[20:32:03] [Client thread/INFO] [hungryanimals]: Configuration: WitherBoss

[20:32:03] [Client thread/INFO] [hungryanimals]: Configuration: Lyrebird

[20:32:03] [Client thread/INFO] [hungryanimals]: Configuration: MoCreatures.KittyBed

.

.

.

You can easily find out every compatible entities.

## Register Mod Animal

Now you should register target mod animal to your minecraft. Go to .minecraft/configs/HungryAnimals/ModAnimal.cfg. In the file you may see :

# Configuration file

generic {

    S:"Added Mod Entities" <

     >

}

You can add the animal's name into this list. The name is exactly as same as we checked in "Find Compatible Animal" For example :

# Configuration file

generic {

    S:"Added Mod Entities" <

        Turtle

        Duck

        MoCreatures.Goat

     >

}

## Setting Mod Animals' Properties

After register the animals in configuraion file, you must run your minecraft once again. Then for the animals that you registered new categories will appear in ModAnimal.cfg file.

turtle {

    I:"Abiltiy: max hunger"=100

    I:"Abiltiy: needed amount of hunger consumption to produce a pile of excreta"=50

    D:"Behavior: needed ratio(hunger/maxhunger) to do the courting"=0.8

    D:"Behavior: probability to do the courting per a tick"=0.0025

    D:"HungerUsage: basic rate"=0.001

    D:"HungerUsage: to do the courting"=5.0

    D:"HungerUsage: to make a child"=25.0

}

You can adjust these values in the same way as Animal.cfg.