food.lua 20 KB

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