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
Refer to this via any of the following:
groovy
mods.bewitchment.curse/* Used as page default */
mods.bewitchment.Curse
Adding Entries
Adds the recipe:
groovymods.bewitchment.curse.add(Curse)
Removing Entries
Removes the recipe with the given Resource Location:
groovymods.bewitchment.curse.remove(ResourceLocation)
Removes the recipe with the given String as its Resource Location:
groovymods.bewitchment.curse.remove(String)
Removes the recipe:
groovymods.bewitchment.curse.remove(Curse)
Removes all recipes that match the given input:
groovymods.bewitchment.curse.removeByInput(IIngredient)
Removes all registered recipes:
groovymods.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:
groovymods.bewitchment.curse.streamRecipes()