Pets (Bewitchment)
Description
Sets what animals are valid for summoning via the FortuneMeetPet effect.
Identifier
The identifier mods.bewitchment.pet will be used as the default on this page.
All Identifiers
Any of these can be used to refer to this compat:
groovy
mods.bewitchment.pet/* Used as page default */
mods.bewitchment.PetAdding Entries
Add the given recipe to the recipe list:
groovymods.bewitchment.pet.add(EntityEntry)
Example
groovy
mods.bewitchment.pet.add(entity('minecraft:cow'))Removing Entries
Removes the given recipe from the recipe list:
groovymods.bewitchment.pet.remove(EntityEntry)Removes all registered recipes:
groovymods.bewitchment.pet.removeAll()
Example
groovy
mods.bewitchment.pet.remove(entity('minecraft:ocelot'))
mods.bewitchment.pet.removeAll()Getting the value of entries
Iterates through every entry in the registry, with the ability to call remove on any element to remove it:
groovymods.bewitchment.pet.streamRecipes()
