Skip to content

Magmatic Dynamo (Thermal Expansion)

Description

Converts an input fluidstack into power, taking time based on the power.

Identifier

Refer to this via any of the following:

groovy
mods.thermal.magmatic
mods.thermal.Magmatic
mods.thermalexpansion.magmatic/* Used as page default */
mods.thermalexpansion.Magmatic

Adding Recipes

  • Adds recipes in the format fluidStack, energy:

    groovy
    mods.thermalexpansion.magmatic.add(FluidStack, int)
Example
groovy
mods.thermalexpansion.magmatic.add(fluid('steam'), 100)

Removing Recipes

  • Removes all recipes with given FluidStack:

    groovy
    mods.thermalexpansion.magmatic.removeByInput(FluidStack)
  • Removes all recipes with given FluidStack:

    groovy
    mods.thermalexpansion.magmatic.removeByInput(String)
  • Removes all registered recipes:

    groovy
    mods.thermalexpansion.magmatic.removeAll()
Example
groovy
mods.thermalexpansion.magmatic.removeByInput(fluid('lava'))
mods.thermalexpansion.magmatic.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.thermalexpansion.magmatic.streamRecipes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.