Skip to content

Casting Recipe JSON

Princess edited this page Jan 25, 2021 · 16 revisions

Shared Keys

Item casting and material casting share these keys:
switch_slots: Boolean. Defaults to false. Set to true to force the recipe to put the recipe output into the cast slot.
cast: Ingredient. Optional. Item required to be in the cast slot for the recipe.
cast_consumed: Boolean. Defaults to false. Whether the recipe consumes the item in the cast slot.

Item Casting

Keys

type: Must be either "tconstruct:casting_basin" or "tconstruct:casting_table".
fluid: FluidIngredient. The fluid required to cast the item.
result: ItemOutput. Casting result.
cooling_time: Integer. Time to finish the recipe. In ticks.

Example

{
  "type": "tconstruct:casting_basin",
  "fluid": {
    "name": "tconstruct:molten_cobalt",
    "amount": 1296
  },
  "result": "tconstruct:cobalt_block",
  "cooling_time": 225
}

Material Casting

Keys

type: Must be either "tconstruct:basin_casting_material" or "tconstruct:table_casting_material".
fluid_amount: Integer. The amount of fluid required. In millibuckets.
result: IMaterialItem. Output part type.

Example

{
  "type": "tconstruct:table_casting_material",
  "cast": {
    "item": "tconstruct:pickaxe_head_cast"
  },
  "fluid_amount": 288,
  "result": "tconstruct:pickaxe_head"
}

Composite Casting

Keys

type: Unknown at the time. Presumably "tconstruct:basin_composite" or "tconstruct:table_composite".
input: MaterialId. The material of the input tool part.
fluid: FluidIngredient. The fluid required to cast the item.
result: MaterialId. The material of the output tool part. temperature: Integer. Used to calculate casting time based on part size.

Example

{
  "type": "tconstruct:table_composite",
  "input": "tconstruct:bone",
  "fluid": {
    "name": "tconstruct:fruit_juice",
    "amount": 65536
  },
  "result": "tconstruct:bone_hurting_material",
  "temperature": 1666
}

Container Filling

Keys

type: Must be either "tconstruct:basin_filling" or "tconstruct:table_filling".
fluid_amount: Integer. The amount of fluid required. In millibuckets.
container: IFluidHandlerItem. The container to be filled.

Example

{
  "type": "tconstruct:table_filling",
  "fluid_amount": 1000,
  "container": "minecraft:bucket"
}

Clone this wiki locally