Enchanter Fuel (Aether Legacy)
Description
By default, the Enchanter (Altar) takes Ambrosium Shards as fuel. Using GroovyScript, custom fuels can be added.
Identifier
The identifier mods.aether_legacy.enchanter_fuel will be used as the default on this page.
All Identifiers
Any of these can be used to refer to this compat:
groovy
mods.aether.enchanterfuel
mods.aether.enchanterFuel
mods.aether.EnchanterFuel
mods.aether.enchanter_fuel
mods.aether_legacy.enchanterfuel
mods.aether_legacy.enchanterFuel
mods.aether_legacy.EnchanterFuel
mods.aether_legacy.enchanter_fuel/* Used as page default */Adding Recipes
Adds the recipe:
groovymods.aether_legacy.enchanter_fuel.add(AetherEnchantmentFuel)Adds an Enchanting fuel in the format
item,timeGiven:groovymods.aether_legacy.enchanter_fuel.add(ItemStack, int)
Example
groovy
mods.aether_legacy.enchanter_fuel.add(item('minecraft:blaze_rod'), 1000)Removing Recipes
Removes the recipe:
groovymods.aether_legacy.enchanter_fuel.remove(AetherEnchantmentFuel)Removes the recipe with the given String as its Resource Location:
groovymods.aether_legacy.enchanter_fuel.remove(String)Removes the recipe with the given Resource Location:
groovymods.aether_legacy.enchanter_fuel.remove(ResourceLocation)Removes all recipes that match the given input:
groovymods.aether_legacy.enchanter_fuel.removeByItem(IIngredient)Removes all registered recipes:
groovymods.aether_legacy.enchanter_fuel.removeAll()
Example
groovy
mods.aether_legacy.enchanter_fuel.removeByItem(item('aether_legacy:ambrosium_shard'))
mods.aether_legacy.enchanter_fuel.removeAll()Getting the value of recipes
Iterates through every entry in the registry, with the ability to call remove on any element to remove it:
groovymods.aether_legacy.enchanter_fuel.streamRecipes()
