Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #loader contenttweaker
- //================
- //Imports
- //================
- import mods.contenttweaker.Color;
- import mods.contenttweaker.Material;
- import mods.contenttweaker.MaterialBuilder;
- import mods.contenttweaker.MaterialPart;
- import mods.contenttweaker.MaterialSystem;
- import mods.contenttweaker.Part;
- //================
- //Part Creation
- //================
- var partNameList = ["billet","large_plate","lumber","sheet","stick"] as string[];
- for newPart in partNameList{
- mods.contenttweaker.MaterialSystem.getPartBuilder().setName(newPart).setPartType(MaterialSystem.getPartType("item")).build();
- }
- //================
- //Variables
- //================
- //Wood Materials
- var acacia = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Acacia").setColor(11690809).build();
- var ashen = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Ashen").setColor(8026746).build();
- var birch = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Birch").setColor(13550216).build();
- var blackKauri = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Black Kauri").setColor(5981500).build();
- var blazing = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Blazing").setColor(11403569).build();
- var brazillianPine = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Brazillian Pine").setColor(12490866).build();
- var charred = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Charred").setColor(5786426).build();
- var cherry = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Cherry").setColor(8859180).build();
- var crystal = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Crystal").setColor(14082540).build();
- var darkCrystal = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Dark Crystal").setColor(7109053).build();
- var darkOak = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Dark Oak").setColor(4599062).build();
- var ebony = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Ebony").setColor(3025961).build();
- var ethereal = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Ethereal").setColor(6988419).build();
- var eucalyptus = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Eucalyptus").setColor(11638642).build();
- var fir = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Fir").setColor(10918788).build();
- var greatwood = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Greatwood").setColor(3417376).build();
- var hellbark = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Hellbark").setColor(12228193).build();
- var incenseCedar = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Incense Cedar").setColor(8673841).build();
- var ironwood = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Ironwood").setColor(11242092).build();
- var jacaranda = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Jacaranda").setColor(13744046).build();
- var jungle = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Jungle").setColor(11567456).build();
- var magic = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Magic").setColor(5404860).build();
- var mahogany = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Mahogany").setColor(13010051).build();
- var mangrove = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Mangrove").setColor(15327693).build();
- var murrayPine = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Murray Pine").setColor(5126444).build();
- var oak = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Oak").setColor(11833695).build();
- var olive = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Olive").setColor(11566654).build();
- var palm = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Palm").setColor(12880198).build();
- var pine = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Pine").setColor(11897195).build();
- var redwood = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Redwood").setColor(10835515).build();
- var sacredOak = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Sacred Oak").setColor(11833695).build();
- var silverwood = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Silverwood").setColor(14864818).build();
- var spruce = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Spruce").setColor(8018484).build();
- var umbran = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Umbran").setColor(7693190).build();
- var willow = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Willow").setColor(10332544).build();
- var treated = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Treated Wood").setColor(6371110).build();
- //Metal Materials
- var copper = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Copper").setColor(16086026).build();
- var gold = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Gold").setColor(16108124).build();
- var iron = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Iron").setColor(5922659).build();
- var lead = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Lead").setColor(2498611).build();
- var tin = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Tin").setColor(9411253).build();
- //Material Groups
- var allMetals = [copper, gold, iron, lead, tin] as Material[];
- var woodTypes = [acacia, ashen, birch, blackKauri, blazing, brazillianPine, charred, cherry, crystal, darkCrystal, darkOak, ebony, ethereal, eucalyptus, fir, greatwood, hellbark, incenseCedar, ironwood, jacaranda, jungle, magic, mahogany, mangrove, murrayPine, oak, olive, palm, pine, redwood, sacredOak, silverwood, spruce, umbran, willow, treated] as Material[];
- //Part Groups
- var allMetalParts = ["dust", "ingot", "nugget", "billet"] as string[];
- var woodParts = ["lumber", "stick"] as string[];
- //================
- //Part Registration
- //================
- //Metal Parts
- for metal in allMetals {
- metal.registerParts(allMetalParts);
- }
- for wood in woodTypes {
- wood.registerParts(woodParts);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement