Skip to content

Radiating Chamber (EssentialCraft 4)

Description

Combines two items together using MRU to obtain a third item. Can optionally require a specific range of MRU balance to execute the recipe.

Identifier

Refer to this via any of the following:

groovy
mods.ec4.radiating_chamber
mods.ec4.radiatingchamber
mods.ec4.radiatingChamber
mods.ec4.RadiatingChamber
mods.essentialcraft.radiating_chamber/* Used as page default */
mods.essentialcraft.radiatingchamber
mods.essentialcraft.radiatingChamber
mods.essentialcraft.RadiatingChamber

Adding Recipes

  • Add the given recipe to the recipe list:

    groovy
    mods.essentialcraft.radiating_chamber.add(RadiatingChamberRecipe)

Recipe Builder

Just like other recipe types, the Radiating Chamber also uses a recipe builder.

Don't know what a builder is? Check the builder info page out.

mods.essentialcraft.radiating_chamber.recipeBuilder()
  • IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires greater than or equal to 1 and less than or equal to 2.

    groovy
    input(IIngredient)
    input(IIngredient...)
    input(Collection<IIngredient>)
  • ItemStackList. Sets the item outputs of the recipe. Requires exactly 1.

    groovy
    output(ItemStack)
    output(ItemStack...)
    output(Collection<ItemStack>)
  • int. Sets the time needed to execute this recipe, in ticks. Requires greater than or equal to 1. (Default 0).

    groovy
    time(int)
  • float. Sets the amount of MRU spent by the Chamber each tick. The total MRU can be calculated as time * mruPerTick. Requires greater than or equal to 1. (Default 1.0f).

    groovy
    mruPerTick(float)
  • float. Sets the minimum balance required for this recipe. Requires greater than or equal to 0 and less than or equal to 2. (Default 0.0f).

    groovy
    lowerBalance(float)
  • float. Sets the maximum balance required for this recipe. Requires greater than or equal to 0 and less than or equal to 2. (Default 2.0f).

    groovy
    upperBalance(float)
  • First validates the builder, returning null and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returns null or essentialcraft.api.RadiatingChamberRecipe).

    groovy
    register()
Example
groovy
mods.essentialcraft.radiating_chamber.recipeBuilder()
    .input(item('minecraft:nether_star'), item('minecraft:stone'))
    .output(item('minecraft:beacon'))
    .time(100)
    .mruPerTick(10.0f)
    .upperBalance(1.5f)
    .lowerBalance(0.25f)
    .register()

Removing Recipes

  • Removes the given recipe from the recipe list:

    groovy
    mods.essentialcraft.radiating_chamber.remove(RadiatingChamberRecipe)
  • Removes all recipes that match the given output:

    groovy
    mods.essentialcraft.radiating_chamber.removeByOutput(IIngredient)
  • Removes all registered recipes:

    groovy
    mods.essentialcraft.radiating_chamber.removeAll()
Example
groovy
mods.essentialcraft.radiating_chamber.removeByOutput(item('essentialcraft:genitem', 42))
mods.essentialcraft.radiating_chamber.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.essentialcraft.radiating_chamber.streamRecipes()

Contributors

© 2024 CleanroomMC. All Rights Reserved.

Layout Switch

Adjust the layout style of VitePress to adapt to different reading needs and screens.

Expand all
The sidebar and content area occupy the entire width of the screen.
Expand sidebar with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Expand all with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Original width
The original layout width of VitePress

Page Layout Max Width

Adjust the exact value of the page width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the page layout
A ranged slider for user to choose and customize their desired width of the maximum width of the page layout can go.

Content Layout Max Width

Adjust the exact value of the document content width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the content layout
A ranged slider for user to choose and customize their desired width of the maximum width of the content layout can go.

Spotlight

Highlight the line where the mouse is currently hovering in the content to optimize for users who may have reading and focusing difficulties.

ONOn
Turn on Spotlight.
OFFOff
Turn off Spotlight.

Spotlight Styles

Adjust the styles of Spotlight.

Under
Add a solid background color underneath the hovering element to highlight where the cursor is currently hovering.
Aside
Add a fixed line with solid color aside the hovering element to highlight where the cursor is currently hovering.