food.lua 18 KB

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