Skip to content

Enchanter Fuel (Aether Legacy)

Description

By default, the Enchantar (Altar) takes Ambrosium Shards as fuel. Using GroovyScript, custom fuels can be added.

Identifier

Refer to this via any of the following:

groovy
mods.aether_legacy.enchanter_fuel/* Used as page default */
mods.aether_legacy.enchanterfuel
mods.aether_legacy.enchanterFuel
mods.aether_legacy.EnchanterFuel
mods.aether.enchanter_fuel
mods.aether.enchanterfuel
mods.aether.enchanterFuel
mods.aether.EnchanterFuel

Adding Recipes

  • Adds an Enchanting fuel in the format item, timeGiven.:

    groovy
    mods.aether_legacy.enchanter_fuel.add(ItemStack, int)
Example
groovy
mods.aether_legacy.enchanter_fuel.add(item('minecraft:blaze_rod'), 1000)

Removing Recipes

  • Removes all recipes that match the given input:

    groovy
    mods.aether_legacy.enchanter_fuel.removeByItem(IIngredient)
  • Removes all registered recipes:

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

    groovy
    mods.aether_legacy.enchanter_fuel.streamRecipes()

© 2024 CleanroomMC. All Rights Reserved.