MoJoCreatior

tcon_prefilledPatternChest.zs

Dec 9th, 2020 (edited)
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.07 KB | None | 0 0
  1. #modloaded tconstruct
  2. # Written by MoJoCreatior/Player_Athena using crafttweaker gui as a base
  3. #v2.0
  4.  
  5. #Filled Pattern Chest placeholder | makes reading the script much easier
  6. val patternChest = <tconstruct:tooltables:4>.withTag({
  7. inventory: {
  8. Items: [
  9. {Slot: 0 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:knife_blade"}, Damage: 0 as short},
  10. {Slot: 1 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:shard"}, Damage: 0 as short},
  11. {Slot: 2 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:axe_head"}, Damage: 0 as short},
  12. {Slot: 3 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:sign_head"}, Damage: 0 as short},
  13. {Slot: 4 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:shovel_head"}, Damage: 0 as short},
  14. {Slot: 5 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:excavator_head"}, Damage: 0 as short},
  15. {Slot: 6 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:arrow_shaft"}, Damage: 0 as short},
  16. {Slot: 7 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:pick_head"}, Damage: 0 as short},
  17. {Slot: 8 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:large_sword_blade"}, Damage: 0 as short},
  18. {Slot: 9 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:bow_string"}, Damage: 0 as short},
  19. {Slot: 10 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:scythe_head"}, Damage: 0 as short},
  20. {Slot: 11 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:arrow_head"}, Damage: 0 as short},
  21. {Slot: 12 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:pan_head"}, Damage: 0 as short},
  22. {Slot: 13 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:tough_binding"}, Damage: 0 as short},
  23. {Slot: 14 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:broad_axe_head"}, Damage: 0 as short},
  24. {Slot: 15 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:binding"}, Damage: 0 as short},
  25. {Slot: 16 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:fletching"}, Damage: 0 as short},
  26. {Slot: 17 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:sharpening_kit"}, Damage: 0 as short},
  27. {Slot: 18 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:cross_guard"}, Damage: 0 as short},
  28. {Slot: 19 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:large_plate"}, Damage: 0 as short},
  29. {Slot: 20 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:kama_head"}, Damage: 0 as short},
  30. {Slot: 21 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:wide_guard"}, Damage: 0 as short},
  31. {Slot: 22 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:tool_rod"}, Damage: 0 as short},
  32. {Slot: 23 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:hand_guard"}, Damage: 0 as short},
  33. {Slot: 24 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:hammer_head"}, Damage: 0 as short},
  34. {Slot: 25 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:tough_tool_rod"}, Damage: 0 as short},
  35. {Slot: 26 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:sword_blade"}, Damage: 0 as short},
  36. {Slot: 27 as byte, id: "tconstruct:pattern", Count: 1 as byte, tag: {PartType: "tconstruct:bow_limb"}, Damage: 0 as short}
  37. ]
  38. }
  39. });
  40.  
  41. #Filled Casting Chest placeholder | makes reading the script much easier
  42. val castingChest = <tconstruct:tooltables:4>.withTag({
  43. inventory: {
  44. Items: [
  45. {Slot: 0 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:knife_blade"}, Damage: 0 as short},
  46. {Slot: 1 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:large_plate"}, Damage: 0 as short},
  47. {Slot: 2 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:cross_guard"}, Damage: 0 as short},
  48. {Slot: 3 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:sharpening_kit"}, Damage: 0 as short},
  49. {Slot: 4 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:binding"}, Damage: 0 as short},
  50. {Slot: 5 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:broad_axe_head"}, Damage: 0 as short},
  51. {Slot: 6 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:tough_binding"}, Damage: 0 as short},
  52. {Slot: 7 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:pan_head"}, Damage: 0 as short},
  53. {Slot: 8 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:arrow_head"}, Damage: 0 as short},
  54. {Slot: 9 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:scythe_head"}, Damage: 0 as short},
  55. {Slot: 10 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:large_sword_blade"}, Damage: 0 as short},
  56. {Slot: 11 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:pick_head"}, Damage: 0 as short},
  57. {Slot: 12 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:arrow_shaft"}, Damage: 0 as short},
  58. {Slot: 13 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:excavator_head"}, Damage: 0 as short},
  59. {Slot: 14 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:shovel_head"}, Damage: 0 as short},
  60. {Slot: 15 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:sign_head"}, Damage: 0 as short},
  61. {Slot: 16 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:axe_head"}, Damage: 0 as short},
  62. {Slot: 17 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:shard"}, Damage: 0 as short},
  63. {Slot: 18 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:bow_limb"}, Damage: 0 as short},
  64. {Slot: 19 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:sword_blade"}, Damage: 0 as short},
  65. {Slot: 20 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:tough_tool_rod"}, Damage: 0 as short},
  66. {Slot: 21 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:hammer_head"}, Damage: 0 as short},
  67. {Slot: 22 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:hand_guard"}, Damage: 0 as short},
  68. {Slot: 23 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:kama_head"}, Damage: 0 as short},
  69. {Slot: 24 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:wide_guard"}, Damage: 0 as short},
  70. {Slot: 25 as byte, id: "tconstruct:cast", Count: 1 as byte, tag: {PartType: "tconstruct:tool_rod"}, Damage: 0 as short},
  71. {Slot: 26 as byte, id: "tconstruct:cast_custom", Count: 1 as byte, Damage: 4 as short},
  72. {Slot: 27 as byte, id: "tconstruct:cast_custom", Count: 1 as byte, Damage: 3 as short},
  73. {Slot: 28 as byte, id: "tconstruct:cast_custom", Count: 1 as byte, Damage: 2 as short},
  74. {Slot: 29 as byte, id: "tconstruct:cast_custom", Count: 1 as byte, Damage: 1 as short},
  75. {Slot: 30 as byte, id: "tconstruct:cast_custom", Count: 1 as byte, Damage: 0 as short}
  76. ]
  77. }
  78. });
  79.  
  80. #Adds tooltip to the pattern chest in jei so that players will know about the pre-filled recipes whenever they look up the standard recipe.
  81. <tconstruct:tooltables:4>.addTooltip("
  82. I have extra recipes for pre-filled patterns and casts.\n
  83. Filled Pattern Chest can be made with any logs and some blank paterns\n
  84. Filled Castings Chest can be made with either gold or aluminum brass ingots and blocks."
  85. );
  86.  
  87. # Casting chest made from gold materials
  88. recipes.addShaped("preFilledCastingChest0", castingChest,
  89. [[<ore:blockGold>, <ore:ingotGold>, <ore:blockGold>]
  90. ,[<ore:blockGold>, <ore:chest>, <ore:blockGold>]
  91. ,[<ore:blockGold>, <ore:blockGold>, <ore:blockGold>]]);
  92.  
  93. # Casting chest made from aluminum brass materials
  94. recipes.addShaped("preFilledCastingChest1", castingChest,
  95. [[<ore:ingotAlubrass>, <ore:blockAlubrass>, <ore:ingotAlubrass>]
  96. ,[<ore:blockAlubrass>, <ore:chest>, <ore:blockAlubrass>]
  97. ,[<ore:ingotAlubrass>, <ore:ingotAlubrass>, <ore:ingotAlubrass>]]);
  98.  
  99. # Pattern chest made from logs and patterns
  100. recipes.addShaped("preFilledPatternChest0", patternChest,
  101. [[<ore:logWood>, <ore:pattern>, <ore:logWood>]
  102. ,[<ore:pattern>, <ore:chest>, <ore:pattern>],
  103. [<ore:logWood>, <ore:logWood>, <ore:logWood>]]);
  104.  
  105.  
Add Comment
Please, Sign In to add comment