Skip to content

Pets (Bewitchment)

Description

Sets what animals are valid for summoning via the FortuneMeetPet effect.

Identifier

Refer to this via any of the following:

groovy
mods.bewitchment.pet/* Used as page default */
mods.bewitchment.Pet

Adding Entries

  • Add the given recipe to the recipe list:

    groovy
    mods.bewitchment.pet.add(EntityEntry)
Example
groovy
mods.bewitchment.pet.add(entity('minecraft:cow'))

Removing Entries

  • Removes the given recipe from the recipe list:

    groovy
    mods.bewitchment.pet.remove(EntityEntry)
  • Removes all registered recipes:

    groovy
    mods.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:

    groovy
    mods.bewitchment.pet.streamRecipes()

Contributors

© 2024 CleanroomMC. All Rights Reserved.