Skip to content

Entity Melting (Tinkers' Construct)

Description

Allows mobs to create a bit of fluid when hurt by the Smeltery.

Identifier

Refer to this via any of the following:

groovy
mods.tconstruct.entity_melting/* Used as page default */
mods.tconstruct.entitymelting
mods.tconstruct.entityMelting
mods.tconstruct.EntityMelting
mods.tinkersconstruct.entity_melting
mods.tinkersconstruct.entitymelting
mods.tinkersconstruct.entityMelting
mods.tinkersconstruct.EntityMelting
mods.ticon.entity_melting
mods.ticon.entitymelting
mods.ticon.entityMelting
mods.ticon.EntityMelting

Adding Recipes

Recipe Builder

Just like other recipe types, the Entity Melting also uses a recipe builder.

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

mods.tconstruct.entity_melting.recipeBuilder()
  • ResourceLocation. The entity to melt. Requires not null.

    groovy
    input(String)
    input(EntityEntry)
    input(String, String)
    input(ResourceLocation)
  • FluidStack. The fluid created each damage tick. Requires not null.

    groovy
    fluidOutput(FluidStack)
  • 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 com.cleanroommc.groovyscript.compat.mods.tinkersconstruct.recipe.EntityMeltingRecipe).

    groovy
    register()
Example
groovy
mods.tconstruct.entity_melting.recipeBuilder()
    .fluidOutput(fluid('iron') * 500)
    .input(resource('minecraft:pig'))
    .register()

Removing Recipes

  • Removes all recipes that match the given input:

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

    groovy
    mods.tconstruct.entity_melting.removeByOutput(FluidStack)
  • Removes all registered recipes:

    groovy
    mods.tconstruct.entity_melting.removeAll()
Example
groovy
mods.tconstruct.entity_melting.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.entity_melting.streamRecipes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.