Advertisement
Elrol

lotr.zs

May 24th, 2021
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. #loader contenttweaker
  2.  
  3. import mods.contenttweaker.fluid.FluidBuilder;
  4. import crafttweaker.item.IItemStack;
  5. import crafttweaker.liquid.ILiquidStack;
  6. import mods.contenttweaker.Fluid;
  7.  
  8. val still = "tconstruct:blocks/fluids/molten_metal";
  9. val flow = "tconstruct:blocks/fluids/molten_metal_flow";
  10.  
  11. function initFluid(name as string, color as int, temperature as int) as Fluid {
  12. var f = new FluidBuilder(true, color, still, flow);
  13. f.viscosity = 5000;
  14. f.density = 2000;
  15. f.luminosity = 15;
  16. f.temperature = temperature;
  17. f.register(name);
  18. return true;
  19. } bool;
  20.  
  21.  
  22. function initMaterial(name as string, color as int, craft as bool, cast as bool, item as IItemStack, fluid as IFluidStack) {
  23. val mat = mods.contenttweaker.tconstruct.MaterialBuilder.create(name);
  24. mat.color = color;
  25. mat.craftable = craft;
  26. mat.castable = cast;
  27. mat.representativeItem = item;
  28. mat.addItem(item);
  29. mat.liquid = fluid;
  30. mat.addHeadMaterialStats(640, 6.5, 4.5, 3);
  31. mat.addHandleMaterialStats(1, 70);
  32. mat.addExtraMaterialStats(1200);
  33. return true;
  34. } bool;
  35.  
  36. initFluid("molten_mithril", 15264503, 2200);
  37. initFluid("molten_elven_steel", 14605263, 1500);
  38. initFluid("molten_uruk_steel", 5132087, 1500);
  39. initFluid("molten_dwarven_steel", 7700868, 1500);
  40. initFluid("molten_orc_steel", 5133643, 1500);
  41. initFluid("molten_tin", 10464433, 450);
  42.  
  43. initMaterial("mithril", 15264503, false, true, <item:lotr:mithril_ingot>, <fluid:contenttweaker:molten_mithril>);
  44. initMaterial("elven_steel", 14605263, false, true, <item:lotr:elven_steel_ingot>, <fluid:contenttweaker:molten_elven_steel>);
  45. initMaterial("uruk_steel", 5132087, false, true, <item:lotr:uruk_steel_ingot>, <fluid:contenttweaker:molten_uruk_steel>);
  46. initMaterial("dwarven_steel", 7700868, false, true, <item:lotr:dwarven_steel_ingot>, <fluid:contenttweaker:molten_dwarven_steel>);
  47. initMaterial("orc_steel", 5133643, false, true, <item:lotr:orc_steel_ingot>, <fluid:contenttweaker:molten_orc_steel>);
  48. initMaterial("tin", 10464433, false, true, <item:lotr:tin_ingot>, <fluid:contenttweaker:molten_tin>);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement