Class
import mods.roots.SummonCreatures;
Methods
void addEntity( IEntityDefinition entity, // the entity to be summoned IIngredient[] ingredients // a list of ingredients used for the summoning);
void removeEntity( IEntityDefinition entity // the entity to remove from summoning via recipe);
void removeLifeEssence( IEntityDefinition entity // the entity to remove life essence for);
void addLifeEssence( IEntityDefinition entity // the entity to add life essence for);
void clearLifeEssence();
Examples
import mods.roots.SummonCreatures;
// Clear all automatically generated Life Essences added by// the Animal Harvest mapSummonCreatures.clearLifeEssence();
// Add a recipe to summon a Chicken using 3 itemsSummonCreatures.addEntity(<entity:minecraft:chicken>, [<minecraft:wheat_seeds>, <minecraft:wheat>, <ore:ingotIron>]);
// Remove the enderman added by the Animal Harvest example// from the Life Essence list (presuming it hasn't been cleared)SummonCreatures.removeLifeEssence(<entity:minecraft:enderman>);
// Manually add a life-essence drop capability for an ender dragonSummonCreatures.addLifeEssence(<entity:minecraft:ender_dragon>);
// Remove the default recipe for cowsSummonCreatures.removeEntity(<entity:minecraft:cow>);