Advertisement
Guest User

Untitled

a guest
Nov 9th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.30 KB | None | 0 0
  1. #loader contenttweaker
  2.  
  3. //================
  4. //Imports
  5. //================
  6.  
  7. import mods.contenttweaker.Color;
  8. import mods.contenttweaker.Material;
  9. import mods.contenttweaker.MaterialBuilder;
  10. import mods.contenttweaker.MaterialPart;
  11. import mods.contenttweaker.MaterialSystem;
  12. import mods.contenttweaker.Part;
  13.  
  14. //================
  15. //Part Creation
  16. //================
  17.  
  18. var partNameList = ["billet","large_plate","lumber","sheet","stick"] as string[];
  19.  
  20. for newPart in partNameList{
  21. mods.contenttweaker.MaterialSystem.getPartBuilder().setName(newPart).setPartType(MaterialSystem.getPartType("item")).build();
  22. }
  23.  
  24. //================
  25. //Variables
  26. //================
  27.  
  28. //Wood Materials
  29. var acacia = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Acacia").setColor(11690809).build();
  30. var ashen = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Ashen").setColor(8026746).build();
  31. var birch = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Birch").setColor(13550216).build();
  32. var blackKauri = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Black Kauri").setColor(5981500).build();
  33. var blazing = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Blazing").setColor(11403569).build();
  34. var brazillianPine = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Brazillian Pine").setColor(12490866).build();
  35. var charred = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Charred").setColor(5786426).build();
  36. var cherry = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Cherry").setColor(8859180).build();
  37. var crystal = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Crystal").setColor(14082540).build();
  38. var darkCrystal = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Dark Crystal").setColor(7109053).build();
  39. var darkOak = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Dark Oak").setColor(4599062).build();
  40. var ebony = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Ebony").setColor(3025961).build();
  41. var ethereal = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Ethereal").setColor(6988419).build();
  42. var eucalyptus = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Eucalyptus").setColor(11638642).build();
  43. var fir = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Fir").setColor(10918788).build();
  44. var greatwood = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Greatwood").setColor(3417376).build();
  45. var hellbark = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Hellbark").setColor(12228193).build();
  46. var incenseCedar = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Incense Cedar").setColor(8673841).build();
  47. var ironwood = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Ironwood").setColor(11242092).build();
  48. var jacaranda = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Jacaranda").setColor(13744046).build();
  49. var jungle = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Jungle").setColor(11567456).build();
  50. var magic = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Magic").setColor(5404860).build();
  51. var mahogany = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Mahogany").setColor(13010051).build();
  52. var mangrove = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Mangrove").setColor(15327693).build();
  53. var murrayPine = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Murray Pine").setColor(5126444).build();
  54. var oak = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Oak").setColor(11833695).build();
  55. var olive = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Olive").setColor(11566654).build();
  56. var palm = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Palm").setColor(12880198).build();
  57. var pine = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Pine").setColor(11897195).build();
  58. var redwood = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Redwood").setColor(10835515).build();
  59. var sacredOak = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Sacred Oak").setColor(11833695).build();
  60. var silverwood = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Silverwood").setColor(14864818).build();
  61. var spruce = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Spruce").setColor(8018484).build();
  62. var umbran = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Umbran").setColor(7693190).build();
  63. var willow = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Willow").setColor(10332544).build();
  64. var treated = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Treated Wood").setColor(6371110).build();
  65.  
  66. //Metal Materials
  67. var copper = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Copper").setColor(16086026).build();
  68. var gold = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Gold").setColor(16108124).build();
  69. var iron = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Iron").setColor(5922659).build();
  70. var lead = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Lead").setColor(2498611).build();
  71. var tin = mods.contenttweaker.MaterialSystem.getMaterialBuilder().setName("Tin").setColor(9411253).build();
  72.  
  73. //Material Groups
  74. var allMetals = [copper, gold, iron, lead, tin] as Material[];
  75. 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[];
  76.  
  77. //Part Groups
  78. var allMetalParts = ["dust", "ingot", "nugget", "billet"] as string[];
  79. var woodParts = ["lumber", "stick"] as string[];
  80.  
  81. //================
  82. //Part Registration
  83. //================
  84.  
  85. //Metal Parts
  86. for metal in allMetals {
  87. metal.registerParts(allMetalParts);
  88. }
  89.  
  90. for wood in woodTypes {
  91. wood.registerParts(woodParts);
  92. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement