Skip to content

Curses (Bewitchment)

Description

Allows applying curses to a player to cause unique effects in the Brazier with a bewitchment:taglock targeting the desired player.

Identifier

The identifier mods.bewitchment.curse 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.curse/* Used as page default */
mods.bewitchment.Curse

Adding Entries

  • Adds the recipe:

    groovy
    mods.bewitchment.curse.add(Curse)

Removing Entries

  • Removes the recipe:

    groovy
    mods.bewitchment.curse.remove(Curse)
  • Removes the recipe with the given String as its Resource Location:

    groovy
    mods.bewitchment.curse.remove(String)
  • Removes the recipe with the given Resource Location:

    groovy
    mods.bewitchment.curse.remove(ResourceLocation)
  • Removes all recipes that match the given input:

    groovy
    mods.bewitchment.curse.removeByInput(IIngredient)
  • Removes all registered recipes:

    groovy
    mods.bewitchment.curse.removeAll()
Example
groovy
mods.bewitchment.curse.remove(resource('bewitchment:berserker'))
mods.bewitchment.curse.removeByInput(item('minecraft:blaze_rod'))
mods.bewitchment.curse.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.curse.streamRecipes()

Contributors

© 2024 CleanroomMC. All Rights Reserved.