Advertisement
NovaViper

All CraftTweaker Scripts

Jul 30th, 2018
1,714
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.17 KB | None | 0 0
  1. ###################################################### VANILLA SHAPELESS ############################################################
  2. //Nametag
  3. val woolString = <minecraft:string>;
  4. val goldNugget = <minecraft:gold_nugget>;
  5. val nametag = <minecraft:name_tag>;
  6. recipes.addShapeless("Nametag", nametag, [goldNugget, woolString]);
  7.  
  8. //Gunpowder
  9. val gunpowder = <minecraft:gunpowder>;
  10. val sugar = <minecraft:sugar>;
  11. val charcoal = <minecraft:coal:1>;
  12. recipes.addShapeless("Gunpowder", gunpowder, [sugar, charcoal]);
  13.  
  14. ###################################################### VANILLA SHAPED ############################################################
  15. //Elytra
  16. val woolString = <minecraft:string>;
  17. val paper = <minecraft:paper>;
  18. val feather = <minecraft:feather>;
  19. val diamond = <minecraft:diamond>;
  20. val leather = <minecraft:leather>;
  21. val elytra = <minecraft:elytra>;
  22. recipes.addShaped("EasyElytra", elytra, [[woolString, diamond, woolString],[paper, leather, paper],[feather, null, feather]]);
  23.  
  24.  
  25. //Poison Arrow
  26. val arrow = <minecraft:arrow>;
  27. val pufferfish = <minecraft:fish:3>;
  28. val poison_arrow = <minecraft:tipped_arrow>.withTag({Potion: "minecraft:strong_poison"});
  29. recipes.addShaped("EasyPoisonArrow", poison_arrow * 8, [[arrow, arrow, arrow],[arrow, pufferfish, arrow],[arrow, arrow, arrow]]);
  30.  
  31.  
  32. //Saddle
  33. val saddle = <minecraft:saddle>;
  34. val ironIngot = <minecraft:iron_ingot>;
  35. recipes.addShaped("Saddle", saddle, [[leather, leather, leather],[woolString, null, woolString],[ironIngot, null, ironIngot]]);
  36. recipes.addShaped("EasySaddle", saddle, [[leather, leather, leather],[leather, ironIngot, leather],[ironIngot, null, ironIngot]]);
  37.  
  38.  
  39. //Iron Horse Armor
  40. val ironHelmet = <minecraft:iron_helmet>;
  41. val ironPants = <minecraft:iron_leggings>;
  42. val ironHorseArmor = <minecraft:iron_horse_armor>;
  43. val woolBlock = <minecraft:wool>;
  44. recipes.addShaped("IronHorseArmor", ironHorseArmor, [[null, null, ironHelmet],[ironIngot, woolBlock, ironIngot],[ironPants, null, ironPants]]);
  45.  
  46. //Gold Horse Armor
  47. val goldHelmet = <minecraft:golden_helmet>;
  48. val goldPants = <minecraft:golden_leggings>;
  49. val goldIngot = <minecraft:gold_ingot>;
  50. val goldHorseArmor = <minecraft:golden_horse_armor>;
  51. recipes.addShaped("GoldHorseArmor", goldHorseArmor, [[null, null, goldHelmet],[goldIngot, woolBlock, goldIngot],[goldPants, null, goldPants]]);
  52.  
  53. //Diamond Horse Armor
  54. val diamondHelmet = <minecraft:diamond_helmet>;
  55. val diamondPants = <minecraft:diamond_leggings>;
  56. val diamondIngot = <minecraft:diamond>;
  57. val diamondHorseArmor = <minecraft:diamond_horse_armor>;
  58. recipes.addShaped("DiamondHorseArmor", diamondHorseArmor, [[null, null, diamondHelmet],[diamondIngot, woolBlock, diamondIngot],[diamondPants, null, diamondPants]]);
  59.  
  60.  
  61. //Lead
  62. val lead = <minecraft:lead>;
  63. recipes.addShaped("EasyLead", lead, [[leather, leather, null],[woolString, woolString, null],[null, null, null]]);
  64.  
  65. ###################################################### VANILLA SMELTING ############################################################
  66. val itemDef = <minecraft:sapling>.definition;
  67.  
  68. //does this for all saplings
  69. for i in 0 to 6 {
  70. furnace.addRecipe(<minecraft:deadbush>, itemDef.makeStack(i));
  71. }
  72.  
  73. furnace.addRecipe(<minecraft:coal:1>, <minecraft:rotten_flesh>);
  74.  
  75. ##################################################### DOGGYTALENTS REMOVED ###########################################################
  76. recipes.remove(<doggytalents:training_treat>);
  77. recipes.remove(<doggytalents:super_treat>);
  78. recipes.remove(<doggytalents:master_treat>);
  79. recipes.remove(<doggytalents:dire_treat>);
  80. recipes.remove(<doggytalents:breeding_bone>);
  81.  
  82. ##################################################### DOGGYTALENTS SHAPED ###########################################################
  83. //Training Treat
  84. val wheat = <minecraft:wheat>;
  85. val bone = <minecraft:bone>;
  86. val new_training_treat = <doggytalents:training_treat>;
  87. recipes.addShaped("EasyTrainingTreat", new_training_treat * 6, [[null, wheat, null],[wheat, bone, wheat],[null, wheat, null]]);
  88.  
  89. //Super Treat
  90. val gold = <minecraft:gold_ingot>;
  91. val old_training_treat = <doggytalents:training_treat>;
  92. val new_super_treat = <doggytalents:super_treat>;
  93. recipes.addShaped("EasySuperTreat", new_super_treat * 5, [[null, gold, null],[gold, old_training_treat, gold],[null, gold, null]]);
  94.  
  95. //Master Treat
  96. val diamond = <minecraft:diamond>;
  97. val old_super_treat = <doggytalents:super_treat>;
  98. val new_master_treat = <doggytalents:master_treat>;
  99. recipes.addShaped("EasyMasterTreat", new_master_treat * 5, [[null, diamond, null],[diamond, old_super_treat, diamond],[null, diamond, null]]);
  100.  
  101. //Dire Treat
  102. val obsidian = <minecraft:obsidian>;
  103. val old_master_treat = <doggytalents:master_treat>;
  104. val new_dire_treat = <doggytalents:dire_treat>;
  105. recipes.addShaped("EasyDireTreat", new_dire_treat * 2, [[null, obsidian, null],[obsidian, old_master_treat, obsidian],[null, obsidian, null]]);
  106.  
  107. //Breeding Bone
  108. val bone_material = <minecraft:bone>;
  109. val wheat_old = <minecraft:wheat>;
  110. val breeding_bone = <doggytalents:breeding_bone>;
  111. recipes.addShaped("EasyBreedingBone", breeding_bone * 2, [[null, bone_material, null],[bone_material, wheat_old, bone_material],[null, bone_material, null]]);
  112.  
  113. ##################################################### BACKPACKS! REMOVE ###########################################################
  114. val itemDef = <backpacks16840:backpack>.definition;
  115.  
  116. //does this for all backpacks
  117. for i in 0 to 16 {
  118. recipes.remove(itemDef.makeStack(i));
  119. }
  120.  
  121. ##################################################### BACKPACKS! SHAPED ###########################################################
  122. import crafttweaker.item.IItemStack;
  123.  
  124. //Not working
  125. /*
  126. val backpackMaterialMap as IItemStack[] = {
  127. 0 : <minecraft:dye:0>,
  128. 1 : <minecraft:dye:1>,
  129. 2 : <minecraft:dye:2>,
  130. 3 : 0,
  131. 4 : <minecraft:dye:4>,
  132. 5 : <minecraft:dye:5>,
  133. 6 : <minecraft:dye:6>,
  134. 7 : <minecraft:dye:7>,
  135. 8 : <minecraft:dye:8>,
  136. 9 : <minecraft:dye:9>,
  137. 10 : <minecraft:dye:10>,
  138. 11 : <minecraft:dye:11>,
  139. 12 : <minecraft:dye:12>,
  140. 13 : <minecraft:dye:13>,
  141. 14 : <minecraft:dye:14>,
  142. 15 : <minecraft:dye:15>
  143. };
  144.  
  145.  
  146. for i in 0 to 16 {
  147. print(backpackMaterialMap[i]);
  148. }
  149. */
  150.  
  151. val backpackMaterialArray as IItemStack[] = [
  152. <minecraft:dye:0>, <minecraft:dye:1>, <minecraft:dye:2>, null, <minecraft:dye:4>, <minecraft:dye:5>,
  153. <minecraft:dye:6>, <minecraft:dye:7>, <minecraft:dye:8>, <minecraft:dye:9>, <minecraft:dye:10>,
  154. <minecraft:dye:11>, <minecraft:dye:12>, <minecraft:dye:13>, <minecraft:dye:14>, <minecraft:dye:15>
  155. ];
  156.  
  157. val backpackMaterialNameArray as string[] = [
  158. "Black", "Red", "Green", "Default", "Blue", "Purple",
  159. "Cyan", "Silver", "Gray", "Pink", "LimeGreen",
  160. "Yellow", "LightBlue", "Magenta", "Orange", "White"
  161. ];
  162.  
  163. //careful, prone to IndexOutOfBounds Exceptions, something maps don't have
  164. for i in 0 to 16 {
  165. val backpackMaterial = backpackMaterialArray[i];
  166. val backpackDef = <backpacks16840:backpack>.definition;
  167. val backpackName = "EasyBackpack" + backpackMaterialNameArray[i];
  168. val leather = <minecraft:leather>;
  169. val wool = <minecraft:wool>;
  170.  
  171. recipes.addShaped(backpackName, backpackDef.makeStack(i), [[leather, backpackMaterial, leather],[leather, wool, leather],[leather, leather, leather]]);
  172. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement