ZenScript Copyimport mods.roots.SummonCreatures;
使用方式
Link to 使用方式
ZenScript Copyvoid addEntity(
IEntityDefinition entity, // the entity to be summoned
IIngredient[] ingredients // a list of ingredients used for the summoning
);
ZenScript Copyvoid removeEntity(
IEntityDefinition entity // the entity to remove from summoning via recipe
);
ZenScript Copyvoid removeLifeEssence(
IEntityDefinition entity // the entity to remove life essence for
);
ZenScript Copyvoid addLifeEssence(
IEntityDefinition entity // the entity to add life essence for
);
ZenScript Copyvoid clearLifeEssence();
ZenScript Copyimport 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>);