Skip to content

Casting Table (Tinkers' Construct)

Description

Pours out fluid onto a table to solidify it into a solid, optionally with a cast itemstack.

Identifier

Refer to this via any of the following:

groovy
mods.tconstruct.casting_table/* Used as page default */
mods.tconstruct.castingtable
mods.tconstruct.castingTable
mods.tconstruct.CastingTable
mods.tconstruct.table
mods.tconstruct.Table
mods.tinkersconstruct.casting_table
mods.tinkersconstruct.castingtable
mods.tinkersconstruct.castingTable
mods.tinkersconstruct.CastingTable
mods.tinkersconstruct.table
mods.tinkersconstruct.Table
mods.ticon.casting_table
mods.ticon.castingtable
mods.ticon.castingTable
mods.ticon.CastingTable
mods.ticon.table
mods.ticon.Table

Adding Recipes

  • Add the given recipe to the recipe list:

    groovy
    mods.tconstruct.casting_table.add(ICastingRecipe)

Recipe Builder

Just like other recipe types, the Casting Table also uses a recipe builder.

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

mods.tconstruct.casting_table.recipeBuilder()
  • 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>)
  • IIngredient. The item to use as a cast. null for no cast.

    groovy
    cast(IIngredient)
  • int. The time in ticks it takes for the recipe to complete. Requires greater than or equal to 1. (Default 200).

    groovy
    coolingTime(int)
  • boolean. Whether the cast item is destroyed. (Default false).

    groovy
    consumesCast()
    consumesCast(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 slimeknights.tconstruct.library.smeltery.ICastingRecipe).

    groovy
    register()
Example
groovy
mods.tconstruct.casting_table.recipeBuilder()
    .fluidInput(fluid('lava') * 50)
    .output(item('minecraft:diamond'))
    .coolingTime(750)
    .consumesCast(true)
    .cast(ore('gemEmerald'))
    .register()

Removing Recipes

  • Removes the given recipe from the recipe list:

    groovy
    mods.tconstruct.casting_table.remove(ICastingRecipe)
  • Removes all recipes that use the given item as a cast:

    groovy
    mods.tconstruct.casting_table.removeByCast(IIngredient)
  • Removes all recipes that match the given input:

    groovy
    mods.tconstruct.casting_table.removeByInput(FluidStack)
  • Removes all recipes that match the given output:

    groovy
    mods.tconstruct.casting_table.removeByOutput(ItemStack)
  • Removes all registered recipes:

    groovy
    mods.tconstruct.casting_table.removeAll()
Example
groovy
mods.tconstruct.casting_table.removeByCast(item('minecraft:bucket'))
mods.tconstruct.casting_table.removeByInput(fluid('iron'))
mods.tconstruct.casting_table.removeByOutput(item('minecraft:gold_ingot'))
mods.tconstruct.casting_table.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.tconstruct.casting_table.streamRecipes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.