food.lua 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865
  1. local S = farming.translate
  2. local a = farming.recipe_items
  3. -- sliced bread
  4. minetest.register_craftitem("farming:bread_slice", {
  5. description = S("Sliced Bread"),
  6. inventory_image = "farming_bread_slice.png",
  7. on_use = minetest.item_eat(1),
  8. groups = {food_bread_slice = 1, flammable = 2, compostability = 65}
  9. })
  10. minetest.register_craft({
  11. output = "farming:bread_slice 5",
  12. recipe = {{"group:food_bread", a.cutting_board}},
  13. replacements = {{"group:food_cutting_board", "farming:cutting_board"}}
  14. })
  15. -- toast
  16. minetest.register_craftitem("farming:toast", {
  17. description = S("Toast"),
  18. inventory_image = "farming_toast.png",
  19. on_use = minetest.item_eat(1),
  20. groups = {food_toast = 1, flammable = 2, compostability = 65}
  21. })
  22. minetest.register_craft({
  23. type = "cooking",
  24. cooktime = 3,
  25. output = "farming:toast",
  26. recipe = "farming:bread_slice"
  27. })
  28. -- toast sandwich
  29. minetest.register_craftitem("farming:toast_sandwich", {
  30. description = S("Toast Sandwich"),
  31. inventory_image = "farming_toast_sandwich.png",
  32. on_use = minetest.item_eat(4),
  33. groups = {flammable = 2, compostability = 85}
  34. })
  35. minetest.register_craft({
  36. output = "farming:toast_sandwich",
  37. recipe = {
  38. {"farming:bread_slice"},
  39. {"farming:toast"},
  40. {"farming:bread_slice"}
  41. }
  42. })
  43. -- filter sea water into river water
  44. minetest.register_craft({
  45. output = a.bucket_river_water,
  46. recipe = {
  47. {"farming:hemp_fibre"},
  48. {"farming:hemp_fibre"},
  49. {a.bucket_water}
  50. }
  51. })
  52. if farming.mcl then
  53. minetest.register_craft({
  54. output = "mcl_potions:river_water",
  55. recipe = {
  56. {"farming:hemp_fibre"},
  57. {"mcl_potions:water"}
  58. }
  59. })
  60. end
  61. -- glass of water
  62. minetest.register_craftitem("farming:glass_water", {
  63. description = S("Glass of Water"),
  64. inventory_image = "farming_water_glass.png",
  65. groups = {food_glass_water = 1, flammable = 3, vessel = 1}
  66. })
  67. minetest.register_craft({
  68. output = "farming:glass_water 4",
  69. recipe = {
  70. {a.drinking_glass, a.drinking_glass},
  71. {a.drinking_glass, a.drinking_glass},
  72. {a.bucket_river_water, ""}
  73. },
  74. replacements = {{a.bucket_river_water, a.bucket_empty}}
  75. })
  76. minetest.register_craft({
  77. output = "farming:glass_water 4",
  78. recipe = {
  79. {a.drinking_glass, a.drinking_glass},
  80. {a.drinking_glass, a.drinking_glass},
  81. {a.bucket_water, "farming:hemp_fibre"}
  82. },
  83. replacements = {{a.bucket_water, a.bucket_empty}}
  84. })
  85. if minetest.get_modpath("bucket_wooden") then
  86. minetest.register_craft({
  87. output = "farming:glass_water 4",
  88. recipe = {
  89. {a.drinking_glass, a.drinking_glass},
  90. {a.drinking_glass, a.drinking_glass},
  91. {"group:water_bucket_wooden", "farming:hemp_fibre"}
  92. },
  93. replacements = {{"group:water_bucket_wooden", "bucket_wooden:bucket_empty"}}
  94. })
  95. end
  96. -- Sugar
  97. if not farming.mcl then
  98. minetest.register_craftitem("farming:sugar", {
  99. description = S("Sugar"),
  100. inventory_image = "farming_sugar.png",
  101. groups = {food_sugar = 1, flammable = 3}
  102. })
  103. minetest.register_craft({
  104. type = "cooking",
  105. cooktime = 3,
  106. output = "farming:sugar 2",
  107. recipe = "default:papyrus"
  108. })
  109. end
  110. minetest.register_node("farming:sugar_cube", {
  111. description = S("Sugar Cube"),
  112. tiles = {"farming_sugar_cube.png"},
  113. groups = {shovely = 1, handy = 1, crumbly = 2},
  114. floodable = true,
  115. sounds = farming.sounds.node_sound_gravel_defaults(),
  116. _mcl_hardness = 0.8,
  117. _mcl_blast_resistance = 1
  118. })
  119. minetest.register_craft({
  120. output = "farming:sugar_cube",
  121. recipe = {
  122. {a.sugar, a.sugar, a.sugar},
  123. {a.sugar, a.sugar, a.sugar},
  124. {a.sugar, a.sugar, a.sugar}
  125. }
  126. })
  127. minetest.register_craft({
  128. output = a.sugar .. " 9",
  129. recipe = {{"farming:sugar_cube"}}
  130. })
  131. -- Sugar caramel
  132. minetest.register_craftitem("farming:caramel", {
  133. description = S("Caramel"),
  134. inventory_image = "farming_caramel.png",
  135. groups = {compostability = 40}
  136. })
  137. minetest.register_craft({
  138. type = "cooking",
  139. cooktime = 6,
  140. output = "farming:caramel",
  141. recipe = "group:food_sugar"
  142. })
  143. -- Salt
  144. minetest.register_node("farming:salt", {
  145. description = S("Salt"),
  146. inventory_image = "farming_salt.png",
  147. wield_image = "farming_salt.png",
  148. drawtype = "plantlike",
  149. visual_scale = 0.8,
  150. paramtype = "light",
  151. tiles = {"farming_salt.png"},
  152. groups = {food_salt = 1, vessel = 1, dig_immediate = 3,
  153. attached_node = 1},
  154. sounds = farming.sounds.node_sound_defaults(),
  155. selection_box = {
  156. type = "fixed",
  157. fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
  158. },
  159. -- special function to make salt crystals form inside water
  160. dropped_step = function(self, pos, dtime)
  161. self.ctimer = (self.ctimer or 0) + dtime
  162. if self.ctimer < 15.0 then return end
  163. self.ctimer = 0
  164. local needed
  165. if self.node_inside
  166. and self.node_inside.name == a.water_source then
  167. needed = 8
  168. elseif self.node_inside
  169. and self.node_inside.name == a.river_water_source then
  170. needed = 9
  171. end
  172. if not needed then return end
  173. local objs = core.get_objects_inside_radius(pos, 0.5)
  174. if not objs or #objs ~= 1 then return end
  175. local salt, ent = nil, nil
  176. for k, obj in pairs(objs) do
  177. ent = obj:get_luaentity()
  178. if ent and ent.name == "__builtin:item"
  179. and ent.itemstring == "farming:salt " .. needed then
  180. obj:remove()
  181. core.add_item(pos, "farming:salt_crystal")
  182. return false -- return with no further action
  183. end
  184. end
  185. end
  186. })
  187. minetest.register_craft({
  188. type = "cooking",
  189. cooktime = 15,
  190. output = "farming:salt",
  191. recipe = a.bucket_water,
  192. replacements = {{a.bucket_water, a.bucket_empty}}
  193. })
  194. -- Salt Crystal
  195. minetest.register_node("farming:salt_crystal", {
  196. description = S("Salt crystal"),
  197. inventory_image = "farming_salt_crystal.png",
  198. wield_image = "farming_salt_crystal.png",
  199. drawtype = "plantlike",
  200. visual_scale = 0.8,
  201. paramtype = "light",
  202. light_source = 1,
  203. tiles = {"farming_salt_crystal.png"},
  204. groups = {dig_immediate = 3, attached_node = 1},
  205. sounds = farming.sounds.node_sound_defaults(),
  206. selection_box = {
  207. type = "fixed",
  208. fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
  209. },
  210. _mcl_hardness = 0.8,
  211. _mcl_blast_resistance = 1
  212. })
  213. minetest.register_craft({
  214. output = "farming:salt 9",
  215. recipe = {
  216. {"farming:salt_crystal", a.mortar_pestle}
  217. },
  218. replacements = {{"farming:mortar_pestle", "farming:mortar_pestle"}}
  219. })
  220. minetest.register_craft({
  221. output = "farming:salt_crystal",
  222. recipe = {
  223. {"farming:salt", "farming:salt", "farming:salt"},
  224. {"farming:salt", "farming:salt", "farming:salt"},
  225. {"farming:salt", "farming:salt", "farming:salt"}
  226. }
  227. })
  228. -- Mayonnaise
  229. minetest.register_node("farming:mayonnaise", {
  230. description = S("Mayonnaise"),
  231. drawtype = "plantlike",
  232. tiles = {"farming_mayo.png"},
  233. inventory_image = "farming_mayo.png",
  234. wield_image = "farming_mayo.png",
  235. paramtype = "light",
  236. is_ground_content = false,
  237. walkable = false,
  238. on_use = minetest.item_eat(3),
  239. selection_box = {
  240. type = "fixed",
  241. fixed = {-0.25, -0.5, -0.25, 0.25, 0.45, 0.25}
  242. },
  243. groups = {
  244. compostability = 65, food_mayonnaise = 1, vessel = 1, dig_immediate = 3,
  245. attached_node = 1
  246. },
  247. sounds = farming.sounds.node_sound_glass_defaults()
  248. })
  249. minetest.register_craft({
  250. output = "farming:mayonnaise",
  251. recipe = {
  252. {"group:food_olive_oil", "group:food_lemon"},
  253. {"group:food_egg", "farming:salt"}
  254. },
  255. replacements = {{"farming:olive_oil", a.glass_bottle}}
  256. })
  257. -- Rose Water
  258. minetest.register_node("farming:rose_water", {
  259. description = S("Rose Water"),
  260. inventory_image = "farming_rose_water.png",
  261. wield_image = "farming_rose_water.png",
  262. drawtype = "plantlike",
  263. visual_scale = 0.8,
  264. paramtype = "light",
  265. tiles = {"farming_rose_water.png"},
  266. groups = {
  267. food_rose_water = 1, vessel = 1, dig_immediate = 3, attached_node = 1
  268. },
  269. sounds = farming.sounds.node_sound_defaults(),
  270. selection_box = {
  271. type = "fixed",
  272. fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
  273. }
  274. })
  275. minetest.register_craft({
  276. output = "farming:rose_water",
  277. recipe = {
  278. {a.rose, a.rose, a.rose},
  279. {a.rose, a.rose, a.rose},
  280. {"group:food_glass_water", a.pot, a.glass_bottle}
  281. },
  282. replacements = {
  283. {"group:food_glass_water", a.drinking_glass},
  284. {"group:food_pot", "farming:pot"}
  285. }
  286. })
  287. -- Turkish Delight
  288. minetest.register_craftitem("farming:turkish_delight", {
  289. description = S("Turkish Delight"),
  290. inventory_image = "farming_turkish_delight.png",
  291. groups = {flammable = 3, compostability = 85},
  292. on_use = minetest.item_eat(2)
  293. })
  294. minetest.register_craft({
  295. output = "farming:turkish_delight 4",
  296. recipe = {
  297. {"group:food_gelatin", "group:food_sugar", "group:food_gelatin"},
  298. {"group:food_sugar", "group:food_rose_water", "group:food_sugar"},
  299. {"group:food_sugar", a.dye_pink, "group:food_sugar"}
  300. },
  301. replacements = {
  302. {"group:food_cornstarch", a.bowl},
  303. {"group:food_cornstarch", a.bowl},
  304. {"group:food_rose_water", a.glass_bottle}
  305. }
  306. })
  307. -- Garlic Bread
  308. minetest.register_craftitem("farming:garlic_bread", {
  309. description = S("Garlic Bread"),
  310. inventory_image = "farming_garlic_bread.png",
  311. groups = {flammable = 3, compostability = 65},
  312. on_use = minetest.item_eat(2)
  313. })
  314. minetest.register_craft({
  315. output = "farming:garlic_bread",
  316. recipe = {
  317. {"group:food_toast", "group:food_garlic_clove", "group:food_garlic_clove"}
  318. }
  319. })
  320. -- Donuts (thanks to Bockwurst for making the donut images)
  321. minetest.register_craftitem("farming:donut", {
  322. description = S("Donut"),
  323. inventory_image = "farming_donut.png",
  324. on_use = minetest.item_eat(4),
  325. groups = {compostability = 65}
  326. })
  327. minetest.register_craft({
  328. output = "farming:donut 3",
  329. recipe = {
  330. {"", "group:food_wheat", ""},
  331. {"group:food_wheat", "group:food_sugar", "group:food_wheat"},
  332. {"", "group:food_wheat", ""}
  333. }
  334. })
  335. minetest.register_craftitem("farming:donut_chocolate", {
  336. description = S("Chocolate Donut"),
  337. inventory_image = "farming_donut_chocolate.png",
  338. on_use = minetest.item_eat(6),
  339. groups = {compostability = 65}
  340. })
  341. minetest.register_craft({
  342. output = "farming:donut_chocolate",
  343. recipe = {
  344. {"group:food_cocoa"},
  345. {"farming:donut"}
  346. }
  347. })
  348. minetest.register_craftitem("farming:donut_apple", {
  349. description = S("Apple Donut"),
  350. inventory_image = "farming_donut_apple.png",
  351. on_use = minetest.item_eat(6),
  352. groups = {compostability = 65}
  353. })
  354. minetest.register_craft({
  355. output = "farming:donut_apple",
  356. recipe = {
  357. {"group:food_apple"},
  358. {"farming:donut"}
  359. }
  360. })
  361. -- Porridge Oats
  362. minetest.register_craftitem("farming:porridge", {
  363. description = S("Porridge"),
  364. inventory_image = "farming_porridge.png",
  365. on_use = minetest.item_eat(6, a.bowl),
  366. groups = {compostability = 65}
  367. })
  368. minetest.register_craft({
  369. output = "farming:porridge",
  370. recipe = {
  371. {"group:food_oats", "group:food_oats", "group:food_oats"},
  372. {"group:food_oats", "group:food_bowl", "group:food_milk_glass"}
  373. },
  374. replacements = {
  375. {"mobs:glass_milk", a.drinking_glass},
  376. {"farming:soy_milk", a.drinking_glass}
  377. }
  378. })
  379. -- Jaffa Cake
  380. minetest.register_craftitem("farming:jaffa_cake", {
  381. description = S("Jaffa Cake"),
  382. inventory_image = "farming_jaffa_cake.png",
  383. on_use = minetest.item_eat(6),
  384. groups = {compostability = 65}
  385. })
  386. minetest.register_craft({
  387. output = "farming:jaffa_cake 3",
  388. recipe = {
  389. {a.baking_tray, "group:food_egg", "group:food_sugar"},
  390. {a.flour, "group:food_cocoa", "group:food_orange"},
  391. {"group:food_milk", "", ""}
  392. },
  393. replacements = {
  394. {"farming:baking_tray", "farming:baking_tray"},
  395. {"mobs:bucket_milk", a.bucket_empty},
  396. {"mobs:wooden_bucket_milk", "wooden_bucket:bucket_wood_empty"},
  397. {"farming:soy_milk", a.drinking_glass}
  398. }
  399. })
  400. -- Apple Pie
  401. minetest.register_craftitem("farming:apple_pie", {
  402. description = S("Apple Pie"),
  403. inventory_image = "farming_apple_pie.png",
  404. on_use = minetest.item_eat(6),
  405. groups = {compostability = 75}
  406. })
  407. minetest.register_craft({
  408. output = "farming:apple_pie",
  409. recipe = {
  410. {a.flour, "group:food_sugar", "group:food_apple"},
  411. {"", a.baking_tray, ""}
  412. },
  413. replacements = {{"group:food_baking_tray", "farming:baking_tray"}}
  414. })
  415. -- Cactus Juice
  416. minetest.register_craftitem("farming:cactus_juice", {
  417. description = S("Cactus Juice"),
  418. inventory_image = "farming_cactus_juice.png",
  419. groups = {vessel = 1, drink = 1, compostability = 55},
  420. on_use = function(itemstack, user, pointed_thing)
  421. if user then
  422. local num = math.random(5) == 1 and -1 or 2
  423. return minetest.do_item_eat(num, "vessels:drinking_glass",
  424. itemstack, user, pointed_thing)
  425. end
  426. end
  427. })
  428. minetest.register_craft({
  429. output = "farming:cactus_juice",
  430. recipe = {
  431. {a.juicer},
  432. {a.cactus},
  433. {a.drinking_glass}
  434. },
  435. replacements = {
  436. {"group:food_juicer", "farming:juicer"}
  437. }
  438. })
  439. -- Pasta
  440. minetest.register_craftitem("farming:pasta", {
  441. description = S("Pasta"),
  442. inventory_image = "farming_pasta.png",
  443. groups = {compostability = 65, food_pasta = 1}
  444. })
  445. minetest.register_craft({
  446. output = "farming:pasta",
  447. recipe = {
  448. {a.flour, "group:food_butter", a.mixing_bowl}
  449. },
  450. replacements = {{"group:food_mixing_bowl", "farming:mixing_bowl"}}
  451. })
  452. minetest.register_craft({
  453. output = "farming:pasta",
  454. recipe = {
  455. {a.flour, "group:food_oil", a.mixing_bowl}
  456. },
  457. replacements = {
  458. {"group:food_mixing_bowl", "farming:mixing_bowl"},
  459. {"group:food_oil", a.glass_bottle}
  460. }
  461. })
  462. -- Mac & Cheese
  463. minetest.register_craftitem("farming:mac_and_cheese", {
  464. description = S("Mac & Cheese"),
  465. inventory_image = "farming_mac_and_cheese.png",
  466. on_use = minetest.item_eat(6, a.bowl),
  467. groups = {compostability = 65}
  468. })
  469. minetest.register_craft({
  470. output = "farming:mac_and_cheese",
  471. recipe = {
  472. {"group:food_pasta", "group:food_cheese", "group:food_bowl"}
  473. }
  474. })
  475. -- Spaghetti
  476. minetest.register_craftitem("farming:spaghetti", {
  477. description = S("Spaghetti"),
  478. inventory_image = "farming_spaghetti.png",
  479. on_use = minetest.item_eat(8),
  480. groups = {compostability = 65}
  481. })
  482. minetest.register_craft({
  483. output = "farming:spaghetti",
  484. recipe = {
  485. {"group:food_pasta", "group:food_tomato", a.saucepan},
  486. {"group:food_garlic_clove", "group:food_garlic_clove", ""}
  487. },
  488. replacements = {{"group:food_saucepan", "farming:saucepan"}}
  489. })
  490. -- Korean Bibimbap
  491. minetest.register_craftitem("farming:bibimbap", {
  492. description = S("Bibimbap"),
  493. inventory_image = "farming_bibimbap.png",
  494. on_use = minetest.item_eat(8, a.bowl),
  495. groups = {compostability = 65}
  496. })
  497. minetest.register_craft({
  498. output = "farming:bibimbap",
  499. recipe = {
  500. {a.skillet, "group:food_bowl", "group:food_egg"},
  501. {"group:food_rice", "group:food_chicken_raw", "group:food_cabbage"},
  502. {"group:food_carrot", "group:food_chili_pepper", ""}
  503. },
  504. replacements = {{"group:food_skillet", "farming:skillet"}}
  505. })
  506. minetest.register_craft({
  507. output = "farming:bibimbap",
  508. type = "shapeless",
  509. recipe = {
  510. a.skillet, "group:food_bowl", "group:food_mushroom",
  511. "group:food_rice", "group:food_cabbage", "group:food_carrot",
  512. "group:food_mushroom", "group:food_chili_pepper"
  513. },
  514. replacements = {{"group:food_skillet", "farming:skillet"}}
  515. })
  516. -- Burger
  517. minetest.register_craftitem("farming:burger", {
  518. description = S("Burger"),
  519. inventory_image = "farming_burger.png",
  520. on_use = minetest.item_eat(16),
  521. groups = {compostability = 95}
  522. })
  523. minetest.register_craft({
  524. output = "farming:burger",
  525. recipe = {
  526. {a.bread, "group:food_meat", "group:food_cheese"},
  527. {"group:food_tomato", "group:food_cucumber", "group:food_onion"},
  528. {"group:food_lettuce", "", ""}
  529. }
  530. })
  531. -- Salad
  532. minetest.register_craftitem("farming:salad", {
  533. description = S("Salad"),
  534. inventory_image = "farming_salad.png",
  535. on_use = minetest.item_eat(8, a.bowl),
  536. groups = {compostability = 45}
  537. })
  538. minetest.register_craft({
  539. output = "farming:salad",
  540. type = "shapeless",
  541. recipe = {
  542. "group:food_bowl", "group:food_tomato", "group:food_cucumber",
  543. "group:food_lettuce", "group:food_oil"
  544. }
  545. })
  546. -- Triple Berry Smoothie
  547. minetest.register_craftitem("farming:smoothie_berry", {
  548. description = S("Triple Berry Smoothie"),
  549. inventory_image = "farming_berry_smoothie.png",
  550. on_use = minetest.item_eat(6, "vessels:drinking_glass"),
  551. groups = {vessel = 1, drink = 1, compostability = 65}
  552. })
  553. minetest.register_craft({
  554. output = "farming:smoothie_berry",
  555. type = "shapeless",
  556. recipe = {
  557. "group:food_raspberries", "group:food_blackberries",
  558. "group:food_strawberry", "group:food_banana",
  559. a.drinking_glass
  560. }
  561. })
  562. -- Patatas a la importancia
  563. minetest.register_craftitem("farming:spanish_potatoes", {
  564. description = S("Spanish Potatoes"),
  565. inventory_image = "farming_spanish_potatoes.png",
  566. on_use = minetest.item_eat(8, a.bowl),
  567. groups = {compostability = 65}
  568. })
  569. minetest.register_craft({
  570. output = "farming:spanish_potatoes",
  571. recipe = {
  572. {"group:food_potato", "group:food_parsley", "group:food_potato"},
  573. {"group:food_egg", a.flour, "group:food_onion"},
  574. {"farming:garlic_clove", "group:food_bowl", a.skillet}
  575. },
  576. replacements = {{"group:food_skillet", "farming:skillet"}}
  577. })
  578. -- Potato omelet
  579. minetest.register_craftitem("farming:potato_omelet", {
  580. description = S("Potato omelet"),
  581. inventory_image = "farming_potato_omelet.png",
  582. on_use = minetest.item_eat(6, a.bowl),
  583. groups = {compostability = 65}
  584. })
  585. minetest.register_craft({
  586. output = "farming:potato_omelet",
  587. recipe = {
  588. {"group:food_egg", "group:food_potato", "group:food_onion"},
  589. {a.skillet, "group:food_bowl", ""}
  590. },
  591. replacements = {{"group:food_skillet", "farming:skillet"}}
  592. })
  593. -- Paella
  594. minetest.register_craftitem("farming:paella", {
  595. description = S("Paella"),
  596. inventory_image = "farming_paella.png",
  597. on_use = minetest.item_eat(8, a.bowl),
  598. groups = {compostability = 65}
  599. })
  600. minetest.register_craft({
  601. output = "farming:paella",
  602. recipe = {
  603. {"group:food_rice", a.dye_orange, "farming:pepper_red"},
  604. {"group:food_peas", "group:food_chicken", "group:food_bowl"},
  605. {"", a.skillet, ""}
  606. },
  607. replacements = {{"group:food_skillet", "farming:skillet"}}
  608. })
  609. -- Flan
  610. minetest.register_craftitem("farming:flan", {
  611. description = S("Vanilla Flan"),
  612. inventory_image = "farming_vanilla_flan.png",
  613. on_use = minetest.item_eat(6),
  614. groups = {compostability = 65}
  615. })
  616. minetest.register_craft({
  617. output = "farming:flan",
  618. recipe = {
  619. {"group:food_sugar", "group:food_milk", "farming:caramel"},
  620. {"group:food_egg", "group:food_egg", "farming:vanilla_extract"}
  621. },
  622. replacements = {
  623. {"cucina_vegana:soy_milk", a.drinking_glass},
  624. {"mobs:bucket_milk", "bucket:bucket_empty"},
  625. {"mobs:wooden_bucket_milk", "wooden_bucket:bucket_wood_empty"},
  626. {"farming:vanilla_extract", a.glass_bottle}
  627. }
  628. })
  629. -- Vegan Cheese
  630. minetest.register_craftitem("farming:cheese_vegan", {
  631. description = S("Vegan Cheese"),
  632. inventory_image = "farming_cheese_vegan.png",
  633. on_use = minetest.item_eat(2),
  634. groups = {compostability = 65, food_cheese = 1, flammable = 2}
  635. })
  636. minetest.register_craft({
  637. output = "farming:cheese_vegan",
  638. recipe = {
  639. {"farming:soy_milk", "farming:soy_milk", "farming:soy_milk"},
  640. {"group:food_salt", "group:food_peppercorn", "farming:bottle_ethanol"},
  641. {"group:food_gelatin", a.pot, ""}
  642. },
  643. replacements = {
  644. {"farming:soy_milk", a.drinking_glass .. " 3"},
  645. {"farming:pot", "farming:pot"},
  646. {"farming:bottle_ethanol", a.glass_bottle}
  647. }
  648. })
  649. minetest.register_craft({
  650. output = "farming:cheese_vegan",
  651. recipe = {
  652. {"farming:soy_milk", "farming:soy_milk", "farming:soy_milk"},
  653. {"group:food_salt", "group:food_peppercorn", "group:food_lemon"},
  654. {"group:food_gelatin", a.pot, ""}
  655. },
  656. replacements = {
  657. {"farming:soy_milk", a.drinking_glass .. " 3"},
  658. {"farming:pot", "farming:pot"}
  659. }
  660. })
  661. -- Onigiri
  662. minetest.register_craftitem("farming:onigiri", {
  663. description = S("Onigiri"),
  664. inventory_image = "farming_onigiri.png",
  665. on_use = minetest.item_eat(2),
  666. groups = {flammable = 2, compostability = 65}
  667. })
  668. minetest.register_craft({
  669. output = "farming:onigiri",
  670. recipe = {
  671. {"group:food_rice", "group:food_salt", "group:food_rice"},
  672. {"", "group:food_seaweed", ""}
  673. }
  674. })
  675. -- Gyoza
  676. minetest.register_craftitem("farming:gyoza", {
  677. description = S("Gyoza"),
  678. inventory_image = "farming_gyoza.png",
  679. on_use = minetest.item_eat(4),
  680. groups = {flammable = 2, compostability = 65}
  681. })
  682. minetest.register_craft({
  683. output = "farming:gyoza 4",
  684. recipe = {
  685. {"group:food_cabbage", "group:food_garlic_clove", "group:food_onion"},
  686. {"group:food_meat_raw", "group:food_salt", a.flour},
  687. {"", a.skillet, ""}
  688. },
  689. replacements = {
  690. {"group:food_skillet", "farming:skillet"}
  691. }
  692. })
  693. -- Mochi
  694. minetest.register_craftitem("farming:mochi", {
  695. description = S("Mochi"),
  696. inventory_image = "farming_mochi.png",
  697. on_use = minetest.item_eat(3),
  698. groups = {flammable = 2, compostability = 65}
  699. })
  700. minetest.register_craft({
  701. output = "farming:mochi",
  702. recipe = {
  703. {"", a.mortar_pestle, ""},
  704. {"group:food_rice", "group:food_sugar", "group:food_rice"},
  705. {"", "group:food_glass_water", ""}
  706. },
  707. replacements = {
  708. {"group:food_mortar_pestle", "farming:mortar_pestle"},
  709. {"group:food_glass_water", a.drinking_glass}
  710. }
  711. })
  712. -- Gingerbread Man
  713. minetest.register_craftitem("farming:gingerbread_man", {
  714. description = S("Gingerbread Man"),
  715. inventory_image = "farming_gingerbread_man.png",
  716. on_use = minetest.item_eat(2),
  717. groups = {compostability = 85}
  718. })
  719. minetest.register_craft({
  720. output = "farming:gingerbread_man 3",
  721. recipe = {
  722. {"", "group:food_egg", ""},
  723. {"group:food_wheat", "group:food_ginger", "group:food_wheat"},
  724. {"group:food_sugar", "", "group:food_sugar"}
  725. }
  726. })