Update hbhunger (1.1.0)
[minetest_hades/hades_revisited.git] / mods / hbhunger / register_foods.lua
blobe43c3a6d9bfc0e5c8c653fb181b572cdcd08f987
1 if minetest.get_modpath("default") ~= nil then
2 hbhunger.register_food("default:apple", 2)
3 hbhunger.register_food("default:blueberries", 2)
4 end
5 if minetest.get_modpath("flowers") ~= nil then
6 hbhunger.register_food("flowers:mushroom_brown", 1)
7 hbhunger.register_food("flowers:mushroom_red", 1, "", 3)
8 end
9 if minetest.get_modpath("farming") ~= nil then
10 hbhunger.register_food("farming:bread", 5)
11 end
13 if minetest.get_modpath("mobs") ~= nil then
14 if mobs.mod ~= nil and mobs.mod == "redo" then
15 hbhunger.register_food("mobs:cheese", 4)
16 hbhunger.register_food("mobs:meat", 8)
17 hbhunger.register_food("mobs:meat_raw", 4)
18 hbhunger.register_food("mobs:rat_cooked", 4)
19 hbhunger.register_food("mobs:honey", 2)
20 hbhunger.register_food("mobs:pork_raw", 3, "", 3)
21 hbhunger.register_food("mobs:pork_cooked", 8)
22 hbhunger.register_food("mobs:chicken_cooked", 6)
23 hbhunger.register_food("mobs:chicken_raw", 2, "", 3)
24 hbhunger.register_food("mobs:chicken_egg_fried", 2)
25 if minetest.get_modpath("bucket") then
26 hbhunger.register_food("mobs:bucket_milk", 3, "bucket:bucket_empty")
27 end
28 else
29 hbhunger.register_food("mobs:meat", 6)
30 hbhunger.register_food("mobs:meat_raw", 3)
31 hbhunger.register_food("mobs:rat_cooked", 5)
32 end
33 end
35 if minetest.get_modpath("moretrees") ~= nil then
36 hbhunger.register_food("moretrees:coconut_milk", 1)
37 hbhunger.register_food("moretrees:raw_coconut", 2)
38 hbhunger.register_food("moretrees:acorn_muffin", 3)
39 hbhunger.register_food("moretrees:spruce_nuts", 1)
40 hbhunger.register_food("moretrees:pine_nuts", 1)
41 hbhunger.register_food("moretrees:fir_nuts", 1)
42 end
44 if minetest.get_modpath("dwarves") ~= nil then
45 hbhunger.register_food("dwarves:beer", 2)
46 hbhunger.register_food("dwarves:apple_cider", 1)
47 hbhunger.register_food("dwarves:midus", 2)
48 hbhunger.register_food("dwarves:tequila", 2)
49 hbhunger.register_food("dwarves:tequila_with_lime", 2)
50 hbhunger.register_food("dwarves:sake", 2)
51 end
53 if minetest.get_modpath("animalmaterials") ~= nil then
54 hbhunger.register_food("animalmaterials:milk", 2)
55 hbhunger.register_food("animalmaterials:meat_raw", 3)
56 hbhunger.register_food("animalmaterials:meat_pork", 3)
57 hbhunger.register_food("animalmaterials:meat_beef", 3)
58 hbhunger.register_food("animalmaterials:meat_chicken", 3)
59 hbhunger.register_food("animalmaterials:meat_lamb", 3)
60 hbhunger.register_food("animalmaterials:meat_venison", 3)
61 hbhunger.register_food("animalmaterials:meat_undead", 3, "", 3)
62 hbhunger.register_food("animalmaterials:meat_toxic", 3, "", 5)
63 hbhunger.register_food("animalmaterials:meat_ostrich", 3)
64 hbhunger.register_food("animalmaterials:fish_bluewhite", 2)
65 hbhunger.register_food("animalmaterials:fish_clownfish", 2)
66 end
68 if minetest.get_modpath("fishing") ~= nil then
69 hbhunger.register_food("fishing:fish_raw", 2)
70 hbhunger.register_food("fishing:fish_cooked", 5)
71 hbhunger.register_food("fishing:sushi", 6)
72 hbhunger.register_food("fishing:shark", 4)
73 hbhunger.register_food("fishing:shark_cooked", 8)
74 hbhunger.register_food("fishing:pike", 4)
75 hbhunger.register_food("fishing:pike_cooked", 8)
76 end
78 if minetest.get_modpath("glooptest") ~= nil then
79 hbhunger.register_food("glooptest:kalite_lump", 1)
80 end
82 if minetest.get_modpath("bushes") ~= nil then
83 hbhunger.register_food("bushes:sugar", 1)
84 hbhunger.register_food("bushes:strawberry", 2)
85 hbhunger.register_food("bushes:berry_pie_raw", 3)
86 hbhunger.register_food("bushes:berry_pie_cooked", 4)
87 hbhunger.register_food("bushes:basket_pies", 15)
88 end
90 if minetest.get_modpath("bushes_classic") then
91 -- bushes_classic mod, as found in the plantlife modpack
92 local berries = {
93 "strawberry",
94 "blackberry",
95 "blueberry",
96 "raspberry",
97 "gooseberry",
98 "mixed_berry"}
99 for _, berry in ipairs(berries) do
100 if berry ~= "mixed_berry" then
101 hbhunger.register_food("bushes:"..berry, 1)
103 hbhunger.register_food("bushes:"..berry.."_pie_raw", 2)
104 hbhunger.register_food("bushes:"..berry.."_pie_cooked", 5)
105 hbhunger.register_food("bushes:basket_"..berry, 15)
109 if minetest.get_modpath("mushroom") ~= nil then
110 hbhunger.register_food("mushroom:brown", 1)
111 hbhunger.register_food("mushroom:red", 1, "", 3)
112 -- mushroom potions: red = strong poison, brown = light restorative
113 if minetest.get_modpath("vessels") then
114 hbhunger.register_food("mushroom:brown_essence", 1, "vessels:glass_bottle", nil, 4)
115 hbhunger.register_food("mushroom:poison", 1, "vessels:glass_bottle", 10)
119 if minetest.get_modpath("docfarming") ~= nil then
120 hbhunger.register_food("docfarming:carrot", 3)
121 hbhunger.register_food("docfarming:cucumber", 2)
122 hbhunger.register_food("docfarming:corn", 3)
123 hbhunger.register_food("docfarming:potato", 4)
124 hbhunger.register_food("docfarming:bakedpotato", 5)
125 hbhunger.register_food("docfarming:raspberry", 3)
128 if minetest.get_modpath("farming_plus") ~= nil then
129 hbhunger.register_food("farming_plus:carrot_item", 3)
130 hbhunger.register_food("farming_plus:banana", 2)
131 hbhunger.register_food("farming_plus:orange_item", 2)
132 hbhunger.register_food("farming:pumpkin_bread", 4)
133 hbhunger.register_food("farming_plus:strawberry_item", 2)
134 hbhunger.register_food("farming_plus:tomato_item", 2)
135 hbhunger.register_food("farming_plus:potato_item", 4)
136 hbhunger.register_food("farming_plus:rhubarb_item", 2)
139 if minetest.get_modpath("mtfoods") ~= nil then
140 hbhunger.register_food("mtfoods:dandelion_milk", 1)
141 hbhunger.register_food("mtfoods:sugar", 1)
142 hbhunger.register_food("mtfoods:short_bread", 4)
143 hbhunger.register_food("mtfoods:cream", 1)
144 hbhunger.register_food("mtfoods:chocolate", 2)
145 hbhunger.register_food("mtfoods:cupcake", 2)
146 hbhunger.register_food("mtfoods:strawberry_shortcake", 2)
147 hbhunger.register_food("mtfoods:cake", 3)
148 hbhunger.register_food("mtfoods:chocolate_cake", 3)
149 hbhunger.register_food("mtfoods:carrot_cake", 3)
150 hbhunger.register_food("mtfoods:pie_crust", 3)
151 hbhunger.register_food("mtfoods:apple_pie", 3)
152 hbhunger.register_food("mtfoods:rhubarb_pie", 2)
153 hbhunger.register_food("mtfoods:banana_pie", 3)
154 hbhunger.register_food("mtfoods:pumpkin_pie", 3)
155 hbhunger.register_food("mtfoods:cookies", 2)
156 hbhunger.register_food("mtfoods:mlt_burger", 5)
157 hbhunger.register_food("mtfoods:potato_slices", 2)
158 hbhunger.register_food("mtfoods:potato_chips", 3)
159 --mtfoods:medicine
160 hbhunger.register_food("mtfoods:casserole", 3)
161 hbhunger.register_food("mtfoods:glass_flute", 2)
162 hbhunger.register_food("mtfoods:orange_juice", 2)
163 hbhunger.register_food("mtfoods:apple_juice", 2)
164 hbhunger.register_food("mtfoods:apple_cider", 2)
165 hbhunger.register_food("mtfoods:cider_rack", 2)
168 if minetest.get_modpath("fruit") ~= nil then
169 hbhunger.register_food("fruit:apple", 2)
170 hbhunger.register_food("fruit:pear", 2)
171 hbhunger.register_food("fruit:bananna", 3)
172 hbhunger.register_food("fruit:orange", 2)
175 if minetest.get_modpath("mush45") ~= nil then
176 hbhunger.register_food("mush45:meal", 4)
179 if minetest.get_modpath("seaplants") ~= nil then
180 hbhunger.register_food("seaplants:kelpgreen", 1)
181 hbhunger.register_food("seaplants:kelpbrown", 1)
182 hbhunger.register_food("seaplants:seagrassgreen", 1)
183 hbhunger.register_food("seaplants:seagrassred", 1)
184 hbhunger.register_food("seaplants:seasaladmix", 6)
185 hbhunger.register_food("seaplants:kelpgreensalad", 1)
186 hbhunger.register_food("seaplants:kelpbrownsalad", 1)
187 hbhunger.register_food("seaplants:seagrassgreensalad", 1)
188 hbhunger.register_food("seaplants:seagrassgreensalad", 1)
191 if minetest.get_modpath("mobfcooking") ~= nil then
192 hbhunger.register_food("mobfcooking:cooked_pork", 6)
193 hbhunger.register_food("mobfcooking:cooked_ostrich", 6)
194 hbhunger.register_food("mobfcooking:cooked_beef", 6)
195 hbhunger.register_food("mobfcooking:cooked_chicken", 6)
196 hbhunger.register_food("mobfcooking:cooked_lamb", 6)
197 hbhunger.register_food("mobfcooking:cooked_venison", 6)
198 hbhunger.register_food("mobfcooking:cooked_fish", 6)
201 if minetest.get_modpath("creatures") ~= nil then
202 hbhunger.register_food("creatures:meat", 6)
203 hbhunger.register_food("creatures:flesh", 3)
204 hbhunger.register_food("creatures:rotten_flesh", 3, "", 3)
207 if minetest.get_modpath("ethereal") then
208 hbhunger.register_food("ethereal:strawberry", 1)
209 hbhunger.register_food("ethereal:banana", 4)
210 hbhunger.register_food("ethereal:pine_nuts", 1)
211 hbhunger.register_food("ethereal:bamboo_sprout", 0, "", 3)
212 hbhunger.register_food("ethereal:fern_tubers", 1)
213 hbhunger.register_food("ethereal:banana_bread", 7)
214 hbhunger.register_food("ethereal:mushroom_plant", 2)
215 hbhunger.register_food("ethereal:coconut_slice", 2)
216 hbhunger.register_food("ethereal:golden_apple", 4, "", nil, 10)
217 hbhunger.register_food("ethereal:wild_onion_plant", 2)
218 hbhunger.register_food("ethereal:mushroom_soup", 4, "ethereal:bowl")
219 hbhunger.register_food("ethereal:mushroom_soup_cooked", 6, "ethereal:bowl")
220 hbhunger.register_food("ethereal:hearty_stew", 6, "ethereal:bowl", 3)
221 hbhunger.register_food("ethereal:hearty_stew_cooked", 10, "ethereal:bowl")
222 if minetest.get_modpath("bucket") then
223 hbhunger.register_food("ethereal:bucket_cactus", 2, "bucket:bucket_empty")
225 hbhunger.register_food("ethereal:fish_raw", 2)
226 hbhunger.register_food("ethereal:fish_cooked", 5)
227 hbhunger.register_food("ethereal:seaweed", 1)
228 hbhunger.register_food("ethereal:yellowleaves", 1, "", nil, 1)
229 hbhunger.register_food("ethereal:sashimi", 4)
230 hbhunger.register_food("ethereal:orange", 2)
233 if minetest.get_modpath("farming") and farming.mod == "redo" then
234 hbhunger.register_food("farming:bread", 6)
235 hbhunger.register_food("farming:potato", 1)
236 hbhunger.register_food("farming:baked_potato", 6)
237 hbhunger.register_food("farming:cucumber", 4)
238 hbhunger.register_food("farming:tomato", 4)
239 hbhunger.register_food("farming:carrot", 3)
240 hbhunger.register_food("farming:carrot_gold", 6, "", nil, 8)
241 hbhunger.register_food("farming:corn", 3)
242 hbhunger.register_food("farming:corn_cob", 5)
243 hbhunger.register_food("farming:melon_slice", 2)
244 hbhunger.register_food("farming:pumpkin_slice", 1)
245 hbhunger.register_food("farming:pumpkin_bread", 9)
246 hbhunger.register_food("farming:coffee_cup", 2, "farming:drinking_cup")
247 hbhunger.register_food("farming:coffee_cup_hot", 3, "farming:drinking_cup", nil, 2)
248 hbhunger.register_food("farming:cookie", 2)
249 hbhunger.register_food("farming:chocolate_dark", 3)
250 hbhunger.register_food("farming:donut", 4)
251 hbhunger.register_food("farming:donut_chocolate", 6)
252 hbhunger.register_food("farming:donut_apple", 6)
253 hbhunger.register_food("farming:raspberries", 1)
254 hbhunger.register_food("farming:blueberries", 1)
255 hbhunger.register_food("farming:muffin_blueberry", 4)
256 if minetest.get_modpath("vessels") then
257 hbhunger.register_food("farming:smoothie_raspberry", 2, "vessels:drinking_glass")
259 hbhunger.register_food("farming:rhubarb", 1)
260 hbhunger.register_food("farming:rhubarb_pie", 6)
261 hbhunger.register_food("farming:beans", 1)
264 if minetest.get_modpath("kpgmobs") ~= nil then
265 hbhunger.register_food("kpgmobs:uley", 3)
266 hbhunger.register_food("kpgmobs:meat", 6)
267 hbhunger.register_food("kpgmobs:rat_cooked", 5)
268 hbhunger.register_food("kpgmobs:med_cooked", 4)
269 if minetest.get_modpath("bucket") then
270 hbhunger.register_food("kpgmobs:bucket_milk", 4, "bucket:bucket_empty")
274 if minetest.get_modpath("jkfarming") ~= nil then
275 hbhunger.register_food("jkfarming:carrot", 3)
276 hbhunger.register_food("jkfarming:corn", 3)
277 hbhunger.register_food("jkfarming:melon_part", 2)
278 hbhunger.register_food("jkfarming:cake", 3)
281 if minetest.get_modpath("jkanimals") ~= nil then
282 hbhunger.register_food("jkanimals:meat", 6)
285 if minetest.get_modpath("jkwine") ~= nil then
286 hbhunger.register_food("jkwine:grapes", 2)
287 hbhunger.register_food("jkwine:winebottle", 1)
290 if minetest.get_modpath("cooking") ~= nil then
291 hbhunger.register_food("cooking:meat_beef_cooked", 4)
292 hbhunger.register_food("cooking:fish_bluewhite_cooked", 3)
293 hbhunger.register_food("cooking:fish_clownfish_cooked", 1)
294 hbhunger.register_food("cooking:meat_chicken_cooked", 2)
295 hbhunger.register_food("cooking:meat_cooked", 2)
296 hbhunger.register_food("cooking:meat_pork_cooked", 3)
297 hbhunger.register_food("cooking:meat_toxic_cooked", -3)
298 hbhunger.register_food("cooking:meat_venison_cooked", 3)
299 hbhunger.register_food("cooking:meat_undead_cooked", 1)
302 -- ferns mod of plantlife_modpack
303 if minetest.get_modpath("ferns") ~= nil then
304 hbhunger.register_food("ferns:fiddlehead", 1, "", 1)
305 hbhunger.register_food("ferns:fiddlehead_roasted", 3)
306 hbhunger.register_food("ferns:ferntuber_roasted", 3)
307 hbhunger.register_food("ferns:horsetail_01", 1)
310 if minetest.get_modpath("pizza") ~= nil then
311 hbhunger.register_food("pizza:pizza", 30, "", nil, 30)
312 hbhunger.register_food("pizza:pizzaslice", 5, "", nil, 5)
315 if minetest.get_modpath("nssm") then
316 hbhunger.register_food("nssm:werewolf_leg", 3)
317 hbhunger.register_food("nssm:heron_leg", 2)
318 hbhunger.register_food("nssm:chichibios_heron_leg", 4)
319 hbhunger.register_food("nssm:crocodile_tail", 3)
320 hbhunger.register_food("nssm:duck_legs", 1)
321 hbhunger.register_food("nssm:ant_leg", 1)
322 hbhunger.register_food("nssm:spider_leg", 1)
323 hbhunger.register_food("nssm:tentacle", 2)
324 hbhunger.register_food("nssm:worm_flesh", 2, "", 2) -- poisonous
325 hbhunger.register_food("nssm:amphibian_heart", 1)
326 hbhunger.register_food("nssm:raw_scrausics_wing", 1)
327 -- superfoods
328 hbhunger.register_food("nssm:phoenix_nuggets", 20, "", nil, 20)
329 hbhunger.register_food("nssm:phoenix_tear", 20, "", nil, 20)