Fortune (Bewitchment)
Description
Modifies potential Fortunes, with a random one being selected from the list when interacting with a Crystal Ball. Some amount of time will pass before the Fortune occurs, whereupon a customizable effect will happen.
Identifier
Refer to this via any of the following:
groovy
mods.bewitchment.fortune/* Used as page default */
mods.bewitchment.Fortune
Adding Entries
Adds the recipe:
groovymods.bewitchment.fortune.add(Fortune)
Removing Entries
Removes the recipe with the given Resource Location:
groovymods.bewitchment.fortune.remove(ResourceLocation)
Removes the recipe with the given String as its Resource Location:
groovymods.bewitchment.fortune.remove(String)
Removes the recipe:
groovymods.bewitchment.fortune.remove(Fortune)
Removes all registered recipes:
groovymods.bewitchment.fortune.removeAll()
Example
groovy
mods.bewitchment.fortune.remove(resource('bewitchment:cornucopia'))
mods.bewitchment.fortune.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.fortune.streamRecipes()