Home Getting Started With Scripts Using this wiki Commands CTGUI Global functions Bracket Handlers

Class

script.zs
import mods.roots.SummonCreatures;

Methods

script.zs
void addEntity(
IEntityDefinition entity, // the entity to be summoned
IIngredient[] ingredients // a list of ingredients used for the summoning
);

script.zs
void removeEntity(
IEntityDefinition entity // the entity to remove from summoning via recipe
);

script.zs
void removeLifeEssence(
IEntityDefinition entity // the entity to remove life essence for
);

script.zs
void addLifeEssence(
IEntityDefinition entity // the entity to add life essence for
);

script.zs
void clearLifeEssence();

Examples

script.zs
import mods.roots.SummonCreatures;
// Clear all automatically generated Life Essences added by
// the Animal Harvest map
SummonCreatures.clearLifeEssence();
// Add a recipe to summon a Chicken using 3 items
SummonCreatures.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 dragon
SummonCreatures.addLifeEssence(<entity:minecraft:ender_dragon>);
// Remove the default recipe for cows
SummonCreatures.removeEntity(<entity:minecraft:cow>);