Skip to content

Circuit Scribe (Factory Tech)

Description

Converts an input itemstack into an output itemstack, with the ability to control if stone parts are allowed.

Identifier

Refer to this via any of the following:

groovy
mods.factorytech.circuit_scribe/* Used as page default */
mods.factorytech.circuitscribe
mods.factorytech.circuitScribe
mods.factorytech.CircuitScribe

Adding Recipes

  • Add the given recipe to the recipe list:

    groovy
    mods.factorytech.circuit_scribe.add(MachineRecipes.MachineRecipe<ItemStack, ItemStack>)

Recipe Builder

Just like other recipe types, the Circuit Scribe also uses a recipe builder.

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

Recipe Builder
  • Create the Recipe Builder.

    groovy
    mods.factorytech.circuit_scribe.recipeBuilder()

  • IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires exactly 1.

    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>)
  • boolean. Sets if the recipe can use stone parts. (Default false).

    groovy
    allowStoneParts()
    allowStoneParts(boolean)

  • 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 dalapo.factech.auxiliary.MachineRecipes$MachineRecipe<net.minecraft.item.ItemStack, net.minecraft.item.ItemStack>).

    groovy
    register()

Example
groovy
mods.factorytech.circuit_scribe.recipeBuilder()
    .input(item('minecraft:clay'))
    .output(item('minecraft:diamond'))
    .register()

mods.factorytech.circuit_scribe.recipeBuilder()
    .input(item('minecraft:gold_ingot'))
    .output(item('minecraft:clay'))
    .allowStoneParts()
    .register()

Removing Recipes

  • Removes the given recipe from the recipe list:

    groovy
    mods.factorytech.circuit_scribe.remove(MachineRecipes.MachineRecipe<ItemStack, ItemStack>)
  • Removes all recipes that match the given input:

    groovy
    mods.factorytech.circuit_scribe.removeByInput(IIngredient)
  • Removes all recipes that match the given output:

    groovy
    mods.factorytech.circuit_scribe.removeByOutput(IIngredient)
  • Removes all registered recipes:

    groovy
    mods.factorytech.circuit_scribe.removeAll()
Example
groovy
mods.factorytech.circuit_scribe.removeByInput(item('factorytech:circuit_intermediate:8'))
mods.factorytech.circuit_scribe.removeByOutput(item('factorytech:circuit_intermediate:8'))
mods.factorytech.circuit_scribe.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.factorytech.circuit_scribe.streamRecipes()

Contributors

© 2024 CleanroomMC. All Rights Reserved.