Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import mods.tfc.AlloyBuilder;

Name: Add

add a metal to the alloy

ZenScript
Copy
// AlloyBuilder.Add(metal as Metal, min as double, max as double)

myAlloyBuilder.Add(<metal:tfc:copper>, 0.88, 0.92);
ParameterTypeDescription
Parameter
metal
Type
Metal
Description
metal
Parameter
min
Type
double
Description
min amount
Parameter
max
Type
double
Description
max amount

Name: Add

add a metal to the alloy

ZenScript
Copy
// AlloyBuilder.Add(metalName as string, min as double, max as double)

myAlloyBuilder.Add("tfc:copper", 0.88, 0.92);
ParameterTypeDescription
Parameter
metalName
Type
string
Description
name of the metal
Parameter
min
Type
double
Description
min amount
Parameter
max
Type
double
Description
max amount

Name: Output

Add a metal as output

ZenScript
Copy
// AlloyBuilder.Output(metal as Metal)

myAlloyBuilder.Output(<metal:tfc:bronze>);
ParameterTypeDescription
Parameter
metal
Type
Metal
Description
metal

Name: Output

Add a metal as output

ZenScript
Copy
// AlloyBuilder.Output(name as string)

myAlloyBuilder.Output("bronze");
ParameterTypeDescription
Parameter
name
Type
string
Description
name of the metal