Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #loader contenttweaker
- import mods.contenttweaker.fluid.FluidBuilder;
- import crafttweaker.item.IItemStack;
- import crafttweaker.liquid.ILiquidStack;
- import mods.contenttweaker.Fluid;
- val still = "tconstruct:blocks/fluids/molten_metal";
- val flow = "tconstruct:blocks/fluids/molten_metal_flow";
- function initFluid(name as string, color as int, temperature as int) as Fluid {
- var f = new FluidBuilder(true, color, still, flow);
- f.viscosity = 5000;
- f.density = 2000;
- f.luminosity = 15;
- f.temperature = temperature;
- f.register(name);
- return true;
- } bool;
- function initMaterial(name as string, color as int, craft as bool, cast as bool, item as IItemStack, fluid as IFluidStack) {
- val mat = mods.contenttweaker.tconstruct.MaterialBuilder.create(name);
- mat.color = color;
- mat.craftable = craft;
- mat.castable = cast;
- mat.representativeItem = item;
- mat.addItem(item);
- mat.liquid = fluid;
- mat.addHeadMaterialStats(640, 6.5, 4.5, 3);
- mat.addHandleMaterialStats(1, 70);
- mat.addExtraMaterialStats(1200);
- return true;
- } bool;
- initFluid("molten_mithril", 15264503, 2200);
- initFluid("molten_elven_steel", 14605263, 1500);
- initFluid("molten_uruk_steel", 5132087, 1500);
- initFluid("molten_dwarven_steel", 7700868, 1500);
- initFluid("molten_orc_steel", 5133643, 1500);
- initFluid("molten_tin", 10464433, 450);
- initMaterial("mithril", 15264503, false, true, <item:lotr:mithril_ingot>, <fluid:contenttweaker:molten_mithril>);
- initMaterial("elven_steel", 14605263, false, true, <item:lotr:elven_steel_ingot>, <fluid:contenttweaker:molten_elven_steel>);
- initMaterial("uruk_steel", 5132087, false, true, <item:lotr:uruk_steel_ingot>, <fluid:contenttweaker:molten_uruk_steel>);
- initMaterial("dwarven_steel", 7700868, false, true, <item:lotr:dwarven_steel_ingot>, <fluid:contenttweaker:molten_dwarven_steel>);
- initMaterial("orc_steel", 5133643, false, true, <item:lotr:orc_steel_ingot>, <fluid:contenttweaker:molten_orc_steel>);
- initMaterial("tin", 10464433, false, true, <item:lotr:tin_ingot>, <fluid:contenttweaker:molten_tin>);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement