Skip to content

Instantly share code, notes, and snippets.

@Efimero
Created February 25, 2018 00:38
Show Gist options
  • Save Efimero/e8257c60942809666526360353fdb24b to your computer and use it in GitHub Desktop.
Save Efimero/e8257c60942809666526360353fdb24b to your computer and use it in GitHub Desktop.
#loader contenttweaker
import mods.contenttweaker.VanillaFactory;
import mods.contenttweaker.Item;
import mods.contenttweaker.IItemRightClick;
import mods.contenttweaker.Player;
import mods.contenttweaker.MutableItemStack;
import mods.contenttweaker.Hand;
import mods.contenttweaker.Commands;
import mods.contenttweaker.Fluid;
import mods.contenttweaker.ItemFood;
import mods.contenttweaker.ActionResult;
import crafttweaker.item.IItemStack;
//import mods.contenttweaker.ResourceLocation;
//import mods.contenttweaker.IResourceLocationSupplier;
// Hot Ingot
//var hotIngot = mods.contenttweaker.VanillaFactory.createItem("hot_ingot");
//hotIngot.maxStackSize = 1;
//hotIngot.register();
// Blueprint
//var blueprint = mods.contenttweaker.VanillaFactory.createItem("blueprint");
//blueprint.register();
// Inkwell
//var ink = mods.contenttweaker.VanillaFactory.createItem("inkwell");
//ink.maxStackSize = 16;
//ink.register();
// Tool part
//var part = mods.contenttweaker.VanillaFactory.createItem("toolpart");
//part.maxStackSize = 8;
//part.register();
for material in ["iron","gold","diamond","copper","tin","bronze","steel","silver","invar","platinum","electrum","nickel","lead","mold","aluminum","zinc","constantan","brass","dawnstone"] as string[] {
for part in ["blade", "pick_head", "guard", "shovel_head", "axe_head", "hoe_head", "spike", "hammer_head", "sickle_head"] as string[] {
print("Adding " + part + "_" + material);
val part = mods.contenttweaker.VanillaFactory.createItem(part + "_" + material);
part.maxStackSize = 8;
part.register();
}
}
//var vessel_texture = mods.contenttweaker.ResourceLocation.create("contenttweaker:textures/items/vessel.png");
var copper_dust_block = mods.contenttweaker.VanillaFactory.createBlock("copper_dust_block", <blockmaterial:sand>);
copper_dust_block.setBlockSoundType(<soundtype:sand>);
copper_dust_block.setToolClass("shovel");
copper_dust_block.setToolLevel(0);
copper_dust_block.setBlockHardness(2.0);
copper_dust_block.register();
var tin_dust_block = mods.contenttweaker.VanillaFactory.createBlock("tin_dust_block", <blockmaterial:sand>);
tin_dust_block.setBlockSoundType(<soundtype:sand>);
tin_dust_block.setToolClass("shovel");
tin_dust_block.setToolLevel(0);
tin_dust_block.setBlockHardness(2.0);
tin_dust_block.register();
var zinc_dust_block = mods.contenttweaker.VanillaFactory.createBlock("zinc_dust_block", <blockmaterial:sand>);
zinc_dust_block.setBlockSoundType(<soundtype:sand>);
zinc_dust_block.setToolClass("shovel");
zinc_dust_block.setToolLevel(0);
zinc_dust_block.setBlockHardness(2.0);
zinc_dust_block.register();
var gold_dust_block = mods.contenttweaker.VanillaFactory.createBlock("gold_dust_block", <blockmaterial:sand>);
gold_dust_block.setBlockSoundType(<soundtype:sand>);
gold_dust_block.setToolClass("shovel");
gold_dust_block.setToolLevel(0);
gold_dust_block.setBlockHardness(2.0);
gold_dust_block.register();
var silver_dust_block = mods.contenttweaker.VanillaFactory.createBlock("silver_dust_block", <blockmaterial:sand>);
silver_dust_block.setBlockSoundType(<soundtype:sand>);
silver_dust_block.setToolClass("shovel");
silver_dust_block.setToolLevel(0);
silver_dust_block.setBlockHardness(2.0);
silver_dust_block.register();
var electrum_dust_block = mods.contenttweaker.VanillaFactory.createBlock("electrum_dust_block", <blockmaterial:sand>);
electrum_dust_block.setBlockSoundType(<soundtype:sand>);
electrum_dust_block.setToolClass("shovel");
electrum_dust_block.setToolLevel(0);
electrum_dust_block.setBlockHardness(2.0);
electrum_dust_block.register();
var lead_dust_block = mods.contenttweaker.VanillaFactory.createBlock("lead_dust_block", <blockmaterial:sand>);
lead_dust_block.setBlockSoundType(<soundtype:sand>);
lead_dust_block.setToolClass("shovel");
lead_dust_block.setToolLevel(0);
lead_dust_block.setBlockHardness(2.0);
lead_dust_block.register();
var bronze_dust_block = mods.contenttweaker.VanillaFactory.createBlock("bronze_dust_block", <blockmaterial:sand>);
bronze_dust_block.setBlockSoundType(<soundtype:sand>);
bronze_dust_block.setToolClass("shovel");
bronze_dust_block.setToolLevel(0);
bronze_dust_block.setBlockHardness(2.0);
bronze_dust_block.register();
var brass_dust_block = mods.contenttweaker.VanillaFactory.createBlock("brass_dust_block", <blockmaterial:sand>);
brass_dust_block.setBlockSoundType(<soundtype:sand>);
brass_dust_block.setToolClass("shovel");
brass_dust_block.setToolLevel(0);
brass_dust_block.setBlockHardness(2.0);
brass_dust_block.register();
var copper_dust_vessel = mods.contenttweaker.VanillaFactory.createItem("copper_dust_vessel");
copper_dust_vessel.setMaxStackSize(1);
copper_dust_vessel.register();
var tin_dust_vessel = mods.contenttweaker.VanillaFactory.createItem("tin_dust_vessel");
tin_dust_vessel.setMaxStackSize(1);
tin_dust_vessel.register();
var zinc_dust_vessel = mods.contenttweaker.VanillaFactory.createItem("zinc_dust_vessel");
zinc_dust_vessel.setMaxStackSize(1);
zinc_dust_vessel.register();
var gold_dust_vessel = mods.contenttweaker.VanillaFactory.createItem("gold_dust_vessel");
gold_dust_vessel.setMaxStackSize(1);
gold_dust_vessel.register();
var silver_dust_vessel = mods.contenttweaker.VanillaFactory.createItem("silver_dust_vessel");
silver_dust_vessel.setMaxStackSize(1);
silver_dust_vessel.register();
var electrum_dust_vessel = mods.contenttweaker.VanillaFactory.createItem("electrum_dust_vessel");
electrum_dust_vessel.setMaxStackSize(1);
electrum_dust_vessel.register();
var lead_dust_vessel = mods.contenttweaker.VanillaFactory.createItem("lead_dust_vessel");
lead_dust_vessel.setMaxStackSize(1);
lead_dust_vessel.register();
var bronze_dust_vessel = mods.contenttweaker.VanillaFactory.createItem("bronze_dust_vessel");
bronze_dust_vessel.setMaxStackSize(1);
bronze_dust_vessel.register();
var brass_dust_vessel = mods.contenttweaker.VanillaFactory.createItem("brass_dust_vessel");
brass_dust_vessel.setMaxStackSize(1);
brass_dust_vessel.register();
var copper_vessel = mods.contenttweaker.VanillaFactory.createItem("copper_vessel");
copper_vessel.setMaxStackSize(1);
copper_vessel.register();
var tin_vessel = mods.contenttweaker.VanillaFactory.createItem("tin_vessel");
tin_vessel.setMaxStackSize(1);
tin_vessel.register();
var zinc_vessel = mods.contenttweaker.VanillaFactory.createItem("zinc_vessel");
zinc_vessel.setMaxStackSize(1);
zinc_vessel.register();
var gold_vessel = mods.contenttweaker.VanillaFactory.createItem("gold_vessel");
gold_vessel.setMaxStackSize(1);
gold_vessel.register();
var silver_vessel = mods.contenttweaker.VanillaFactory.createItem("silver_vessel");
silver_vessel.setMaxStackSize(1);
silver_vessel.register();
var electrum_vessel = mods.contenttweaker.VanillaFactory.createItem("electrum_vessel");
electrum_vessel.setMaxStackSize(1);
electrum_vessel.register();
var lead_vessel = mods.contenttweaker.VanillaFactory.createItem("lead_vessel");
lead_vessel.setMaxStackSize(1);
lead_vessel.register();
var bronze_vessel = mods.contenttweaker.VanillaFactory.createItem("bronze_vessel");
bronze_vessel.setMaxStackSize(1);
bronze_vessel.register();
var brass_vessel = mods.contenttweaker.VanillaFactory.createItem("brass_vessel");
brass_vessel.setMaxStackSize(1);
brass_vessel.register();
var unfired_clay_lid = mods.contenttweaker.VanillaFactory.createItem("unfired_clay_lid");
unfired_clay_lid.register();
var clay_lid = mods.contenttweaker.VanillaFactory.createItem("clay_lid");
clay_lid.register();
var mesh = mods.contenttweaker.VanillaFactory.createItem("mesh");
mesh.setMaxDamage(32);
mesh.setMaxStackSize(16);
mesh.register();
for mat in ["iron", "gold", "copper", "tin", "silver", "lead", "aluminum", "nickel", "platinum", "uranium", "zinc"] as string[] {
var dust = mods.contenttweaker.VanillaFactory.createItem(mat ~ "_dirty_dust");
dust.register();
var tiny_dust = mods.contenttweaker.VanillaFactory.createItem(mat ~ "_tiny_dust");
tiny_dust.register();
}
//MOCHAAAAAAAAAAAAAA
var mocha = mods.contenttweaker.VanillaFactory.createItemFood("mocha", 10);
mocha.rarity = "RARE";
mocha.glowing = true;
mocha.itemUseAction = "DRINK";
mocha.saturation = 10;
mocha.alwaysEditable = true;
mocha.itemRightClick = function(stack, world, player, hand){
Commands.call("effect " ~ player.name ~ " minecraft:speed 300 0",player,world, false, false);
Commands.call("effect " ~ player.name ~ " minecraft:haste 300 0",player,world, false, false);
Commands.call("effect " ~ player.name ~ " minecraft:jump_boost 300 0",player,world, false, false);
Commands.call("clear " ~ player.name ~ " contenttweaker:mocha -1 1",player,world, false, false);
return "SUCCESS";
};
mocha.register();
// Battlesign!!!
var sign = mods.contenttweaker.VanillaFactory.createItem("battlesign");
sign.setMaxStackSize(1);
sign.register();
// Honney!
var honney = mods.contenttweaker.VanillaFactory.createBlock("honney", <blockmaterial:rock>);
honney.setBlockSoundType(<soundtype:stone>);
honney.setToolClass("pickaxe");
honney.setToolLevel(0);
honney.setBlockHardness(0.5);
honney.register();
var sticks = mods.contenttweaker.VanillaFactory.createItem("stick_bundle");
sticks.register();
// Redstone
var calomel = mods.contenttweaker.VanillaFactory.createItem("calomel");
calomel.register();
var calomel_stick = mods.contenttweaker.VanillaFactory.createItem("calomel_stick");
calomel_stick.register();
var calomel_wire = mods.contenttweaker.VanillaFactory.createItem("calomel_wire");
calomel_wire.register();
var redstone_component = mods.contenttweaker.VanillaFactory.createItem("redstone_component");
redstone_component.register();
var silicon = mods.contenttweaker.VanillaFactory.createItem("silicon");
silicon.register();
var silicon_wafer = mods.contenttweaker.VanillaFactory.createItem("silicon_wafer");
silicon_wafer.register();
var cbook = mods.contenttweaker.VanillaFactory.createItem("cbook");
cbook.glowing = true;
cbook.rarity = "UNCOMMON";
cbook.register();
var coke_brick = mods.contenttweaker.VanillaFactory.createItem("coke_brick");
coke_brick.register();
var glass_bulb = mods.contenttweaker.VanillaFactory.createItem("glass_bulb");
glass_bulb.register();
var molten_constantan = mods.contenttweaker.VanillaFactory.createFluid("constantan", 4291065636);
molten_constantan.register();
var molten_plastic = mods.contenttweaker.VanillaFactory.createFluid("molten_plastic", 4294967295);
molten_plastic.viscosity = 100000;
molten_plastic.density = 100000;
molten_plastic.register();
var plastic = mods.contenttweaker.VanillaFactory.createItem("plastic_sheet");
plastic.register();
var pcbb = mods.contenttweaker.VanillaFactory.createItem("pcb_blueprint");
pcbb.maxStackSize = 1;
pcbb.glowing = true;
pcbb.register();
var liquid_calomel = mods.contenttweaker.VanillaFactory.createFluid("calomel", 4285997568);
liquid_calomel.density = 200;
liquid_calomel.viscosity = 300;
liquid_calomel.register();
var screw_box = mods.contenttweaker.VanillaFactory.createItem("screw_box");
screw_box.setMaxStackSize(1);
screw_box.setMaxDamage(320);
screw_box.register();
var screw = mods.contenttweaker.VanillaFactory.createItem("screw");
screw.register();
var debug_bone = mods.contenttweaker.VanillaFactory.createItem("debug_bone");
debug_bone.itemRightClick = function(stack,world,player,hand) {
Commands.call("ctrlreload", player, world);
Commands.call("ctrlkill hostile", player, world);
return "SUCCESS";
};
debug_bone.register();
import crafttweaker.item.IItemStack;
import crafttweaker.item.IIngredient;
import crafttweaker.liquid.ILiquidStack;
import crafttweaker.oredict.IOreDictEntry;
import crafttweaker.item.IItemTransformer;
import mods.artisanworktables.Worktable;
import mods.artisanworktables.IRecipeBuilder;
import mods.foundry.Casting;
import mods.foundry.MoldStation;
import mods.foundry.Melting;
// Metal smelting
recipes.remove(<embers:plate_copper>);
recipes.remove(<embers:plate_lead>);
recipes.remove(<embers:plate_silver>);
recipes.remove(<embers:plate_dawnstone>);
recipes.remove(<embers:plate_iron>);
recipes.remove(<embers:plate_gold>);
recipes.remove(<embers:plate_aluminum>);
recipes.remove(<embers:plate_bronze>);
recipes.remove(<embers:plate_electrum>);
recipes.remove(<embers:plate_nickel>);
recipes.remove(<embers:plate_tin>);
recipes.removeByRegex(".*immersive.*material.plate_.*");
var handle = <spartanweaponry:material:0>;
var pole = <spartanweaponry:material:1>;
var cord = <ore:cordageQuality>;
recipes.remove(<primal:iron_gallagher>);
recipes.addShapedMirrored("gallagher", <primal:iron_gallagher>,
[[<ore:cordageQuality>, handle, <ore:blockIron>],
[null, handle, null],
[null, handle, null]]);
recipes.remove(<embers:tinker_hammer>);
recipes.remove(<immersiveengineering:tool:0>);
<ore:feather>.add(<twilightforest:raven_feather>);
recipes.addShapeless(<plants2:generic:1> * 8, [<minecraft:dye:0>]);
var N = null;
for T in ["dagger","longsword","katana","saber","rapier","greatsword","hammer","warhammer","spear","halberd","pike","lance","throwing_knife","throwing_axe","javelin"] as string[] {
for M in ["stone","iron","gold","diamond","copper","tin","bronze","steel","silver","invar","platinum","electrum","nickel","lead"] as string[] {
if (M == "iron" | M == "gold" | M == "diamond" | M == "stone") {
recipes.removeByRecipeName("spartanweaponry:" + T + "_" + M);
} else {
recipes.removeByRecipeName("spartanweaponry:modded/" + T + "_" + M);
}
}
}
var to_delete = "";
for T in ["sword","pickaxe","shovel","axe","hoe"] as string[] {
for M in ["iron","golden","copper","tin","silver","lead","aluminum","nickel","platinum","constantan","electrum","steel","bronze","invar","ingotdawnstone","ingotcopper","ingotsilver","ingotlead","ingotaluminum","ingotbronze","ingotelectrum","ingotnickel","ingottin"] as string[] {
to_delete = "";
if (M == "iron" | M == "golden") {
to_delete = "minecraft:" + M + "_" + T;
}
if (M[2] == "g") {
to_delete = "embers:" + M + "_" + T;
}
if (to_delete == "") {
to_delete = "thermalfoundation:tool." + T + "_" + M;
}
if (to_delete != "") {
recipes.removeByRecipeName(to_delete);
}
}
}
var capi = {
sword: "Sword",
axe: "Axe",
pickaxe: "Pickaxe",
shovel: "Shovel",
hoe: "Hoe",
sickle: "Sickle",
dagger: "Dagger",
longsword: "Longsword",
katana: "Katana",
saber: "Saber",
rapier: "Rapier",
greatsword: "Greatsword",
hammer: "Hammer",
warhammer: "Warhammer",
spear: "Spear",
halberd: "Halberd",
pike: "Pike",
lance: "Lance",
throwing_knife: "Throwing Knife",
throwing_axe: "Throwing Axe",
javelin: "Javelin"
} as string[string];
for material in ["iron","gold","diamond","copper","tin","bronze","steel","silver","invar","platinum","electrum","nickel","lead","aluminum","zinc","constantan","brass", "dawnstone"] as string[] {
print("Looking for " + material + " parts...");
var blade = itemUtils.getItemsByRegexRegistryName(".*blade_" ~ material ~ ".*")[0];
var guard = itemUtils.getItemsByRegexRegistryName(".*guard_" ~ material ~ ".*")[0];
var spike = itemUtils.getItemsByRegexRegistryName(".*spike_" ~ material ~ ".*")[0];
var pick_head = itemUtils.getItemsByRegexRegistryName(".*pick_head_" ~ material ~ ".*")[0];
var axe_head = itemUtils.getItemsByRegexRegistryName(".*axe_head_" ~ material ~ ".*")[0];
var shovel_head = itemUtils.getItemsByRegexRegistryName(".*shovel_head_" ~ material ~ ".*")[0];
var sickle_head = itemUtils.getItemsByRegexRegistryName(".*sickle_head_" ~ material ~ ".*")[0];
var hoe_head = itemUtils.getItemsByRegexRegistryName(".*hoe_head_" ~ material ~ ".*")[0];
var hammer_head = itemUtils.getItemsByRegexRegistryName(".*hammer_head_" ~ material ~ ".*")[0];
for weapon in ["sword", "axe", "pickaxe", "shovel", "hoe", "sickle", "dagger","longsword","katana","saber","rapier","greatsword","hammer","warhammer","spear","halberd","pike","lance","throwing_knife","throwing_axe","javelin"] as string[] {
var product = <minecraft:iron_sword>;
if (weapon == "sword" | weapon == "axe" | weapon == "pickaxe" | weapon == "shovel" | weapon == "hoe" | weapon == "sickle") {
if (weapon == "sickle") {
if (material == "zinc") {
product = itemUtils.getItemsByRegexRegistryName(".*thermal.*" ~ weapon ~ "_" ~ "tin" ~ ".*")[0].withDisplayName("§rZinc Sickle") as IItemStack;
} else {
if (material == "brass") {
product = itemUtils.getItemsByRegexRegistryName(".*thermal.*" ~ weapon ~ "_" ~ "bronze" ~ ".*")[0].withDisplayName("§rBrass Sickle") as IItemStack;
} else {
if (material == "dawnstone") {
product = itemUtils.getItemsByRegexRegistryName(".*thermal.*" ~ weapon ~ "_" ~ "invar" ~ ".*")[0].withDisplayName("§rDawnstone Sickle") as IItemStack;
} else {
product = itemUtils.getItemsByRegexRegistryName(".*thermal.*" ~ weapon ~ "_" ~ material ~ ".*")[0] as IItemStack;
}
}
}
} else {
if (material == "iron" | material == "diamond") {
product = itemUtils.getItemsByRegexRegistryName(".*" ~ material ~ "_" ~ weapon ~ ".*")[0] as IItemStack;
}
if (material == "gold") {
product = itemUtils.getItemsByRegexRegistryName(".*golden_" ~ weapon ~ ".*")[0] as IItemStack;
}
if (material != "iron" & material != "gold" & material != "diamond") {
if (material == "zinc") {
product = itemUtils.getItemsByRegexRegistryName(".*thermal.*" ~ weapon ~ "_" ~ "tin" ~ ".*")[0].withDisplayName("§rZinc " ~ capi[weapon]) as IItemStack;
} else {
if (material == "brass") {
product = itemUtils.getItemsByRegexRegistryName(".*thermal.*" ~ weapon ~ "_" ~ "bronze" ~ ".*")[0].withDisplayName("§rBrass " ~ capi[weapon]) as IItemStack;
} else {
if (material == "dawnstone") {
product = itemUtils.getItemsByRegexRegistryName(".*embers.*" ~ weapon ~ "_" ~ material ~ ".*")[0] as IItemStack;
} else {
product = itemUtils.getItemsByRegexRegistryName(".*thermal.*" ~ weapon ~ "_" ~ material ~ ".*")[0] as IItemStack;
}
}
}
}
}
} else {
if (material == "aluminum") {
product = itemUtils.getItemsByRegexRegistryName(".*spartan.*" ~ weapon ~ "_" ~ "silver" ~ ".*")[0].withDisplayName("§rAluminum " ~ capi[weapon]) as IItemStack;
} else {
if (material == "zinc") {
product = itemUtils.getItemsByRegexRegistryName(".*spartan.*" ~ weapon ~ "_" ~ "tin" ~ ".*")[0].withDisplayName("§rZinc " ~ capi[weapon]) as IItemStack;
} else {
if (material == "constantan") {
product = itemUtils.getItemsByRegexRegistryName(".*spartan.*" ~ weapon ~ "_" ~ "bronze" ~ ".*")[0].withDisplayName("§rConstantan " ~ capi[weapon]) as IItemStack;
} else {
if (material == "brass") {
product = itemUtils.getItemsByRegexRegistryName(".*spartan.*" ~ weapon ~ "_" ~ "bronze" ~ ".*")[0].withDisplayName("§rBrass " ~ capi[weapon]) as IItemStack;
} else {
if (material == "dawnstone") {
product = itemUtils.getItemsByRegexRegistryName(".*spartan.*" ~ weapon ~ "_" ~ "invar" ~ ".*")[0].withDisplayName("§rDawnstone " ~ capi[weapon]) as IItemStack;
} else {
product = itemUtils.getItemsByRegexRegistryName(".*spartan.*" ~ weapon ~ "_" ~ material ~ ".*")[0] as IItemStack;
}
}
}
}
}
}
print(weapon ~ " " ~ material ~ " : " ~ product.displayName);
val recipe = Worktable.createRecipeBuilder("blacksmith");
if (weapon == "sword") {
recipe.setShaped([[N,blade,N],[N,blade,N],[N,handle,N]]);
}
if (weapon == "axe") {
recipe.setShaped([[N,axe_head,N],[N,handle,N],[N,handle,N]]);
}
if (weapon == "pickaxe") {
recipe.setShaped([[N,pick_head,N],[N,handle,N],[N,handle,N]]);
}
if (weapon == "shovel") {
recipe.setShaped([[N,shovel_head,N],[N,handle,N],[N,handle,N]]);
}
if (weapon == "sickle") {
recipe.setShaped([[N,sickle_head,N],[N,handle,N],[N,N,N]]);
}
if (weapon == "hoe") {
recipe.setShaped([[N,hoe_head,N],[N,handle,N],[N,handle,N]]);
}
if (weapon == "dagger") {
recipe.setShaped([[N,blade,N],[N,handle,N],[N,N,N]]);
}
if (weapon == "longsword") {
recipe.setShaped([[N,blade,N],[N,blade,N],[guard,handle,guard]]);
}
if (weapon == "katana") {
recipe.setShaped([[N,N,blade],[N,blade,N],[handle,N,N]]);
}
if (weapon == "saber") {
recipe.setShaped([[N,blade,N],[N,blade,N],[guard,handle,N]]);
}
if (weapon == "rapier") {
recipe.setShaped([[N,N,blade],[guard,blade,N],[handle,guard,N]]);
}
if (weapon == "greatsword") {
recipe.setShaped([[blade,N,N],[guard,blade,N],[handle,guard,blade]]);
}
if (weapon == "hammer") {
recipe.setShaped([[N,hammer_head,N],[N,handle,N],[N,N,N]]);
}
if (weapon == "warhammer") {
recipe.setShaped([[N,hammer_head,spike],[N,handle,N],[N,handle,N]]);
}
if (weapon == "spear") {
recipe.setShaped([[N,spike,N],[N,pole,N],[N,N,N]]);
}
if (weapon == "halberd") {
recipe.setShaped([[N,spike,N],[axe_head,pole,spike],[N,N,N]]);
}
if (weapon == "pike") {
recipe.setShaped([[N,spike,N],[N,pole,N],[N,pole,N]]);
}
if (weapon == "lance") {
recipe.setShaped([[N,spike,N],[N,pole,N],[N,handle,N]]);
}
if (weapon == "throwing_knife") {
recipe.setShaped([[N,blade,N],[handle,N,N],[N,N,N]]);
}
if (weapon == "throwing_axe") {
recipe.setShaped([[N,axe_head,N],[handle,N,N],[N,N,N]]);
}
if (weapon == "javelin") {
recipe.setShaped([[N,spike,N],[pole,N,N],[N,N,N]]);
}
recipe.setSecondaryIngredients([cord * 2]);
recipe.setMirrored();
recipe.setFluid(<fluid:water> * 100);
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(product);
recipe.create();
}
}
val floyds = {
iron: <liquid:iron> * 144,
gold: <liquid:gold> * 144,
copper: <liquid:copper> * 144,
tin: <liquid:tin> * 144,
bronze: <liquid:bronze> * 144,
steel: <liquid:liquidsteel> * 144,
silver: <liquid:silver> * 144,
invar: <liquid:liquidinvar> * 144,
platinum: <liquid:liquidplatinum> * 144,
electrum: <liquid:electrum> * 144,
nickel: <liquid:nickel> * 144,
lead: <liquid:lead> * 144,
aluminum: <liquid:aluminum> * 144,
zinc: <liquid:liquidzinc> * 144,
constantan: <liquid:constantan> * 144,
brass: <liquid:liquidbrass> * 144,
dawnstone: <liquid:dawnstone> * 144
} as ILiquidStack[string];
for part in ["blade", "pick_head", "guard", "shovel_head", "axe_head", "hoe_head", "spike", "hammer_head", "sickle_head"] as string[] {
var mold = itemUtils.getItemsByRegexRegistryName(".*" ~ part ~ "_mold.*");
print("mold: " ~ mold[0].displayName);
mods.foundry.Casting.addMold(mold[0]);
for material in ["iron","gold","copper","tin","bronze","steel","silver","invar","platinum","electrum","nickel","lead", "aluminum", "zinc", "constantan", "brass", "dawnstone"] as string[] {
var out = itemUtils.getItemsByRegexRegistryName(".*" ~ part ~ "_" ~ material ~ ".*");
print("input: " ~ floyds[material].displayName ~ " in " ~ mold[0].displayName);
print("output: " ~ out[0].displayName ~ " (" ~ out[0].name ~ ")");
mods.foundry.Casting.addRecipe(out[0], floyds[material], mold[0]);
}
}
mods.foundry.MoldStation.addRecipe(<contenttweaker:blade_mold>, 6, 6,
[0, 1, 2, 3, 3, 0,
0, 1, 2, 3, 3, 0,
0, 1, 2, 3, 3, 0,
0, 1, 2, 3, 3, 0,
0, 1, 2, 3, 3, 0,
0, 1, 2, 3, 3, 0] as int[]);
mods.foundry.MoldStation.addRecipe(<contenttweaker:pick_head_mold>, 6, 6,
[0, 0, 0, 0, 0, 0,
0, 1, 2, 2, 0, 0,
0, 0, 0, 2, 2, 0,
0, 0, 0, 0, 2, 0,
0, 0, 0, 0, 1, 0,
0, 0, 0, 0, 0, 0] as int[]);
mods.foundry.MoldStation.addRecipe(<contenttweaker:guard_mold>, 6, 6,
[0, 0, 0, 0, 2, 1,
0, 0, 0, 2, 2, 1,
0, 0, 2, 3, 1, 0,
0, 2, 3, 3, 0, 0,
2, 2, 1, 0, 0, 0,
1, 1, 0, 0, 0, 0] as int[]);
mods.foundry.MoldStation.addRecipe(<contenttweaker:shovel_head_mold>, 6, 6,
[0, 0, 1, 1, 0, 0,
0, 1, 2, 2, 1, 0,
0, 1, 2, 2, 1, 0,
1, 2, 2, 2, 2, 1,
1, 2, 3, 3, 2, 1,
0, 0, 0, 0, 0, 0] as int[]);
mods.foundry.MoldStation.addRecipe(<contenttweaker:axe_head_mold>, 6, 6,
[0, 0, 0, 1, 0, 0,
0, 0, 1, 2, 0, 0,
0, 1, 2, 3, 3, 0,
0, 1, 2, 3, 3, 0,
0, 0, 1, 2, 0, 0,
0, 0, 0, 1, 0, 0] as int[]);
mods.foundry.MoldStation.addRecipe(<contenttweaker:hoe_head_mold>, 6, 6,
[0, 0, 0, 0, 0, 0,
0, 1, 1, 1, 1, 1,
1, 2, 2, 2, 2, 1,
1, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0] as int[]);
mods.foundry.MoldStation.addRecipe(<contenttweaker:spike_mold>, 6, 6,
[0, 0, 1, 0, 0, 0,
0, 1, 2, 1, 0, 0,
0, 1, 2, 1, 0, 0,
1, 2, 3, 2, 1, 0,
1, 2, 3, 2, 1, 0,
0, 0, 3, 0, 0, 0] as int[]);
mods.foundry.MoldStation.addRecipe(<contenttweaker:hammer_head_mold>, 6, 6,
[0, 1, 1, 1, 1, 0,
1, 4, 4, 4, 4, 1,
1, 4, 4, 4, 4, 1,
1, 4, 4, 4, 4, 1,
0, 1, 1, 1, 1, 0,
0, 0, 0, 0, 0, 0] as int[]);
mods.foundry.MoldStation.addRecipe(<contenttweaker:sickle_head_mold>, 6, 6,
[0, 0, 2, 2, 0, 0,
0, 2, 1, 1, 2, 0,
0, 1, 0, 0, 1, 2,
0, 0, 0, 0, 1, 2,
0, 0, 1, 1, 2, 0,
0, 2, 2, 2, 0, 0] as int[]);
// Setup Stone Age smelting
val dust = {
iron: <thermalfoundation:material>,
gold: <thermalfoundation:material:1>,
copper: <thermalfoundation:material:64>,
tin: <thermalfoundation:material:65>,
silver: <thermalfoundation:material:66>,
lead: <thermalfoundation:material:67>,
aluminum: <thermalfoundation:material:68>,
nickel: <thermalfoundation:material:69>,
platinum: <thermalfoundation:material:70>,
uranium: <immersiveengineering:metal:14>,
zinc: <primal:zinc_dust>,
electrum: <thermalfoundation:material:97>,
bronze: <thermalfoundation:material:99>,
brass: <primal:brass_dust>
} as IItemStack[string];
recipes.addShapeless("copperdustblock", <contenttweaker:copper_dust_block>,
[<ore:dustCopper>,<ore:dustCopper>,<ore:dustCopper>,<ore:dustCopper>,<ore:dustCopper>,<ore:dustCopper>,<ore:dustCopper>,<ore:dustCopper>,<ore:dustCopper>]);
recipes.addShaped(<contenttweaker:copper_dust_vessel>,
[[<contenttweaker:clay_lid>],[<contenttweaker:copper_dust_block>],[<ceramics:clay_bucket:0>.noReturn()]]);
recipes.addShapeless(<ceramics:clay_bucket>.withTag({fluids: {FluidName: "copper", Amount: 1296}}),
[<contenttweaker:copper_vessel>.transformReplace(<contenttweaker:clay_lid>)]);
recipes.addShapeless(dust["copper"] * 9,
[<contenttweaker:copper_dust_block>]);
recipes.addShapeless("tindustblock", <contenttweaker:tin_dust_block>,
[<ore:dustTin>,<ore:dustTin>,<ore:dustTin>,<ore:dustTin>,<ore:dustTin>,<ore:dustTin>,<ore:dustTin>,<ore:dustTin>,<ore:dustTin>]);
recipes.addShaped(<contenttweaker:tin_dust_vessel>,
[[<contenttweaker:clay_lid>],[<contenttweaker:tin_dust_block>],[<ceramics:clay_bucket:0>.noReturn()]]);
recipes.addShapeless(<ceramics:clay_bucket>.withTag({fluids: {FluidName: "tin", Amount: 1296}}),
[<contenttweaker:tin_vessel>.transformReplace(<contenttweaker:clay_lid>)]);
recipes.addShapeless(dust["tin"] * 9,
[<contenttweaker:tin_dust_block>]);
recipes.addShapeless("zincdustblock", <contenttweaker:zinc_dust_block>,
[<ore:dustZinc>,<ore:dustZinc>,<ore:dustZinc>,<ore:dustZinc>,<ore:dustZinc>,<ore:dustZinc>,<ore:dustZinc>,<ore:dustZinc>,<ore:dustZinc>]);
recipes.addShaped(<contenttweaker:zinc_dust_vessel>,
[[<contenttweaker:clay_lid>],[<contenttweaker:zinc_dust_block>],[<ceramics:clay_bucket:0>.noReturn()]]);
recipes.addShapeless(<ceramics:clay_bucket>.withTag({fluids: {FluidName: "liquidzinc", Amount: 1296}}),
[<contenttweaker:zinc_vessel>.transformReplace(<contenttweaker:clay_lid>)]);
recipes.addShapeless(dust["zinc"] * 9,
[<contenttweaker:zinc_dust_block>]);
recipes.addShapeless("golddustblock", <contenttweaker:gold_dust_block>,
[<ore:dustGold>,<ore:dustGold>,<ore:dustGold>,<ore:dustGold>,<ore:dustGold>,<ore:dustGold>,<ore:dustGold>,<ore:dustGold>,<ore:dustGold>]);
recipes.addShaped(<contenttweaker:gold_dust_vessel>,
[[<contenttweaker:clay_lid>],[<contenttweaker:gold_dust_block>],[<ceramics:clay_bucket:0>.noReturn()]]);
recipes.addShapeless(<ceramics:clay_bucket>.withTag({fluids: {FluidName: "gold", Amount: 1296}}),
[<contenttweaker:gold_vessel>.transformReplace(<contenttweaker:clay_lid>)]);
recipes.addShapeless(dust["gold"] * 9,
[<contenttweaker:gold_dust_block>]);
recipes.addShapeless("silverdustblock", <contenttweaker:silver_dust_block>,
[<ore:dustSilver>,<ore:dustSilver>,<ore:dustSilver>,<ore:dustSilver>,<ore:dustSilver>,<ore:dustSilver>,<ore:dustSilver>,<ore:dustSilver>,<ore:dustSilver>]);
recipes.addShaped(<contenttweaker:silver_dust_vessel>,
[[<contenttweaker:clay_lid>],[<contenttweaker:silver_dust_block>],[<ceramics:clay_bucket:0>.noReturn()]]);
recipes.addShapeless(<ceramics:clay_bucket>.withTag({fluids: {FluidName: "silver", Amount: 1296}}),
[<contenttweaker:silver_vessel>.transformReplace(<contenttweaker:clay_lid>)]);
recipes.addShapeless(dust["silver"] * 9,
[<contenttweaker:silver_dust_block>]);
recipes.addShapeless("electrumdustblock", <contenttweaker:electrum_dust_block>,
[<ore:dustElectrum>,<ore:dustElectrum>,<ore:dustElectrum>,<ore:dustElectrum>,<ore:dustElectrum>,<ore:dustElectrum>,<ore:dustElectrum>,<ore:dustElectrum>,<ore:dustElectrum>]);
recipes.addShaped(<contenttweaker:electrum_dust_vessel>,
[[<contenttweaker:clay_lid>],[<contenttweaker:electrum_dust_block>],[<ceramics:clay_bucket:0>.noReturn()]]);
recipes.addShapeless(<ceramics:clay_bucket>.withTag({fluids: {FluidName: "electrum", Amount: 1296}}),
[<contenttweaker:electrum_vessel>.transformReplace(<contenttweaker:clay_lid>)]);
recipes.addShapeless(dust["electrum"] * 9,
[<contenttweaker:electrum_dust_block>]);
recipes.addShapeless("leaddustblock", <contenttweaker:lead_dust_block>,
[<ore:dustLead>,<ore:dustLead>,<ore:dustLead>,<ore:dustLead>,<ore:dustLead>,<ore:dustLead>,<ore:dustLead>,<ore:dustLead>,<ore:dustLead>]);
recipes.addShaped(<contenttweaker:lead_dust_vessel>,
[[<contenttweaker:clay_lid>],[<contenttweaker:lead_dust_block>],[<ceramics:clay_bucket:0>.noReturn()]]);
recipes.addShapeless(<ceramics:clay_bucket>.withTag({fluids: {FluidName: "lead", Amount: 1296}}),
[<contenttweaker:lead_vessel>.transformReplace(<contenttweaker:clay_lid>)]);
recipes.addShapeless(dust["lead"] * 9,
[<contenttweaker:lead_dust_block>]);
recipes.addShapeless("bronzedustblock", <contenttweaker:bronze_dust_block>,
[<ore:dustBronze>,<ore:dustBronze>,<ore:dustBronze>,<ore:dustBronze>,<ore:dustBronze>,<ore:dustBronze>,<ore:dustBronze>,<ore:dustBronze>,<ore:dustBronze>]);
recipes.addShaped(<contenttweaker:bronze_dust_vessel>,
[[<contenttweaker:clay_lid>],[<contenttweaker:bronze_dust_block>],[<ceramics:clay_bucket:0>.noReturn()]]);
recipes.addShapeless(<ceramics:clay_bucket>.withTag({fluids: {FluidName: "bronze", Amount: 1296}}),
[<contenttweaker:bronze_vessel>.transformReplace(<contenttweaker:clay_lid>)]);
recipes.addShapeless(dust["bronze"] * 9,
[<contenttweaker:bronze_dust_block>]);
recipes.addShapeless("brassdustblock", <contenttweaker:brass_dust_block>,
[<ore:dustBrass>,<ore:dustBrass>,<ore:dustBrass>,<ore:dustBrass>,<ore:dustBrass>,<ore:dustBrass>,<ore:dustBrass>,<ore:dustBrass>,<ore:dustBrass>]);
recipes.addShaped(<contenttweaker:brass_dust_vessel>,
[[<contenttweaker:clay_lid>],[<contenttweaker:brass_dust_block>],[<ceramics:clay_bucket:0>.noReturn()]]);
recipes.addShapeless(<ceramics:clay_bucket>.withTag({fluids: {FluidName: "liquidbrass", Amount: 1296}}),
[<contenttweaker:brass_vessel>.transformReplace(<contenttweaker:clay_lid>)]);
recipes.addShapeless(dust["brass"] * 9,
[<contenttweaker:brass_dust_block>]);
recipes.addShapeless("brassdust", <primal:brass_dust> * 4,
[<ore:dustCopper>, <ore:dustCopper>, <ore:dustCopper>, <ore:dustZinc>]);
recipes.addShaped("claylid", <contenttweaker:unfired_clay_lid> * 2,
[[<ceramics:unfired_clay:8>, <ceramics:unfired_clay:8>]]);
val clusters = {
iron: <geolosys:cluster>,
gold: <geolosys:cluster:1>,
copper: <geolosys:cluster:2>,
tin: <geolosys:cluster:3>,
silver: <geolosys:cluster:4>,
lead: <geolosys:cluster:5>,
aluminum: <geolosys:cluster:6>,
nickel: <geolosys:cluster:7>,
platinum: <geolosys:cluster:8>,
uranium: <geolosys:cluster:9>,
zinc: <geolosys:cluster:10>
} as IItemStack[string];
val dirty_dust = {
iron: <contenttweaker:iron_dirty_dust>,
gold: <contenttweaker:gold_dirty_dust>,
copper: <contenttweaker:copper_dirty_dust>,
tin: <contenttweaker:tin_dirty_dust>,
silver: <contenttweaker:silver_dirty_dust>,
lead: <contenttweaker:lead_dirty_dust>,
aluminum: <contenttweaker:aluminum_dirty_dust>,
nickel: <contenttweaker:nickel_dirty_dust>,
platinum: <contenttweaker:platinum_dirty_dust>,
uranium: <contenttweaker:uranium_dirty_dust>,
zinc: <contenttweaker:zinc_dirty_dust>
} as IItemStack[string];
val tiny_dust = {
iron: <contenttweaker:iron_tiny_dust>,
gold: <contenttweaker:gold_tiny_dust>,
copper: <contenttweaker:copper_tiny_dust>,
tin: <contenttweaker:tin_tiny_dust>,
silver: <contenttweaker:silver_tiny_dust>,
lead: <contenttweaker:lead_tiny_dust>,
aluminum: <contenttweaker:aluminum_tiny_dust>,
nickel: <contenttweaker:nickel_tiny_dust>,
platinum: <contenttweaker:platinum_tiny_dust>,
uranium: <contenttweaker:uranium_tiny_dust>,
zinc: <contenttweaker:zinc_tiny_dust>
} as IItemStack[string];
val floyds_nugs = {
iron: <liquid:liquidiron> * 16,
gold: <liquid:liquidgold> * 16,
copper: <liquid:liquidcopper> * 16,
tin: <liquid:liquidtin> * 16,
bronze: <liquid:liquidbronze> * 16,
steel: <liquid:liquidsteel> * 16,
silver: <liquid:liquidsilver> * 16,
invar: <liquid:liquidinvar> * 16,
platinum: <liquid:liquidplatinum> * 16,
electrum: <liquid:liquidelectrum> * 16,
nickel: <liquid:liquidnickel> * 16,
lead: <liquid:liquidlead> * 16,
zinc: <liquid:liquidzinc> * 16,
aluminum: <liquid:liquidaluminium> * 16
} as ILiquidStack[string];
for mat in ["iron", "gold", "copper", "tin", "silver", "lead", "aluminum", "nickel", "platinum", "uranium", "zinc"] as string[] {
var recipe = Worktable.createRecipeBuilder("basic");
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(dirty_dust[mat]);
recipe.setShapeless([clusters[mat]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("basic");
recipe.setFluid(<fluid:water> * 30);
recipe.addTool(<contenttweaker:mesh>, 1);
recipe.addOutput(tiny_dust[mat] * 3);
recipe.setShapeless([dirty_dust[mat]]);
recipe.create();
if (mat != "uranium") {
print(mat);
print(floyds_nugs[mat].name);
mods.foundry.Melting.addRecipe(floyds_nugs[mat] as ILiquidStack, tiny_dust[mat]);
mods.foundry.Melting.removeRecipe(clusters[mat]);
}
recipes.addShapeless(mat ~ "dustfromblock", dust[mat],
[tiny_dust[mat],tiny_dust[mat],tiny_dust[mat],
tiny_dust[mat],tiny_dust[mat],tiny_dust[mat],
tiny_dust[mat],tiny_dust[mat],tiny_dust[mat]]);
recipes.addShapeless(mat ~ "tinydust", tiny_dust[mat] * 9, [dust[mat]]);
}
recipes.removeByRegex(".*embers.*decomp.*");
recipes.removeByRecipeName("embers:iron_nugget");
recipes.removeByRegex(".*immersive.*uncraft.*");
recipes.remove(<minecraft:iron_nugget>);
recipes.remove(<minecraft:gold_nugget>);
var recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.setFluid(<fluid:water> * 10);
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(<abyssalcraft:ironp> * 4);
recipe.setShapeless([<ore:ingotIron>]);
recipe.create();
recipes.remove(<geolosys:pro_pick>);
recipes.addShaped("propick",<geolosys:pro_pick>,[[<ore:ingotIron>],[<ore:stickWood>]]);
// Molten misc
mods.foundry.Casting.addRecipe(<minecraft:glass_pane>, <liquid:liquidglass> * 375, <foundry:mold:1>);
mods.foundry.Casting.addRecipe(<immersiveengineering:material:1>, <liquid:liquidiron> * 72, <foundry:mold:2>);
mods.foundry.Casting.addRecipe(<immersiveengineering:material:2>, <liquid:liquidsteel> * 72, <foundry:mold:2>);
mods.foundry.Casting.addRecipe(<immersiveengineering:material:3>, <liquid:liquidaluminium> * 72, <foundry:mold:2>);
mods.foundry.Casting.addRecipe(<primal:golden_stick>, <liquid:liquidgold> * 72, <foundry:mold:2>);
mods.foundry.CastingTable.addPlateRecipe(<minecraft:glass_pane>, <liquid:liquidglass> * 375);
mods.foundry.CastingTable.addRodRecipe(<immersiveengineering:material:1>, <liquid:liquidiron> * 72);
mods.foundry.CastingTable.addRodRecipe(<immersiveengineering:material:2>, <liquid:liquidsteel> * 72);
mods.foundry.CastingTable.addRodRecipe(<immersiveengineering:material:3>, <liquid:liquidaluminium> * 72);
mods.foundry.CastingTable.addRodRecipe(<primal:golden_stick>, <liquid:liquidgold> * 72);
for ingot in [<minecraft:iron_ingot>, <minecraft:gold_ingot>, <immersiveengineering:metal:0>, <immersiveengineering:metal:1>, <immersiveengineering:metal:2>, <immersiveengineering:metal:3>, <immersiveengineering:metal:4>, <immersiveengineering:metal:6>, <immersiveengineering:metal:7>, <immersiveengineering:metal:8>, <thermalfoundation:material:128>, <thermalfoundation:material:129>, <thermalfoundation:material:130>, <thermalfoundation:material:131>, <thermalfoundation:material:132>, <thermalfoundation:material:133>, <thermalfoundation:material:134>, <thermalfoundation:material:135>, <thermalfoundation:material:136>, <thermalfoundation:material:160>, <thermalfoundation:material:161>, <thermalfoundation:material:162>, <thermalfoundation:material:163>, <thermalfoundation:material:164>, <thermalfoundation:material:165>, <thermalfoundation:material:166>, <thermalfoundation:material:167>] as IItemStack[] {
recipes.remove(ingot);
}
recipes.remove(<minecraft:shield>);
// Shears
<ore:allShears>.addItems([
<immersiveengineering:tool:1>,
<minecraft:shears>,
<thermalfoundation:tool.shears_gold>,
<thermalfoundation:tool.shears_diamond>,
<artisanworktables:artisans_shears_aluminum>,
<artisanworktables:artisans_shears_bone>,
<artisanworktables:artisans_shears_bronze>,
<artisanworktables:artisans_shears_constantan>,
<artisanworktables:artisans_shears_copper>,
<artisanworktables:artisans_shears_electrum>,
<artisanworktables:artisans_shears_flint>,
<artisanworktables:artisans_shears_gold>,
<artisanworktables:artisans_shears_invar>,
<artisanworktables:artisans_shears_iron>,
<artisanworktables:artisans_shears_lead>,
<artisanworktables:artisans_shears_nickel>,
<artisanworktables:artisans_shears_platinum>,
<artisanworktables:artisans_shears_silver>,
<artisanworktables:artisans_shears_steel>,
<artisanworktables:artisans_shears_tin>,
<ceramics:clay_shears>
]);
<ore:allShears>.addAll(<ore:toolClippers>);
<ore:allShears>.remove(<roots:wood_shears>);
recipes.remove(<minecraft:shears>);
recipes.remove(<thermalfoundation:tool.shears_diamond>);
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.setMirrored();
recipe.setFluid(<fluid:water> * 100);
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(<thermalfoundation:tool.shears_gold>);
recipe.setShaped(
[[null,<ore:plateGold>],
[<ore:plateGold>,<ore:cordageQuality>]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.setMirrored();
recipe.setFluid(<fluid:water> * 100);
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(<minecraft:shears>);
recipe.setShaped(
[[null,<ore:plateIron>],
[<ore:plateIron>,<ore:cordageQuality>]]);
recipe.create();
// Armor
var plate = null;
var all_plates = {
copper: <ore:plateCopper>,
tin: <ore:plateTin>,
silver: <ore:plateSilver>,
lead: <ore:plateLead>,
aluminum: <ore:plateAluminum>,
nickel: <ore:plateNickel>,
platinum: <ore:platePlatinum>,
steel: <ore:plateSteel>,
electrum: <ore:plateElectrum>,
invar: <ore:plateInvar>,
bronze: <ore:plateBronze>,
constantan: <ore:plateConstantan>
} as IIngredient[string];
for mat in ["copper","tin","silver","lead","aluminum","nickel","platinum","steel","electrum","invar","bronze","constantan"] as string[] {
recipes.removeByRecipeName("thermalfoundation:tool.shears_" + mat);
<ore:allShears>.add(itemUtils.getItemsByRegexRegistryName(".*thermal.*shears_" + mat + ".*")[0] as IItemStack);
recipes.removeByRecipeName("thermalfoundation:armor.helmet_" + mat);
recipes.removeByRecipeName("thermalfoundation:armor.plate_" + mat);
recipes.removeByRecipeName("thermalfoundation:armor.legs_" + mat);
recipes.removeByRecipeName("thermalfoundation:armor.boots_" + mat);
plate = all_plates[mat] as IIngredient;
var recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.setSecondaryIngredients([cord * 4]);
recipe.setMirrored();
recipe.setFluid(<fluid:water> * 100);
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(itemUtils.getItemsByRegexRegistryName(".*armor.helmet_" + mat + ".*")[0] as IItemStack);
recipe.setShaped(
[[plate,plate,plate],
[plate,null,plate]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.setSecondaryIngredients([cord * 4]);
recipe.setMirrored();
recipe.setFluid(<fluid:water> * 100);
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(itemUtils.getItemsByRegexRegistryName(".*armor.plate_" + mat + ".*")[0] as IItemStack);
recipe.setShaped(
[[plate,null,plate],
[plate,plate,plate],
[plate,plate,plate]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.setSecondaryIngredients([cord * 4]);
recipe.setMirrored();
recipe.setFluid(<fluid:water> * 100);
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(itemUtils.getItemsByRegexRegistryName(".*armor.legs_" + mat + ".*")[0] as IItemStack);
recipe.setShaped(
[[plate,plate,plate],
[plate,null,plate],
[plate,null,plate]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.setSecondaryIngredients([cord * 4]);
recipe.setMirrored();
recipe.setFluid(<fluid:water> * 100);
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(itemUtils.getItemsByRegexRegistryName(".*armor.boots_" + mat + ".*")[0] as IItemStack);
recipe.setShaped(
[[plate,null,plate],
[plate,null,plate]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.setMirrored();
recipe.setFluid(<fluid:water> * 100);
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(itemUtils.getItemsByRegexRegistryName(".*tool.shears_" + mat + ".*")[0] as IItemStack);
recipe.setShaped(
[[null,plate],
[plate,<ore:cordageQuality>]]);
recipe.create();
}
recipes.remove(<minecraft:iron_helmet>);
recipes.remove(<minecraft:iron_chestplate>);
recipes.remove(<minecraft:iron_leggings>);
recipes.remove(<minecraft:iron_boots>);
recipes.remove(<minecraft:golden_helmet>);
recipes.remove(<minecraft:golden_chestplate>);
recipes.remove(<minecraft:golden_leggings>);
recipes.remove(<minecraft:golden_boots>);
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.setSecondaryIngredients([cord * 4]);
recipe.setMirrored();
recipe.setFluid(<fluid:water> * 100);
recipe.addTool(<ore:toolHammer>, 1);
plate = <ore:plateIron>;
recipe.addOutput(<minecraft:iron_helmet>);
recipe.setShaped(
[[plate,plate,plate],
[plate,null,plate]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.setSecondaryIngredients([cord * 4]);
recipe.setMirrored();
recipe.setFluid(<fluid:water> * 100);
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(<minecraft:iron_chestplate>);
recipe.setShaped(
[[plate,null,plate],
[plate,plate,plate],
[plate,plate,plate]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.setSecondaryIngredients([cord * 4]);
recipe.setMirrored();
recipe.setFluid(<fluid:water> * 100);
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(<minecraft:iron_leggings>);
recipe.setShaped(
[[plate,plate,plate],
[plate,null,plate],
[plate,null,plate]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.setSecondaryIngredients([cord * 4]);
recipe.setMirrored();
recipe.setFluid(<fluid:water> * 100);
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(<minecraft:iron_boots>);
recipe.setShaped(
[[plate,null,plate],
[plate,null,plate]]);
recipe.create();
plate = <ore:plateGold>;
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.setSecondaryIngredients([cord * 4]);
recipe.setMirrored();
recipe.setFluid(<fluid:water> * 100);
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(<minecraft:golden_helmet>);
recipe.setShaped(
[[plate,plate,plate],
[plate,null,plate]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.setSecondaryIngredients([cord * 4]);
recipe.setMirrored();
recipe.setFluid(<fluid:water> * 100);
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(<minecraft:golden_chestplate>);
recipe.setShaped(
[[plate,null,plate],
[plate,plate,plate],
[plate,plate,plate]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.setSecondaryIngredients([cord * 4]);
recipe.setMirrored();
recipe.setFluid(<fluid:water> * 100);
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(<minecraft:golden_leggings>);
recipe.setShaped(
[[plate,plate,plate],
[plate,null,plate],
[plate,null,plate]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.setSecondaryIngredients([cord * 4]);
recipe.setMirrored();
recipe.setFluid(<fluid:water> * 100);
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(<minecraft:golden_boots>);
recipe.setShaped(
[[plate,null,plate],
[plate,null,plate]]);
recipe.create();
plate = <ore:plateAluminum>;
var wire = <ore:wireAluminum>;
recipes.remove(<immersiveengineering:faraday_suit_head>);
recipes.remove(<immersiveengineering:faraday_suit_chest>);
recipes.remove(<immersiveengineering:faraday_suit_legs>);
recipes.remove(<immersiveengineering:faraday_suit_feet>);
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.setSecondaryIngredients([cord * 4]);
recipe.setMirrored();
recipe.setFluid(<fluid:water> * 100);
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(<immersiveengineering:faraday_suit_head>);
recipe.setShaped(
[[wire,plate,wire],
[plate,null,plate]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.setSecondaryIngredients([cord * 4]);
recipe.setMirrored();
recipe.setFluid(<fluid:water> * 100);
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(<immersiveengineering:faraday_suit_chest>);
recipe.setShaped(
[[plate,null,plate],
[wire,wire,wire],
[plate,plate,plate]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.setSecondaryIngredients([cord * 4]);
recipe.setMirrored();
recipe.setFluid(<fluid:water> * 100);
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(<immersiveengineering:faraday_suit_legs>);
recipe.setShaped(
[[wire,plate,wire],
[plate,null,plate],
[plate,null,plate]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.setSecondaryIngredients([cord * 4]);
recipe.setMirrored();
recipe.setFluid(<fluid:water> * 100);
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(<immersiveengineering:faraday_suit_feet>);
recipe.setShaped(
[[wire,null,wire],
[plate,null,plate]]);
recipe.create();
// Wires
for w in [<immersiveengineering:material:20>,<immersiveengineering:material:21>,<immersiveengineering:material:22>,<immersiveengineering:material:23>] as IItemStack[] {
recipes.remove(w);
}
recipes.addShapeless("copperwire", <immersiveengineering:material:20>,
[<ore:plateCopper>,<ore:allShears>]);
recipes.addShapeless("electrumwire", <immersiveengineering:material:21>,
[<ore:plateElectrum>,<ore:allShears>]);
recipes.addShapeless("aluminumwire", <immersiveengineering:material:22>,
[<ore:plateAluminum>,<ore:allShears>]);
recipes.addShapeless("steelwire", <immersiveengineering:material:23>,
[<ore:plateSteel>,<ore:allShears>]);
//*/
import crafttweaker.item.IItemStack;
import crafttweaker.item.IIngredient;
import crafttweaker.oredict.IOreDictEntry;
import crafttweaker.item.IItemTransformer;
import mods.artisanworktables.Worktable;
import mods.artisanworktables.IRecipeBuilder;
// Brewing
//recipes.remove(<primal:cauldron>);
//recipes.remove(<primal:cauldron_lid>);
recipes.addShaped("brewingstand", <minecraft:brewing_stand>,
[[<betterwithmods:material:27>,<thermalfoundation:material:1028>,<betterwithmods:material:27>],
[<ore:stickIron>,<minecraft:blaze_rod>,<ore:stickIron>],
[<minecraft:stone_slab>,<embers:superheater>,<minecraft:stone_slab>]]);
// Immersive
recipes.removeByRecipeName("immersiveengineering:blueprints/components");
recipes.removeByRecipeName("immersiveengineering:stone_decoration/cokebrick");
mods.abyssalcraft.InfusionRitual.addRitual("cokeBrickRitual", 0, -1, 100, false, <contenttweaker:coke_brick>, <ore:ingotBrickNether>, [<quark:black_ash>,<ore:ash>,<quark:black_ash>,<ore:ash>,<quark:black_ash>,<ore:ash>,<quark:black_ash>,<ore:ash>]);
game.setLocalization("ac.ritual.cokeBrickRitual", "Coke brick creation"); game.setLocalization("ac.ritual.cokeBrickRitual.desc", "This ritual will infuse netherbrick with ashes and wither ashes to create a fire-proof and curse-proof brick. (any type of ash can be used for the non-wither ash in the ritual)");
recipes.addShaped("cokebricks", <immersiveengineering:stone_decoration:0>,
[[null,<contenttweaker:coke_brick>,null],
[<contenttweaker:coke_brick>,<primal:mortar>,<contenttweaker:coke_brick>],
[null,<contenttweaker:coke_brick>,null]]);
recipes.removeByRecipeName("immersiveengineering:material/component_iron");
recipes.addShaped("ironcomponent", <immersiveengineering:material:8>,
[[<ore:plateIron>,<ore:plateCopper>,<ore:plateIron>],
[<ore:gearIron>,<ore:stickIron>,<ore:gearIron>],
[<ore:plateIron>,<contenttweaker:redstone_component>,<ore:plateIron>]]);
recipes.removeByRecipeName("immersiveengineering:material/component_steel");
recipes.addShaped("steelcomponent", <immersiveengineering:material:9>,
[[<ore:plateSteel>,<ore:plateCopper>,<ore:plateSteel>],
[<ore:gearSteel>,<ore:stickSteel>,<ore:gearSteel>],
[<ore:plateSteel>,<contenttweaker:redstone_component>,<ore:plateSteel>]]);
recipes.removeByRecipeName("immersiveengineering:conveyors/conveyor_basic");
recipes.removeByRecipeName("immersiveengineering:conveyors/conveyor_basic_rubber");
recipes.addShaped("conveyor", <immersiveengineering:conveyor> * 8,
[[<ore:leather>,<ore:leather>,<ore:leather>],
[<ore:stickIron>,<contenttweaker:redstone_component>,<ore:stickIron>]]);
recipes.addShaped("conveyorrubber", <immersiveengineering:conveyor> * 8,
[[<ore:itemRubber>,<ore:itemRubber>,<ore:itemRubber>],
[<ore:stickIron>,<contenttweaker:redstone_component>,<ore:stickIron>]]);
recipes.remove(<immersiveengineering:metal_device1:1>);
recipes.addShaped(<immersiveengineering:metal_device1:1>,
[[<rustic:iron_lattice>,<ore:plateCopper>,<rustic:iron_lattice>],
[<ore:plateCopper>,<immersiveengineering:metal_decoration0:0>,<ore:plateCopper>],
[<rustic:iron_lattice>,<thermalfoundation:material:512>,<rustic:iron_lattice>]]);
recipes.remove(<immersiveengineering:metal_device1:2>);
recipes.addShaped(<immersiveengineering:metal_device1:2>,
[[<rustic:iron_lattice>,<ore:plateSteel>,<rustic:iron_lattice>],
[<contenttweaker:redstone_component>,<immersiveengineering:metal_decoration0:0>,<ore:stickSteel>],
[<ore:blockSheetmetalSteel>,<ore:blockSheetmetalSteel>,<ore:blockSheetmetalSteel>]]);
recipes.remove(<immersiveengineering:wooden_device0:2>);
recipes.addShaped("engineerworkbench", <immersiveengineering:wooden_device0:2>,
[[<ore:ingotSteel>,null,null],
[<ore:plankTreatedWood>,<ore:plankTreatedWood>,<ore:plankTreatedWood>],
[<minecraft:crafting_table>,null,<immersiveengineering:wooden_decoration:0>]]);
mods.immersiveengineering.BottlingMachine.addRecipe(<minecraft:potion>.withTag({Potion: "minecraft:water"}), <minecraft:glass_bottle>, <fluid:water> * 1000);
mods.immersiveengineering.BottlingMachine.addRecipe(<minecraft:glass_bottle>, <ore:pileSand>, <fluid:liquidglass> * 200);
mods.immersiveengineering.BottlingMachine.addRecipe(<contenttweaker:glass_bulb>, <ore:clayball>, <fluid:liquidglass> * 200);
mods.immersiveengineering.Blueprint.removeRecipe(<immersiveengineering:material:26>);
mods.immersiveengineering.Blueprint.addRecipe("components", <immersiveengineering:material:26>, [<contenttweaker:glass_bulb>,<ore:wireCopper>,<ore:wireCopper>,<contenttweaker:redstone_component>,<ore:plateNickel>]);
mods.immersiveengineering.Refinery.addRecipe(<liquid:molten_plastic> * 1, <liquid:refined_oil> * 1, <liquid:steam> * 1, 1);
recipes.addShaped("treatedwood", <immersiveengineering:treated_wood> * 8,
[[<ore:plankWood>,<ore:plankWood>,<ore:plankWood>],
[<ore:plankWood>,<ceramics:clay_bucket>.withTag({fluids: {FluidName: "creosote", Amount: 1000}}),<ore:plankWood>],
[<ore:plankWood>,<ore:plankWood>,<ore:plankWood>]]);
furnace.remove(<opencomputers:material:4>);
recipes.remove(<opencomputers:material:2>);
//mods.thermalexpansion.RedstoneFurnace.removeRecipe(<opencomputers:material:4>);
mods.thermalexpansion.RedstoneFurnace.removeRecipe(<opencomputers:material:2>);
mods.immersiveengineering.MetalPress.addRecipe(<opencomputers:material:2>, <contenttweaker:plastic_sheet>, <contenttweaker:pcb_blueprint>, 1000);
mods.immersiveengineering.Blueprint.removeRecipe(<immersiveengineering:material:27>);
mods.immersiveengineering.Blueprint.addRecipe("components", <immersiveengineering:material:27>, [<opencomputers:material:2>, <immersiveengineering:material:20> * 5, <immersiveengineering:material:26> * 12, <opencomputers:material:6> * 20]);
mods.immersiveengineering.MetalPress.addRecipe(<opencomputers:material:4>, <immersiveengineering:material:27>, <immersiveengineering:mold:0>, 200);
mods.immersiveengineering.Mixer.addRecipe(<liquid:calomel> * 800, <liquid:steam> * 800, [<minecraft:redstone> * 8, <harvestcraft:saltitem> * 8, <ore:dustSulfur>], 200);
// Embers
recipes.remove(<embers:mech_core>);
recipes.addShaped("mechanicalcore", <embers:mech_core>,
[[<rustic:iron_lattice>,<minecraft:compass>,<rustic:iron_lattice>],
[<ore:gearInvar>,<immersiveengineering:material:8>,<ore:gearInvar>],
[<rustic:iron_lattice>,<ore:plateLead>,<rustic:iron_lattice>]]);
recipes.remove(<embers:block_furnace>);
recipes.addShaped("melter", <embers:block_furnace>,
[[<embers:brick_caminite>,<embers:plate_caminite>,<embers:brick_caminite>],
[<embers:brick_caminite>,<embers:copper_cell>,<embers:brick_caminite>],
[<ore:plateIron>,<embers:mech_core>,<furnus:furnus>]]);
recipes.remove(<embers:copper_cell>);
recipes.addShaped("coppercell", <embers:copper_cell>,
[[<embers:block_caminite_brick>,<ore:plateCopper>,<embers:block_caminite_brick>],
[<ore:plateCopper>,<immersiveengineering:metal_decoration0:0>,<ore:plateCopper>],
[<embers:block_caminite_brick>,<ore:plateCopper>,<embers:block_caminite_brick>]]);
recipes.remove(<embers:ember_receiver>);
recipes.addShaped("receiver", <embers:ember_receiver>,
[[<rustic:iron_lattice>,<ore:plateCopper>,<rustic:iron_lattice>],
[<rustic:iron_lattice>,<embers:plate_caminite>,<rustic:iron_lattice>],
[<contenttweaker:redstone_component>,<ore:plateCopper>,<contenttweaker:redstone_component>]]);
recipes.remove(<embers:ember_emitter>);
recipes.addShaped("emitter", <embers:ember_emitter>,
[[null,<ore:plateCopper>,null],
[<rustic:iron_lattice>,<ore:plateCopper>,<rustic:iron_lattice>],
[<contenttweaker:redstone_component>,<embers:plate_caminite>,<contenttweaker:redstone_component>]]);
recipes.remove(<embers:stamper>);
recipes.addShaped("stamper", <embers:stamper>,
[[<embers:brick_caminite>,<immersiveengineering:material:8>,<embers:brick_caminite>],
[<rustic:chain>,<minecraft:piston>,<rustic:chain>],
[<embers:brick_caminite>,<ore:blockIron>,<embers:brick_caminite>]]);
recipes.remove(<embers:stamper_base>);
recipes.addShaped("stamperbase", <embers:stamper_base>,
[[<rustic:iron_lattice>,<ore:blockIron>,<rustic:iron_lattice>],
[<embers:pipe>,<embers:mech_core>,<embers:pipe>],
[<embers:block_caminite_brick>,<embers:block_tank>,<embers:block_caminite_brick>]]);
recipes.remove(<embers:ember_bore>);
recipes.addShaped("bore", <embers:ember_bore>,
[[<embers:stairs_caminite_brick>,<embers:mech_core>,<embers:stairs_caminite_brick>],
[<rustic:iron_lattice>,<ore:stickIron>,<rustic:chain>],
[<ore:gearInvar>,<ore:gearInvar>,<ore:gearInvar>]]);
recipes.remove(<embers:mech_accessor>);
recipes.addShaped("accessor", <embers:mech_accessor>,
[[null,<ore:plateIron>],
[<embers:stairs_caminite_brick>,<embers:mech_core>]]);
recipes.remove(<embers:ember_activator>);
recipes.addShaped("activator", <embers:ember_activator>,
[[<ore:plateCopper>,<ore:plateElectrum>,<ore:plateCopper>],
[<embers:item_pipe>,<embers:mech_core>,<embers:item_pipe>],
[<ore:plateIron>,<furnus:furnus>,<ore:plateIron>]]);
recipes.remove(<embers:stone_edge>);
recipes.addShaped("caminitering",<embers:stone_edge>,
[[<embers:block_caminite_brick>,<embers:block_caminite_brick>,<embers:block_caminite_brick>],
[<embers:block_caminite_brick>,null,<embers:block_caminite_brick>],
[<embers:block_caminite_brick>,<embers:block_caminite_brick>,<embers:block_caminite_brick>]]);
recipes.remove(<embers:mixer>);
recipes.addShaped("mixer", <embers:mixer>,
[[<rustic:chain>,<ore:plateIron>,<rustic:chain>],
[<ore:gearCopper>,<embers:mech_core>,<ore:stickIron>],
[<embers:brick_caminite>,<embers:block_tank>,<embers:brick_caminite>]]);
recipes.remove(<embers:heat_coil>);
recipes.addShaped("hearthcoil", <embers:heat_coil>,
[[<ore:plateCopper>,<ore:plateElectrum>,<ore:plateCopper>],
[<ore:plateIron>,<immersiveengineering:metal_device1:1>,<ore:plateIron>],
[<embers:block_caminite_brick>,<embers:mech_core>,<embers:block_caminite_brick>]]);
recipes.remove(<embers:item_dropper>);
recipes.addShaped("dropper", <embers:item_dropper>,
[[null,<minecraft:hopper>,null],
[<ore:gearIron>,<immersiveengineering:material:8>,<ore:gearIron>]]);
recipes.remove(<embers:block_tank>);
recipes.addShaped("tank", <embers:block_tank>,
[[<embers:brick_caminite>,null,<embers:brick_caminite>],
[<ore:plateIron>,null,<ore:plateIron>],
[<embers:brick_caminite>,<immersiveengineering:metal_device0:4>,<embers:brick_caminite>]]);
recipes.remove(<embers:caminite_lever>);
recipes.addShaped("lever", <embers:caminite_lever>,
[[<ore:stickWood>],
[<contenttweaker:screw>,<embers:plate_caminite>,<contenttweaker:screw>],
[<contenttweaker:redstone_component>]]);
recipes.remove(<embers:ember_gauge>);
recipes.addShaped("embergauge", <embers:ember_gauge>,
[[<minecraft:compass>],
[<embers:shard_ember>],
[<ore:plateIron>]]);
recipes.remove(<embers:fluid_gauge>);
recipes.addShaped("gauge", <embers:fluid_gauge>,
[[<minecraft:compass>],
[<embers:pipe>],
[<ore:plateCopper>]]);
recipes.remove(<embers:block_lantern>);
recipes.addShaped("emberlantern", <embers:block_lantern>,
[[null,<ore:plateIron>,null],
[<rustic:iron_lattice>,<embers:shard_ember>,<rustic:iron_lattice>],
[null,<ore:plateIron>,null]]);
recipes.remove(<embers:crystal_cell>);
recipes.addShaped("crystalcell", <embers:crystal_cell>,
[[null,<embers:ember_cluster>,null],
[<ore:plateDawnstone>,<embers:ember_cluster>,<ore:plateDawnstone>],
[<immersiveengineering:metal_decoration0:0>,<ore:blockDawnstone>,<immersiveengineering:metal_decoration0:0>]]);
recipes.remove(<embers:cinder_plinth>);
recipes.addShaped("plinth", <embers:cinder_plinth>,
[[null,<ore:blockSheetmetalLead>,null],
[<ore:ingotSilver>,<immersiveengineering:metal_device1:1>,<ore:ingotSilver>],
[<ore:plateLead>,<embers:block_caminite_brick>,<ore:plateLead>]]);
mods.embers.Melter.add(<liquid:liquidglass> * 1000, <ore:blockGlass>);
//mods.embers.Mixer.add(<liquid:steam> * 50, [<liquid:water> * 16, <liquid:refined_fuel> * 1]);
//mods.embers.Mixer.add(<liquid:steam> * 45, [<liquid:water> * 12, <liquid:gasoline> * 1]);
//mods.embers.Mixer.add(<liquid:steam> * 40, [<liquid:water> * 10, <liquid:diesel> * 1]);
//mods.embers.Mixer.add(<liquid:steam> * 35, [<liquid:water> * 8, <liquid:pyrotheum> * 2]);
//mods.embers.Mixer.add(<liquid:steam> * 30, [<liquid:water> * 6, <liquid:biodiesel> * 4]);
//mods.embers.Mixer.add(<liquid:steam> * 25, [<liquid:water> * 4, <liquid:refined_oil> * 6]);
//mods.embers.Mixer.add(<liquid:steam> * 20, [<liquid:water> * 2, <liquid:ethanol> * 8]);
//mods.embers.Mixer.add(<liquid:steam> * 15, [<liquid:water> * 1, <liquid:coal> * 10]);
//mods.embers.Mixer.add(<liquid:steam> * 10, [<liquid:water> * 1, <liquid:creosote> * 12]);
mods.embers.Stamper.add(<contenttweaker:plastic_sheet>, <liquid:molten_plastic> * 100, <embers:stamp_flat>);
// Bucket
recipes.removeByRecipeName("minecraft:bucket");
var recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(<minecraft:bucket>);
recipe.setShaped(
[[<ore:pinIron>,<ore:stickIron>,<ore:pinIron>],
[<ore:plateIron>,null,<ore:plateIron>],
[null,<ore:plateIron>,null]]);
recipe.create();
recipes.remove(<minecraft:iron_trapdoor>);
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(<minecraft:iron_trapdoor>);
recipe.setShaped(
[[<ore:plateIron>,<ore:plateIron>],
[<ore:plateIron>,<ore:plateIron>]]);
recipe.create();
recipes.remove(<minecraft:iron_door>);
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(<minecraft:iron_door> * 3);
recipe.setShaped(
[[<ore:plateIron>,<ore:plateIron>],
[<ore:plateIron>,<ore:plateIron>],
[<ore:plateIron>,<ore:plateIron>]]);
recipe.create();
recipes.remove(<minecraft:hopper>);
recipe = Worktable.createRecipeBuilder("engineer");
recipe.addTool(<contenttweaker:screw_box>, 8);
recipe.addOutput(<minecraft:hopper>);
recipe.setShaped(
[[<ore:plateIron>,null,<ore:plateIron>],
[<ore:plateIron>,<contenttweaker:redstone_component>,<ore:plateIron>],
[null,<minecraft:iron_trapdoor>,null]]);
recipe.create();
recipes.remove(<immersiveengineering:material:1>);
//recipe = Worktable.createRecipeBuilder("blacksmith");
//recipe.addTool(<ore:toolHammer>, 1);
//recipe.addOutput(<immersiveengineering:material:1> * 4);
//recipe.setShaped([[<ore:ingotIron>],[<ore:ingotIron>]]);
//recipe.create();
//
//recipe = Worktable.createRecipeBuilder("blacksmith");
//recipe.addTool(<ore:toolHammer>, 1);
//recipe.addOutput(<primal:golden_stick> * 4);
//recipe.setShaped([[<ore:ingotGold>],[<ore:ingotGold>]]);
//recipe.create();
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(<gardenstuff:material:1> * 8);
recipe.setShapeless([<ore:stickIron>,<ore:stickIron>]);
recipe.create();
recipes.remove(<rustic:chain>);
recipe = Worktable.createRecipeBuilder("blacksmith");
recipe.addTool(<ore:toolHammer>, 1);
recipe.addOutput(<rustic:chain> * 12);
recipe.setShaped(
[[<gardenstuff:material:1>],
[<gardenstuff:material:1>],
[<gardenstuff:material:1>]]);
recipe.create();
mods.immersiveengineering.AlloySmelter.addRecipe(<gardenstuff:material:4>, <minecraft:iron_ingot>, <ore:ash>, 300);
recipes.addShapeless(<gardenstuff:material:4>.withTag({cursed: true}).withDisplayName("§0Salted Iron Ingot"), [<gardenstuff:material:4>, <ore:foodSalt>]);
recipes.addShaped(<roots:iron_knife>.withTag({ench: [{lvl: 4 as short, id: 29 as short}, {lvl: 5 as short, id: 25 as short}, {lvl: 3 as short, id: 36 as short}], RepairCost: 777}).withDisplayName("§0Salted Iron Knife"),
[[<gardenstuff:material:4>.withTag({cursed: true})],
[<spartanweaponry:material:0>]]);
// Astral Sorcery
mods.astralsorcery.StarlightInfusion.addInfusion(<contenttweaker:plastic_sheet>,<contenttweaker:pcb_blueprint>,false,1.0,200);
// Rustic
recipes.remove(<rustic:iron_lattice>);
recipes.addShaped("lattice", <rustic:iron_lattice> * 16,
[[null,<ore:stickIron>,null],
[<ore:stickIron>,<ore:stickIron>,<ore:stickIron>],
[null,<ore:stickIron>,null]]);
mods.rustic.EvaporatingBasin.addRecipe(<contenttweaker:calomel>, <liquid:calomel> * 80);
// Flint and Steel
recipes.remove(<minecraft:flint_and_steel>);
recipes.addShapeless("flintsteel", <minecraft:flint_and_steel>, [<ore:ingotSteel>,<minecraft:flint>]);
// Water
recipes.addShapeless("freshwaterclay", <harvestcraft:freshwateritem> * 8, [<ceramics:clay_bucket>.withTag({fluids: {FluidName: "water", Amount: 1000}})]);
// Coiled sword
recipes.removeByRecipeName("bonfires:coiled_sword_hard");
recipes.removeByRecipeName("bonfires:coiled_sword_easy");
mods.abyssalcraft.InfusionRitual.addRitual("coiledSwordHardRitual", 0, -1, 1000, true, <bonfires:coiled_sword>, <minecraft:iron_sword>, [<minecraft:blaze_rod>,<minecraft:fire_charge>,null,<minegems:ruby>,<minecraft:lava_bucket>,<minegems:ruby>,null,<minecraft:fire_charge>]);
game.setLocalization("ac.ritual.coiledSwordHardRitual", "Coiled Sword creation"); game.setLocalization("ac.ritual.coiledSwordHardRitual.desc", "This ritual will infuse an iron sword with fire magic to create a sword capable of igniting a bonfire.");
mods.abyssalcraft.InfusionRitual.addRitual("coiledSwordEasyRitual", 0, -1, 500, true, <bonfires:coiled_sword>, <bonfires:coiled_sword_fragment>, [<minecraft:iron_ingot>,null,<minecraft:blaze_powder>,null,<minegems:ruby>,null,<minecraft:blaze_powder>,null]);
game.setLocalization("ac.ritual.coiledSwordEasyRitual", "Coiled Sword restoration"); game.setLocalization("ac.ritual.coiledSwordEasyRitual.desc", "This ritual will infuse a coiled sword fragment to create a brand new coiled sword.");
import crafttweaker.item.IItemStack;
import crafttweaker.item.IIngredient;
import crafttweaker.liquid.ILiquidStack;
import crafttweaker.oredict.IOreDictEntry;
import crafttweaker.item.IItemTransformer;
import mods.artisanworktables.Worktable;
import mods.artisanworktables.IRecipeBuilder;
import mods.foundry.Casting;
import mods.foundry.MoldStation;
import mods.foundry.Melting;
// Redstone
<ore:dustRedstone>.add(<contenttweaker:redstone_component>);
<ore:dustRedstone>.remove(<minecraft:redstone>);
mods.foundry.Melting.removeRecipe(<contenttweaker:redstone_component>);
mods.foundry.Melting.addRecipe(<liquid:redstone> * 100, <minecraft:redstone>);
mods.betterwithmods.Crucible.add(<contenttweaker:calomel> * 8, <abyssalcraft:sulfur>, [<minecraft:redstone> * 8, <harvestcraft:freshwateritem>, <harvestcraft:saltitem> * 8, <ore:dustSulfur>]);
mods.betterwithmods.Crucible.add(<contenttweaker:calomel_stick>, null, [<contenttweaker:calomel>, <ore:stickWood>]);
mods.betterwithmods.Crucible.add(<contenttweaker:calomel_wire>, null, [<contenttweaker:calomel>, <immersiveengineering:material:20>]);
recipes.remove(<minecraft:redstone_block>);
recipes.addShaped("redstoneblock", <minecraft:redstone_block>,
[[<minecraft:redstone>,<minecraft:redstone>,<minecraft:redstone>],
[<minecraft:redstone>,<minecraft:redstone>,<minecraft:redstone>],
[<minecraft:redstone>,<minecraft:redstone>,<minecraft:redstone>]]);
mods.thermalexpansion.Compactor.removeStorageRecipe(<contenttweaker:redstone_component> * 9);
mods.thermalexpansion.Compactor.addStorageRecipe(<minecraft:redstone_block>,<minecraft:redstone> * 9, 400);
recipes.remove(<immersiveengineering:wirecoil:5>);
recipes.addShaped("redstonecoil", <immersiveengineering:wirecoil:5> * 4,
[[null,<contenttweaker:calomel_wire>,null],
[<contenttweaker:calomel_wire>,<ore:stickWood>,<contenttweaker:calomel_wire>],
[null,<contenttweaker:calomel_wire>,null]]);
furnace.addRecipe(<contenttweaker:silicon>, <betterwithmods:sand_pile>);
furnace.addRecipe(<contenttweaker:silicon>, <betterwithmods:red_sand_pile>);
recipes.addShapeless("siliconwafer", <contenttweaker:silicon_wafer> * 8, [<ore:toolSawGem>, <contenttweaker:silicon>]);
recipes.removeByRecipeName("opencomputers:material33");
recipes.addShaped("transistor", <opencomputers:material:6> * 8,
[[<contenttweaker:silicon_wafer>,<contenttweaker:calomel>,<contenttweaker:silicon_wafer>],
[<thermalfoundation:material:192>,<thermalfoundation:material:192>,<thermalfoundation:material:192>]]);
recipes.addShaped("redstonecomponent", <contenttweaker:redstone_component>,
[[<opencomputers:material:6>,<opencomputers:material:6>,<opencomputers:material:6>],
[<contenttweaker:calomel_wire>,<opencomputers:material:6>,<contenttweaker:calomel_wire>],
[null,<embers:plate_caminite>,null]]);
recipes.remove(<minecraft:redstone_torch>);
recipes.addShaped("redstonetorch", <minecraft:redstone_torch>,
[[<contenttweaker:redstone_component>],
[<contenttweaker:calomel_stick>]]);
recipes.remove(<minecraft:redstone_lamp>);
recipes.addShaped("redstonelamp", <minecraft:redstone_lamp>,
[[<astralsorcery:itemusabledust>],
[<contenttweaker:redstone_component>]]);
recipes.remove(<quark:ender_watcher>);
recipes.addShaped("watcher", <quark:ender_watcher>,
[[<primal:obsidian_plate>,<minecraft:ender_eye>,<primal:obsidian_plate>],
[<minecraft:ender_eye>,<contenttweaker:redstone_component>,<minecraft:ender_eye>],
[<primal:obsidian_plate>,<minecraft:ender_eye>,<primal:obsidian_plate>]]);
recipes.remove(<thermalfoundation:material:512>);
recipes.addShaped("redstoneservo", <thermalfoundation:material:512>,
[[<contenttweaker:redstone_component>,<ore:plateIron>,<contenttweaker:redstone_component>],
[null,<ore:plateIron>,null],
[<contenttweaker:redstone_component>,<ore:plateIron>,<contenttweaker:redstone_component>]]);
recipes.removeByRecipeName("rustic:noteblock");
recipes.remove(<minecraft:compass>);
recipes.remove(<minecraft:clock>);
recipes.remove(<minecraft:lever>);
recipes.remove(<minecraft:stone_pressure_plate>);
recipes.remove(<minecraft:wooden_pressure_plate>);
recipes.remove(<minecraft:stone_button>);
recipes.remove(<minecraft:wooden_button>);
recipes.remove(<minecraft:tripwire_hook>);
recipes.remove(<minecraft:light_weighted_pressure_plate>);
recipes.remove(<minecraft:heavy_weighted_pressure_plate>);
recipes.remove(<minecraft:daylight_detector>);
recipes.remove(<minecraft:golden_rail>);
recipes.remove(<minecraft:detector_rail>);
recipes.remove(<minecraft:rail>);
recipes.remove(<minecraft:activator_rail>);
recipes.remove(<minecraft:minecart>);
recipes.remove(<minecraft:repeater>);
recipes.remove(<minecraft:comparator>);
recipes.remove(<minecraft:dropper>);
recipes.remove(<minecraft:dispenser>);
recipes.remove(<minecraft:observer>);
recipes.removeByRecipeName("rustic:piston");
recipes.removeByRecipeName("minecraft:piston");
var component = <contenttweaker:redstone_component>;
var recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 12);
recipe.addOutput(<minecraft:piston>);
recipe.setShaped(
[[null,<ore:slabWood>,null],
[<quark:sturdy_stone>,<ore:stickIron>,<quark:sturdy_stone>],
[<quark:sturdy_stone>,<contenttweaker:redstone_component>,<quark:sturdy_stone>]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 8);
recipe.addOutput(<minecraft:compass>);
recipe.setShaped(
[[null,<ore:plateIron>,null],
[<ore:plateIron>,component,<ore:plateIron>],
[null,<ore:plateIron>,null]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 8);
recipe.addOutput(<minecraft:clock>);
recipe.setShaped(
[[null,<ore:plateGold>,null],
[<ore:plateGold>,component,<ore:plateGold>],
[null,<ore:plateGold>,null]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 1);
recipe.addOutput(<minecraft:lever>);
recipe.setShaped(
[[<ore:stickWood>],
[<ore:stone>],
[component]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 2);
recipe.addOutput(<minecraft:stone_pressure_plate>);
recipe.setShaped(
[[<ore:stone>,component,<ore:stone>]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 2);
recipe.addOutput(<minecraft:wooden_pressure_plate>);
recipe.setShaped(
[[<ore:plankWood>,component,<ore:plankWood>]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 2);
recipe.addOutput(<minecraft:light_weighted_pressure_plate>);
recipe.setShaped(
[[<ore:plateGold>,component,<ore:plateGold>]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 2);
recipe.addOutput(<minecraft:heavy_weighted_pressure_plate>);
recipe.setShaped(
[[<ore:plateIron>,component,<ore:plateIron>]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 1);
recipe.addOutput(<minecraft:stone_button>);
recipe.setShaped(
[[component,<ore:stone>]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 1);
recipe.addOutput(<minecraft:wooden_button>);
recipe.setShaped(
[[component,<ore:plankWood>]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 1);
recipe.addOutput(<minecraft:tripwire_hook>);
recipe.setShaped(
[[<primal:iron_ring>],
[<ore:stickWood>],
[component]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 14);
recipe.addOutput(<minecraft:daylight_detector>);
recipe.setShaped(
[[<minecraft:glass_pane>,<minecraft:glass_pane>,<minecraft:glass_pane>],
[<ore:blockQuartz>,component,<ore:blockQuartz>],
[<ore:slabWood>,<ore:slabWood>,<ore:slabWood>]]);
recipe.create();
var tie = <ore:stickTreatedWood>;
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 60);
recipe.addOutput(<minecraft:rail> * 12);
recipe.setShaped(
[[<ore:stickIron>,tie,<ore:stickIron>],
[<ore:stickIron>,tie,<ore:stickIron>],
[<ore:stickIron>,tie,<ore:stickIron>]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 60);
recipe.addOutput(<minecraft:golden_rail> * 12);
recipe.setShaped(
[[<ore:stickGold>,tie,<ore:stickGold>],
[<ore:stickGold>,component,<ore:stickGold>],
[<ore:stickGold>,tie,<ore:stickGold>]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 60);
recipe.addOutput(<minecraft:detector_rail> * 12);
recipe.setShaped(
[[<ore:stickIron>,tie,<ore:stickIron>],
[<ore:stickIron>,<minecraft:stone_button>,<ore:stickIron>],
[<ore:stickIron>,tie,<ore:stickIron>]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 60);
recipe.addOutput(<minecraft:activator_rail> * 12);
recipe.setShaped(
[[<ore:stickIron>,tie,<ore:stickIron>],
[<ore:stickIron>,<minecraft:redstone_torch>,<ore:stickIron>],
[<ore:stickIron>,tie,<ore:stickIron>]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 48);
recipe.addOutput(<minecraft:minecart>);
recipe.setShaped(
[[<ore:plateIron>,null,<ore:plateIron>],
[<ore:plateIron>,<ore:plateIron>,<ore:plateIron>]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 12);
recipe.addOutput(<minecraft:repeater>);
recipe.setShaped(
[[<minecraft:redstone_torch>,component,<minecraft:redstone_torch>],
[<minecraft:stone_slab:0>,<minecraft:stone_slab:0>,<minecraft:stone_slab:0>]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 12);
recipe.addOutput(<minecraft:comparator>);
recipe.setShaped(
[[null,<minecraft:redstone_torch>,null],
[<minecraft:redstone_torch>,component,<minecraft:redstone_torch>],
[<minecraft:stone_slab:7>,<minecraft:stone_slab:7>,<minecraft:stone_slab:7>]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 12);
recipe.addOutput(<minecraft:dropper>);
recipe.setShaped(
[[<quark:sturdy_stone>,<quark:sturdy_stone>,<quark:sturdy_stone>],
[<contenttweaker:redstone_component>,<contenttweaker:redstone_component>,<quark:sturdy_stone>],
[<quark:sturdy_stone>,<quark:sturdy_stone>,<quark:sturdy_stone>]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 12);
recipe.addOutput(<minecraft:dispenser>);
recipe.setShaped(
[[<quark:sturdy_stone>,<quark:sturdy_stone>,<quark:sturdy_stone>],
[<contenttweaker:redstone_component>,<spartanweaponry:crossbow_wood>,<quark:sturdy_stone>],
[<quark:sturdy_stone>,<quark:sturdy_stone>,<quark:sturdy_stone>]]);
recipe.create();
recipe = Worktable.createRecipeBuilder("engineer");
recipe.setMirrored();
recipe.addTool(<contenttweaker:screw_box>, 12);
recipe.addOutput(<minecraft:observer>);
recipe.setShaped(
[[<quark:sturdy_stone>,<quark:sturdy_stone>,<quark:sturdy_stone>],
[<contenttweaker:redstone_component>,<contenttweaker:redstone_component>,<quark:ender_watcher>],
[<quark:sturdy_stone>,<quark:sturdy_stone>,<quark:sturdy_stone>]]);
recipe.create();
//*/
import crafttweaker.item.IItemStack;
import crafttweaker.item.IIngredient;
import crafttweaker.oredict.IOreDictEntry;
import crafttweaker.item.IItemTransformer;
import mods.artisanworktables.Worktable;
import mods.artisanworktables.IRecipeBuilder;
for I in itemUtils.getItemsByRegexRegistryName(".*thermaldynamics.*") {
recipes.remove(I);
}
for I in itemUtils.getItemsByRegexRegistryName(".*thermalexpansion.*") {
recipes.remove(I);
}
for I in itemUtils.getItemsByRegexRegistryName(".*thermalfoundation:tool.*") {
recipes.remove(I);
}
for I in [
<thermalfoundation:material:24>,
<thermalfoundation:material:25>,
<thermalfoundation:material:192>,
<thermalfoundation:material:193>,
<thermalfoundation:material:194>,
<thermalfoundation:material:195>,
<thermalfoundation:material:196>,
<thermalfoundation:material:197>,
<thermalfoundation:material:198>,
<thermalfoundation:material:199>,
<thermalfoundation:material:200>,
<thermalfoundation:material:224>,
<thermalfoundation:material:225>,
<thermalfoundation:material:226>,
<thermalfoundation:material:227>,
<thermalfoundation:material:228>,
<thermalfoundation:material:229>,
<thermalfoundation:material:230>,
<thermalfoundation:material:231>,
<thermalfoundation:material:256>,
<thermalfoundation:material:257>,
<thermalfoundation:material:258>,
<thermalfoundation:material:259>,
<thermalfoundation:material:260>,
<thermalfoundation:material:261>,
<thermalfoundation:material:262>,
<thermalfoundation:material:263>,
<thermalfoundation:material:264>,
<thermalfoundation:material:288>,
<thermalfoundation:material:289>,
<thermalfoundation:material:290>,
<thermalfoundation:material:291>,
<thermalfoundation:material:292>,
<thermalfoundation:material:293>,
<thermalfoundation:material:294>,
<thermalfoundation:material:295>,
<thermalfoundation:material:16>,
<thermalfoundation:wrench>,
<thermalfoundation:meter>,
<thermalfoundation:upgrade:0>,
<thermalfoundation:upgrade:1>,
<thermalfoundation:upgrade:2>,
<thermalfoundation:upgrade:3>,
<thermalfoundation:upgrade:33>,
<thermalfoundation:upgrade:34>,
<thermalfoundation:upgrade:35>,
<thermalfoundation:security>,
<thermalfoundation:tome_experience>,
<thermalfoundation:storage_resource:0>
] as IItemStack[] {
recipes.remove(I);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment