katubug

food zs

Jan 19th, 2020
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.29 KB | None | 0 0
  1. import crafttweaker.item.IItemStack;
  2. import crafttweaker.item.IIngredient;
  3. import mods.pyrotech.Campfire;
  4. import mods.pyrotech.StoneOven;
  5.  
  6. /* -------------------------------------------------------------------------- */
  7. /* ANCHOR Food-Related Scripts */
  8. /* -------------------------------------------------------------------------- */
  9.  
  10. //NOTE Mods required for this script:
  11. //XL Food Mod
  12. //Better With Mods
  13. //Salty Mod
  14. //Project Vibrant Journeys
  15. //Pyrotech
  16.  
  17. /* ---------------------- SECTION Misc Remove and Hide ---------------------- */
  18.  
  19. //Remove Energy Drinks from XL Food Mod
  20. mods.jei.JEI.removeAndHide(<xlfoodmod:super_energy_drink>);
  21. mods.jei.JEI.removeAndHide(<xlfoodmod:deadly_energy_drink>);
  22. mods.jei.JEI.removeAndHide(<xlfoodmod:strong_energy_drink>);
  23. mods.jei.JEI.removeAndHide(<xlfoodmod:stealthy_energy_drink>);
  24. mods.jei.JEI.removeAndHide(<xlfoodmod:healthy_energy_drink>);
  25. mods.jei.JEI.removeAndHide(<xlfoodmod:speedy_energy_drink>);
  26. mods.jei.JEI.removeAndHide(<xlfoodmod:empty_can>);
  27.  
  28. //Hide XL Food Mod's Salt
  29. mods.jei.JEI.hide(<xlfoodmod:salt>);
  30.  
  31. //Hide XLFoodMod Rock Salt Ore
  32. mods.jei.JEI.hide(<xlfoodmod:rock_salt>);
  33.  
  34. //!SECTION
  35.  
  36. /* ----------------------- SECTION Recipe Alterations ----------------------- */
  37.  
  38. //Change recipes for Allium to use Onions instead (except dye)
  39. recipes.replaceAllOccurences(<minecraft:red_flower:2>, <xlfoodmod:onion>, <*>.only(function(item) {
  40. return !isNull(item) & !<minecraft:dye:13>.matches(item);
  41. }));
  42.  
  43. //Change recipe for Marshmallows to be crafting instead of smelting
  44. furnace.remove(<xlfoodmod:marshmallow>);
  45. recipes.addShapeless("marshmallow_by_crafting", <xlfoodmod:marshmallow>, [<minecraft:sugar>]);
  46.  
  47. //Remove BWM Cooked egg, replace it with XL Food Mod Fried Egg. Also remove the vanilla egg > XL Food Mod egg recipe
  48. mods.jei.JEI.removeAndHide(<betterwithmods:cooked_egg>);
  49. furnace.remove(<betterwithmods:cooked_egg>);
  50. furnace.remove(<betterwithmods:cooked_egg>, <minecraft:egg>);
  51. furnace.addRecipe(<xlfoodmod:fried_egg>, <betterwithmods:raw_egg>, 2.0);
  52.  
  53. //Remove Cookie Crafting recipe to force it to be smelting only
  54. recipes.removeByRecipeName("minecraft:cookie");
  55.  
  56. //!SECTION
  57.  
  58. /* ------------------- SECTION Ore Dictionary and Tooltips ------------------ */
  59. //Adds all salted foods to OreDict to allow for easy FoodFunk alteration
  60. var salted = [
  61. <saltmod:salt_beef_cooked>,
  62. <saltmod:salt_porkchop_cooked>,
  63. <saltmod:salt_mutton_cooked>,
  64. <saltmod:salt_potato_baked>,
  65. <saltmod:salt_chicken_cooked>,
  66. <saltmod:salt_rabbit_cooked>,
  67. <saltmod:salt_fish_cod>,
  68. <saltmod:salt_fish_cod_cooked>,
  69. <saltmod:salt_fish_salmon>,
  70. <saltmod:salt_fish_salmon_cooked>,
  71. <saltmod:salt_fish_clownfish>,
  72. <saltmod:salt_beetroot>,
  73. <saltmod:salt_bread>,
  74. <saltmod:salt_egg>,
  75. <saltmod:salt_rabbit_stew>,
  76. <saltmod:salt_mushroom_stew>,
  77. <saltmod:salt_beetroot_soup>,
  78. <saltmod:salt_vegetable_stew>,
  79. <saltmod:salt_potato_mushroom>,
  80. <saltmod:salt_fish_soup>,
  81. <saltmod:salt_fish_salmon_soup>,
  82. <saltmod:salt_beetroot_salad>,
  83. <saltmod:salt_hufc>,
  84. <saltmod:salt_dandelion_salad>,
  85. <saltmod:salt_wheat_sprouts>,
  86. <saltmod:fish_pie>,
  87. <saltmod:fish_salmon_pie>,
  88. <saltmod:mushroom_pie>,
  89. <saltmod:onion_pie>,
  90. <saltmod:potato_pie>,
  91. <xlfoodmod:chips>,
  92. <xlfoodmod:salty_chips>,
  93. <xlfoodmod:butter>,
  94. <xlfoodmod:ham>
  95. ] as IItemStack[];
  96.  
  97. for item in salted {
  98. <ore:saltedFood>.add(item);
  99. item.addTooltip(format.gold("Salted foods are preserved for longer."));
  100. }
  101.  
  102. <saltmod:salt_pinch>.addTooltip(format.gold("Adding salt to foods can protect against spoilage."));
  103.  
  104. //<betternether:stalagnate_bowl>.addTooltip(format.gold("This bowl seems to have preservative properties, but the smell it gives off is...odd."));
  105.  
  106. //!SECTION
  107.  
  108. /* --------------- SECTION Remove Unrealistic Campfire Recipes -------------- */
  109.  
  110. //Whitelisted:
  111. Campfire.whitelistSmeltingRecipes([
  112. <minecraft:cooked_chicken>,
  113. <minecraft:cooked_fish:*>,
  114. <minecraft:cooked_beef>,
  115. <minecraft:baked_potato>,
  116. <minecraft:cooked_porkchop>,
  117. <minecraft:cooked_mutton>,
  118. <minecraft:cooked_rabbit>,
  119. <betterwithmods:cooked_wolf_chop>,
  120. <betterwithmods:cooked_mystery_meat>,
  121. <betterwithmods:cooked_kebab>,
  122. <betterwithmods:cooked_bat_wing>,
  123. <pvj:cooked_squid>,
  124. <pvj:steamed_clam_meat>,
  125. <pvj:cooked_duck>,
  126. <xlfoodmod:roasted_marshmallow>,
  127. <xlfoodmod:flesh>,
  128. <xlfoodmod:cooked_chicken_wing>,
  129. <xlfoodmod:corn>,
  130. <xlfoodmod:fried_egg>,
  131. <pyrotech:apple_baked>,
  132. <pyrotech:carrot_roasted>,
  133. <pyrotech:mushroom_brown_roasted>,
  134. <pyrotech:mushroom_red_roasted>,
  135. <pyrotech:beetroot_roasted>,
  136. <pyrotech:book>
  137. ]);
  138.  
  139. //Cake Batter - Add to Stone/Refractory Oven
  140. StoneOven.addRecipe("pyrotech_oven_cake", <minecraft:cake>, <betterwithmods:raw_pastry>, true);
  141.  
  142. //Makes some changes involving ground beef
  143. //REVIEW Katu do you wanna make the xlfoodmod version more expensive, or?
  144. <ore:foodGroundbeef>.add(<mod_lavacow:mousse>);
  145. recipes.replaceAllOccurences(<xlfoodmod:ground_beef>, <ore:foodGroundbeef>);
  146.  
  147. //Makes Spaghetti use Meatballs instead of Ground Beef
  148. recipes.remove(<xlfoodmod:spaghetti>);
  149. recipes.addShaped("spaghet", <xlfoodmod:spaghetti>, [[null, <mod_lavacow:meatball>, null],[<xlfoodmod:cooked_dough>, <xlfoodmod:tomato_sauce>, <xlfoodmod:cooked_dough>], [null, <xlfoodmod:bowl>, null]]);
  150.  
  151. //TODO
  152. /*
  153. List of recipes to add salt to (don't forget to add them to the oredict tag as well!):
  154. <xlfoodmod:cheese>,
  155. <xlfoodmod:bacon>,
  156. <xlfoodmod:bucket_of_fried_chicken>,
  157. <xlfoodmod:chicken_salad>,
  158. <xlfoodmod:cucumber_soup>,
  159. <xlfoodmod:tomato_soup>,
  160. <xlfoodmod:vegetable_soup>,
  161. <xlfoodmod:chicken_soup>,
  162. <xlfoodmod:beef_stew>,
  163. <xlfoodmod:pumpkin_stew>,
  164. <xlfoodmod:cheese_pie>,
  165. <xlfoodmod:chicken_pot_pie>,
  166. <xlfoodmod:bacon_pie>,
  167. <xlfoodmod:fish_pie>
  168. */
  169.  
  170. /* TODO
  171. Removing food values from items that shouldn't be directly edible/shouldn't have hunger/saturation values
  172. Don't forget to exempt them from spoilage
  173.  
  174. val nonFood = [
  175. <betterwithmods:raw_pastry:3>,
  176. <betterwithmods:material:44>,
  177. <minecraft:pumpkin_seeds>,
  178. <pvj:coconut_milk>,
  179. <simplytea:cup_tea_black>,
  180. <simplytea:cup_tea_green>,
  181. <simplytea:cup_tea_floral>,
  182. <simplytea:cup_tea_chai>,
  183. <simplytea:cup_tea_chorus>,
  184. <simplytea:cup_cocoa>,
  185. <xlfoodmod:butter>,
  186. <xlfoodmod:dough>,
  187. <xlfoodmod:top_bun>,
  188. <xlfoodmod:bottom_bun>,
  189. <xlfoodmod:tortilla>,
  190. <xlfoodmod:icecream_cone>,
  191. <xlfoodmod:beer>,
  192. <xlfoodmod:coffee>,
  193. <xlfoodmod:cappuccino>,
  194. <saltmod:saltwort_seed>
  195. ] as IItemStack[];
  196. */
  197.  
  198. //Fixes Cappuccino's recipe
  199. recipes.remove(<xlfoodmod:cappuccino>);
  200. recipes.addShapeless(<xlfoodmod:cappuccino>, [<ore:foodMilk>, <xlfoodmod:coffee>]);
  201.  
  202. var milks = [
  203. <pvj:coconut_milk>,
  204. <minecraft:milk_bucket>,
  205. <saltmod:powdered_milk>,
  206. <simplytea:teapot:2>,
  207. <simplytea:frothed_teapot:4>
  208. ] as IItemStack[];
  209.  
  210. for milk in milks {
  211. <ore:foodMilk>.add(milk);
  212. }
  213.  
  214. //Foods to be Salted REVIEW
  215.  
  216. var saltables = [
  217. <betterwithmods:chicken_soup>,
  218. <betterwithmods:chowder>,
  219. <betterwithmods:hearty_stew>,
  220. <betterwithmods:cooked_wolf_chop>,
  221. <betterwithmods:cooked_mystery_meat>,
  222. <mod_lavacow:parasite_item_cooked>,
  223. <mod_lavacow:piranha_cooked>,
  224. <mod_lavacow:cheirolepis_cooked>,
  225. <mod_lavacow:mimic_claw_cooked>,
  226. <mod_lavacow:ptera_wing_cooked>,
  227. <mod_lavacow:zombiepiranha_item_cooked>,
  228. <mist:sponge_meat>,
  229. <mysticalwildlife:vrontausaurus_meat_cooked>,
  230. <mysticalwildlife:yaga_hog_meat_cooked>,
  231. <mysticalwildlife:dusk_lurker_meat_cooked>,
  232. <mysticalwildlife:cicaptera_meat_cooked>,
  233. <mysticalwildlife:plumper_meat_cooked>,
  234. <mysticalwildlife:krill_meat_cooked>,
  235. <netherex:ghast_meat_cooked>,
  236. <pvj:cooked_squid>,
  237. <pvj:cooked_duck>,
  238. <pvj:steamed_clam_meat>,
  239. <pvj:clam_chowder>,
  240. <quark:cooked_crab_leg>,
  241. <pyrotech:egg_roasted>,
  242. <pyrotech:beetroot_roasted>,
  243. <pyrotech:carrot_roasted>,
  244. <xlfoodmod:flesh>,
  245. <xlfoodmod:cooked_chicken_wing>,
  246. <xlfoodmod:cucumber_soup>,
  247. <xlfoodmod:tomato_soup>,
  248. <xlfoodmod:vegetable_soup>,
  249. <xlfoodmod:chicken_soup>,
  250. <xlfoodmod:beef_stew>
  251. ] as IItemStack[];
  252. /*
  253. var saltedFood = [
  254. <contenttweaker:salt_chicken_soup>,
  255. <contenttweaker:salt_chowder>,
  256. <contenttweaker:salt_hearty_stew>,
  257. <contenttweaker:salt_cooked_wolf_chop>,
  258. <contenttweaker:salt_cooked_mystery_meat>,
  259. <contenttweaker:salt_parasite_item_cooked>,
  260. <contenttweaker:salt_piranha_cooked>,
  261. <contenttweaker:salt_cheirolepis_cooked>,
  262. <contenttweaker:salt_mimic_claw_cooked>,
  263. <contenttweaker:salt_ptera_wing_cooked>,
  264. <contenttweaker:salt_zombiepiranha_item_cooked>,
  265. <contenttweaker:salt_sponge_meat>,
  266. <contenttweaker:salt_vrontausaurus_meat_cooked>,
  267. <contenttweaker:salt_yaga_hog_meat_cooked>,
  268. <contenttweaker:salt_dusk_lurker_meat_cooked>,
  269. <contenttweaker:salt_cicaptera_meat_cooked>,
  270. <contenttweaker:salt_plumper_meat_cooked>,
  271. <contenttweaker:salt_krill_meat_cooked>,
  272. <contenttweaker:salt_ghast_meat_cooked>,
  273. <contenttweaker:salt_cooked_squid>,
  274. <contenttweaker:salt_cooked_duck>,
  275. <contenttweaker:salt_steamed_clam_meat>,
  276. <contenttweaker:salt_clam_chowder>,
  277. <contenttweaker:salt_cooked_crab_leg>,
  278. <contenttweaker:salt_egg_roasted>,
  279. <contenttweaker:salt_beetroot_roasted>,
  280. <contenttweaker:salt_carrot_roasted>,
  281. <contenttweaker:salt_flesh>,
  282. <contenttweaker:salt_cooked_chicken_wing>,
  283. <contenttweaker:salt_cucumber_soup>,
  284. <contenttweaker:salt_tomato_soup>,
  285. <contenttweaker:salt_vegetable_soup>,
  286. <contenttweaker:salt_chicken_soup>,
  287. <contenttweaker:salt_beef_stew>
  288. ] as IItemStack[];
  289. */
  290.  
  291. var saltedFood = [
  292. <betterwithmods:chicken_soup>,
  293. <betterwithmods:chowder>,
  294. <betterwithmods:hearty_stew>,
  295. <betterwithmods:cooked_wolf_chop>,
  296. <betterwithmods:cooked_mystery_meat>,
  297. <mod_lavacow:parasite_item_cooked>,
  298. <mod_lavacow:piranha_cooked>,
  299. <mod_lavacow:cheirolepis_cooked>,
  300. <mod_lavacow:mimic_claw_cooked>,
  301. <mod_lavacow:ptera_wing_cooked>,
  302. <mod_lavacow:zombiepiranha_item_cooked>,
  303. <mist:sponge_meat>,
  304. <mysticalwildlife:vrontausaurus_meat_cooked>,
  305. <mysticalwildlife:yaga_hog_meat_cooked>,
  306. <mysticalwildlife:dusk_lurker_meat_cooked>,
  307. <mysticalwildlife:cicaptera_meat_cooked>,
  308. <mysticalwildlife:plumper_meat_cooked>,
  309. <mysticalwildlife:krill_meat_cooked>,
  310. <netherex:ghast_meat_cooked>,
  311. <pvj:cooked_squid>,
  312. <pvj:cooked_duck>,
  313. <pvj:steamed_clam_meat>,
  314. <pvj:clam_chowder>,
  315. <quark:cooked_crab_leg>,
  316. <pyrotech:egg_roasted>,
  317. <pyrotech:beetroot_roasted>,
  318. <pyrotech:carrot_roasted>,
  319. <xlfoodmod:flesh>,
  320. <xlfoodmod:cooked_chicken_wing>,
  321. <xlfoodmod:cucumber_soup>,
  322. <xlfoodmod:tomato_soup>,
  323. <xlfoodmod:vegetable_soup>,
  324. <xlfoodmod:chicken_soup>,
  325. <xlfoodmod:beef_stew>
  326. ] as IItemStack[];
  327.  
  328. for i, saltedo in saltedFood {
  329. recipes.addShapeless(saltables[i].displayName.replace(" ", "_"), saltedo[i], [<saltmod:salt_pinch>, saltables[i]]);
  330. }
  331.  
  332. //Note: Permission pending for Pyrotech, Misty World, Salty Mod. Everything else is fine.
Advertisement
Add Comment
Please, Sign In to add comment