Skip to content

Bottling Machine (Immersive Engineering)

Description

Converts an input itemstack and fluidstack into an output itemstack.

Identifier

Refer to this via any of the following:

groovy
mods.ie.bottling_machine
mods.ie.bottlingmachine
mods.ie.bottlingMachine
mods.ie.BottlingMachine
mods.ie.bottling
mods.ie.Bottling
mods.immersiveengineering.bottling_machine/* Used as page default */
mods.immersiveengineering.bottlingmachine
mods.immersiveengineering.bottlingMachine
mods.immersiveengineering.BottlingMachine
mods.immersiveengineering.bottling
mods.immersiveengineering.Bottling

Adding Recipes

  • Add the given recipe to the recipe list:

    groovy
    mods.immersiveengineering.bottling_machine.add(BottlingMachineRecipe)
  • Adds recipes in the format output, input, fluidInput:

    groovy
    mods.immersiveengineering.bottling_machine.add(ItemStack, IIngredient, FluidStack)

Recipe Builder

Just like other recipe types, the Bottling Machine also uses a recipe builder.

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

mods.immersiveengineering.bottling_machine.recipeBuilder()
  • IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires exactly 1.

    groovy
    input(IIngredient)
    input(IIngredient...)
    input(Collection<IIngredient>)
  • FluidStackList. Sets the fluid inputs of the recipe. Requires exactly 1.

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

    groovy
    output(ItemStack)
    output(ItemStack...)
    output(Collection<ItemStack>)
  • 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 blusunrize.immersiveengineering.api.crafting.BottlingMachineRecipe).

    groovy
    register()
Example
groovy
mods.immersiveengineering.bottling_machine.recipeBuilder()
    .input(item('minecraft:diamond'))
    .fluidInput(fluid('water'))
    .output(item('minecraft:clay'))
    .register()

Removing Recipes

  • Removes the given recipe from the recipe list:

    groovy
    mods.immersiveengineering.bottling_machine.remove(BottlingMachineRecipe)
  • Removes all recipes that match the given input:

    groovy
    mods.immersiveengineering.bottling_machine.removeByInput(ItemStack, FluidStack)
  • Removes all recipes that match the given output:

    groovy
    mods.immersiveengineering.bottling_machine.removeByOutput(ItemStack)
  • Removes all registered recipes:

    groovy
    mods.immersiveengineering.bottling_machine.removeAll()
Example
groovy
mods.immersiveengineering.bottling_machine.removeByInput(item('minecraft:sponge'), fluid('water') * 1000)
mods.immersiveengineering.bottling_machine.removeByOutput(item('minecraft:potion').withNbt([Potion:'minecraft:mundane']))
mods.immersiveengineering.bottling_machine.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.immersiveengineering.bottling_machine.streamRecipes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.