Entity Randomizer (ProjectE)
Description
Converts an entity on the list into a random other entity on the list when a projectile fired from the Philosopher's Stone hits it. There are two lists, one for 'mobs' and the other for 'peacefuls', but any entity can go on either list.
Identifier
Refer to this via any of the following:
mods.projecte.entity_randomizer/* Used as page default */
mods.projecte.entityrandomizer
mods.projecte.entityRandomizer
mods.projecte.EntityRandomizer
Adding Entries
Adds the given
entity
that extendsEntityLiving
to the mob list:groovymods.projecte.entity_randomizer.addMob(Class<? extends EntityLiving>)
Adds the given
entity
that extendsEntityLiving
to the mob list:groovymods.projecte.entity_randomizer.addMob(EntityEntry)
Adds the given
entity
that extendsEntityLiving
to the peaceful list:groovymods.projecte.entity_randomizer.addPeaceful(Class<? extends EntityLiving>)
Adds the given
entity
that extendsEntityLiving
to the peaceful list:groovymods.projecte.entity_randomizer.addPeaceful(EntityEntry)
Example
mods.projecte.entity_randomizer.addMob(entity('minecraft:pig'))
mods.projecte.entity_randomizer.addPeaceful(entity('minecraft:zombie'))
Removing Entries
Removes the given
entity
that extendsEntityLiving
from the mob list:groovymods.projecte.entity_randomizer.removeMob(Class<? extends EntityLiving>)
Removes the given
entity
that extendsEntityLiving
from the mob list:groovymods.projecte.entity_randomizer.removeMob(EntityEntry)
Removes the given
entity
that extendsEntityLiving
from the peaceful list:groovymods.projecte.entity_randomizer.removePeaceful(Class<? extends EntityLiving>)
Removes the given
entity
that extendsEntityLiving
from the peaceful list:groovymods.projecte.entity_randomizer.removePeaceful(EntityEntry)
Removes all registered recipes:
groovymods.projecte.entity_randomizer.removeAll()
Removes all entries from the mob list:
groovymods.projecte.entity_randomizer.removeAllMobs()
Removes all entries from the peacefuls list:
groovymods.projecte.entity_randomizer.removeAllPeacefuls()
Example
mods.projecte.entity_randomizer.removeMob(entity('minecraft:zombie'))
mods.projecte.entity_randomizer.removePeaceful(entity('minecraft:pig'))
mods.projecte.entity_randomizer.removeAll()
mods.projecte.entity_randomizer.removeAllMobs()
mods.projecte.entity_randomizer.removeAllPeacefuls()
Getting the value of entries
Iterates through every entry in the mob list:
groovymods.projecte.entity_randomizer.streamMobs()
Iterates through every entry in the peacefuls list:
groovymods.projecte.entity_randomizer.streamPeacefuls()