Entity Randomizer
Link to entity-randomizer
Adding and removing entities from ProjectE's philosopher's stone entity randomizer projectile uses an IEntityDefinition.
Note: This IEntityDefinition must be for a living entity.
Adding
Link to adding
addPeaceful
Link to addpeaceful
ZenScript Copymods.projecte.EntityRandomizer.addPeaceful(IEntityDefinition entityDefinition);
// Allows turning peaceful creatures into zombies.
mods.projecte.EntityRandomizer.addPeaceful(<entity:minecraft:zombie>);
addMob
Link to addmob
ZenScript Copymods.projecte.EntityRandomizer.addMob(IEntityDefinition entityDefinition);
// Allows turning hostile mobs into pigs.
mods.projecte.EntityRandomizer.addMob(<entity:minecraft:pig>);
Removing
Link to removing
removePeaceful
Link to removepeaceful
ZenScript Copymods.projecte.EntityRandomizer.removePeaceful(IEntityDefinition entityDefinition);
// Stops peaceful mobs being able to be turned into pigs.
mods.projecte.EntityRandomizer.removePeaceful(<entity:minecraft:pig>);
removeMob
Link to removemob
ZenScript Copymods.projecte.EntityRandomizer.removeMob(IEntityDefinition entityDefinition);
// Stops hostile mobs being able to be turned into zombies.
mods.projecte.EntityRandomizer.removeMob(<entity:minecraft:zombie>);
clearPeacefuls
Link to clearpeacefuls
ZenScript Copy// Removes all randomized peaceful mob entries including ones registered by CraftTweaker before this call.
mods.projecte.EntityRandomizer.clearPeacefuls();
clearMobs
Link to clearmobs
ZenScript Copy// Removes all randomized hostile mob entries including ones registered by CraftTweaker before this call.
mods.projecte.EntityRandomizer.clearMobs();