Home Getting Started With Scripts Using this wiki Commands CTGUI Global functions Bracket Handlers

Alloy

Package

script.zs
import mods.terrafirmacraft.Alloy;
import mods.terrafirmacraft.AlloyRecipeBuilder;

Addition

  • For manipulating Alloy recipes a recipe builder is provided
script.zs
AlloyRecipeBuilder builder = Alloy.addAlloy(String metal);
builder.addMetal(String input, double min, double max);
builder.build();

Removal

script.zs
Alloy.removeAlloy(String metal);

Example scripts

  • Please refer to Metal for a complete reference on TFC Metals.
script.zs
Alloy.addAlloy("BRONZE").addMetal("COPPER", 0.88, 0.92).addMetal("TIN", 0.08, 0.12).build();
Alloy.addAlloy("BISMUTH_BRONZE").addMetal("COPPER", 0.5, 0.65).addMetal("BISMUTH", 0.1, 0.2).addMetal("zinc", 0.2, 0.3).build();