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:
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.groovyinput(String) input(EntityEntry) input(String, String) input(ResourceLocation)
FluidStack
. The fluid created each damage tick. Requires not null.groovyfluidOutput(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. (returnsnull
orcom.cleanroommc.groovyscript.compat.mods.tinkersconstruct.recipe.EntityMeltingRecipe
).groovyregister()
Example
mods.tconstruct.entity_melting.recipeBuilder()
.fluidOutput(fluid('iron') * 500)
.input(resource('minecraft:pig'))
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.tconstruct.entity_melting.removeByInput(EntityEntry)
Removes all recipes that match the given output:
groovymods.tconstruct.entity_melting.removeByOutput(FluidStack)
Removes all registered recipes:
groovymods.tconstruct.entity_melting.removeAll()
Example
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:
groovymods.tconstruct.entity_melting.streamRecipes()