food.lua 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  1. local S = ethereal.intllib
  2. -- Banana (Heals one heart when eaten)
  3. minetest.register_node("ethereal:banana", {
  4. description = S("Banana"),
  5. drawtype = "torchlike",
  6. tiles = {"ethereal_banana_single.png"},
  7. inventory_image = "ethereal_banana_single.png",
  8. wield_image = "ethereal_banana_single.png",
  9. paramtype = "light",
  10. sunlight_propagates = true,
  11. walkable = false,
  12. selection_box = {
  13. type = "fixed",
  14. fixed = {-0.31, -0.5, -0.31, 0.31, 0.5, 0.31}
  15. },
  16. groups = {
  17. food_banana = 1, fleshy = 3, dig_immediate = 3, flammable = 2,
  18. leafdecay = 1, leafdecay_drop = 1
  19. },
  20. drop = "ethereal:banana",
  21. on_use = minetest.item_eat(2),
  22. sounds = default.node_sound_leaves_defaults(),
  23. after_place_node = function(pos, placer)
  24. if placer:is_player() then
  25. minetest.set_node(pos, {name = "ethereal:banana", param2 = 1})
  26. end
  27. end
  28. })
  29. -- Banana Bunch
  30. minetest.register_node("ethereal:banana_bunch", {
  31. description = S("Banana Bunch"),
  32. drawtype = "torchlike",
  33. tiles = {"ethereal_banana_bunch.png"},
  34. inventory_image = "ethereal_banana_bunch.png",
  35. wield_image = "ethereal_banana_bunch.png",
  36. paramtype = "light",
  37. sunlight_propagates = true,
  38. walkable = false,
  39. selection_box = {
  40. type = "fixed",
  41. fixed = {-0.31, -0.5, -0.31, 0.31, 0.5, 0.31}
  42. },
  43. groups = {
  44. fleshy = 3, dig_immediate = 3, flammable = 2,
  45. leafdecay = 1, leafdecay_drop = 1
  46. },
  47. drop = "ethereal:banana_bunch",
  48. on_use = minetest.item_eat(6),
  49. sounds = default.node_sound_leaves_defaults(),
  50. after_place_node = function(pos, placer)
  51. if placer:is_player() then
  52. minetest.set_node(pos, {name = "ethereal:banana_bunch", param2 = 1})
  53. end
  54. end
  55. })
  56. -- Bunch to Single
  57. minetest.register_craft({
  58. output = "ethereal:banana 3",
  59. recipe = {{"ethereal:banana_bunch"}}
  60. })
  61. minetest.register_craft({
  62. output = "ethereal:banana_bunch",
  63. recipe = {{"ethereal:banana", "ethereal:banana", "ethereal:banana"}}
  64. })
  65. -- Banana Dough
  66. minetest.register_craftitem("ethereal:banana_dough", {
  67. description = S("Banana Dough"),
  68. inventory_image = "ethereal_banana_dough.png"
  69. })
  70. minetest.register_craft({
  71. output = "ethereal:banana_dough",
  72. recipe = {{"group:food_flour", "group:food_banana"}}
  73. })
  74. minetest.register_craft({
  75. type = "cooking",
  76. cooktime = 14,
  77. output = "ethereal:banana_bread",
  78. recipe = "ethereal:banana_dough"
  79. })
  80. -- Orange (Heals 2 hearts when eaten)
  81. minetest.register_node("ethereal:orange", {
  82. description = S("Orange"),
  83. drawtype = "plantlike",
  84. tiles = {"farming_orange.png"},
  85. inventory_image = "farming_orange.png",
  86. wield_image = "farming_orange.png",
  87. paramtype = "light",
  88. sunlight_propagates = true,
  89. walkable = false,
  90. selection_box = {
  91. type = "fixed",
  92. fixed = {-0.27, -0.37, -0.27, 0.27, 0.44, 0.27}
  93. },
  94. groups = {
  95. food_orange = 1, fleshy = 3, dig_immediate = 3, flammable = 2,
  96. leafdecay = 3, leafdecay_drop = 1
  97. },
  98. drop = "ethereal:orange",
  99. on_use = minetest.item_eat(4),
  100. sounds = default.node_sound_leaves_defaults(),
  101. after_place_node = function(pos, placer)
  102. if placer:is_player() then
  103. minetest.set_node(pos, {name = "ethereal:orange", param2 = 1})
  104. end
  105. end
  106. })
  107. -- Pine Nuts (Heals 1/2 heart when eaten)
  108. minetest.register_craftitem("ethereal:pine_nuts", {
  109. description = S("Pine Nuts"),
  110. inventory_image = "ethereal_pine_nuts.png",
  111. wield_image = "ethereal_pine_nuts.png",
  112. groups = {food_pine_nuts = 1, flammable = 2},
  113. on_use = minetest.item_eat(1)
  114. })
  115. -- Banana Loaf (Heals 3 hearts when eaten)
  116. minetest.register_craftitem("ethereal:banana_bread", {
  117. description = S("Banana Loaf"),
  118. inventory_image = "ethereal_banana_bread.png",
  119. wield_image = "ethereal_banana_bread.png",
  120. groups = {food_bread = 1, flammable = 3},
  121. on_use = minetest.item_eat(6)
  122. })
  123. -- coconut settings if farming redo found
  124. local fredo = minetest.get_modpath("farming") and farming and farming.mod
  125. and farming.mod == "redo"
  126. local cdrp = fredo and "ethereal:coconut" or "ethereal:coconut_slice 4"
  127. local cgrp = fredo and {3, 2} or {1, 1}
  128. -- Coconut (drops 4x coconut slice by default, whole coconut if farming redo found)
  129. minetest.register_node("ethereal:coconut", {
  130. description = S("Coconut"),
  131. drawtype = "plantlike",
  132. walkable = false,
  133. paramtype = "light",
  134. sunlight_propagates = true,
  135. tiles = {"moretrees_coconut.png"},
  136. inventory_image = "moretrees_coconut.png",
  137. wield_image = "moretrees_coconut.png",
  138. selection_box = {
  139. type = "fixed",
  140. fixed = {-0.31, -0.43, -0.31, 0.31, 0.44, 0.31}
  141. },
  142. groups = {
  143. food_coconut = 1, snappy = cgrp[1], oddly_breakable_by_hand = cgrp[2],
  144. cracky = cgrp[1], choppy = cgrp[1], flammable = 1,
  145. leafdecay = 3, leafdecay_drop = 1
  146. },
  147. drop = cdrp,
  148. sounds = default.node_sound_wood_defaults(),
  149. after_place_node = function(pos, placer)
  150. if placer:is_player() then
  151. minetest.set_node(pos, {name = "ethereal:coconut", param2 = 1})
  152. end
  153. end
  154. })
  155. -- Coconut Slice (Heals half heart when eaten)
  156. minetest.register_craftitem("ethereal:coconut_slice", {
  157. description = S("Coconut Slice"),
  158. inventory_image = "moretrees_coconut_slice.png",
  159. wield_image = "moretrees_coconut_slice.png",
  160. groups = {food_coconut_slice = 1, flammable = 1},
  161. on_use = minetest.item_eat(1)
  162. })
  163. -- coconut slice recipe (farming redo)
  164. if fredo then
  165. minetest.register_craft({
  166. output = "ethereal:coconut_slice 4",
  167. recipe = {{"farming:cutting_board", "ethereal:coconut"}},
  168. replacements = {{"farming:cutting_board", "farming:cutting_board"}}
  169. })
  170. end
  171. -- coconut slice into whole coconut
  172. minetest.register_craft({
  173. output = "ethereal:coconut",
  174. recipe = {
  175. {"ethereal:coconut_slice", "ethereal:coconut_slice"},
  176. {"ethereal:coconut_slice", "ethereal:coconut_slice"}
  177. }
  178. })
  179. -- Golden Apple (Found on Healing Tree, heals all 10 hearts)
  180. minetest.register_node("ethereal:golden_apple", {
  181. description = S("Golden Apple"),
  182. drawtype = "plantlike",
  183. tiles = {"default_apple_gold.png"},
  184. inventory_image = "default_apple_gold.png",
  185. wield_image = "default_apple_gold.png",
  186. paramtype = "light",
  187. sunlight_propagates = true,
  188. walkable = false,
  189. selection_box = {
  190. type = "fixed",
  191. fixed = {-0.2, -0.37, -0.2, 0.2, 0.31, 0.2}
  192. },
  193. groups = {
  194. fleshy = 3, dig_immediate = 3,
  195. leafdecay = 3,leafdecay_drop = 1
  196. },
  197. drop = "ethereal:golden_apple",
  198. sounds = default.node_sound_leaves_defaults(),
  199. on_use = function(itemstack, user, pointed_thing)
  200. if user and pointed_thing and pointed_thing.type ~= "object" then
  201. user:set_hp(20)
  202. return minetest.do_item_eat(2, nil, itemstack, user, pointed_thing)
  203. end
  204. end,
  205. after_place_node = function(pos, placer, itemstack)
  206. if placer:is_player() then
  207. minetest.set_node(pos, {name = "ethereal:golden_apple", param2 = 1})
  208. end
  209. end
  210. })
  211. -- Hearty Stew (Heals 5 hearts)
  212. minetest.register_craftitem("ethereal:hearty_stew", {
  213. description = S("Hearty Stew"),
  214. inventory_image = "ethereal_hearty_stew.png",
  215. wield_image = "ethereal_hearty_stew.png",
  216. on_use = minetest.item_eat(10, "ethereal:bowl")
  217. })
  218. minetest.register_craft({
  219. output = "ethereal:hearty_stew",
  220. recipe = {
  221. {"group:food_onion","flowers:mushroom_brown", "group:food_tuber"},
  222. {"","flowers:mushroom_brown", ""},
  223. {"","group:food_bowl", ""}
  224. }
  225. })
  226. -- Extra recipe for hearty stew
  227. if fredo then
  228. minetest.register_craft({
  229. output = "ethereal:hearty_stew",
  230. recipe = {
  231. {"group:food_onion","flowers:mushroom_brown", "group:food_beans"},
  232. {"","flowers:mushroom_brown", ""},
  233. {"","group:food_bowl", ""}
  234. }
  235. })
  236. end
  237. -- Bucket of Cactus Pulp
  238. minetest.register_craftitem("ethereal:bucket_cactus", {
  239. description = S("Bucket of Cactus Pulp"),
  240. inventory_image = "bucket_cactus.png",
  241. wield_image = "bucket_cactus.png",
  242. stack_max = 1,
  243. groups = {vessel = 1, drink = 1},
  244. on_use = minetest.item_eat(2, "bucket:bucket_empty"),
  245. })
  246. minetest.register_craft({
  247. output = "ethereal:bucket_cactus",
  248. recipe = {{"bucket:bucket_empty","default:cactus"}}
  249. })
  250. -- firethorn jelly
  251. minetest.register_craftitem("ethereal:firethorn_jelly", {
  252. description = S("Firethorn Jelly"),
  253. inventory_image = "ethereal_firethorn_jelly.png",
  254. wield_image = "ethereal_firethorn_jelly.png",
  255. on_use = minetest.item_eat(2, "vessels:glass_bottle"),
  256. groups = {vessel = 1}
  257. })
  258. if minetest.registered_items["farming:bowl"] then
  259. minetest.register_craft({
  260. output = "ethereal:firethorn_jelly",
  261. recipe = {
  262. {"farming:mortar_pestle","vessels:glass_bottle", ""},
  263. {"ethereal:firethorn", "ethereal:firethorn", "ethereal:firethorn"},
  264. {"bucket:bucket_water", "bucket:bucket_water", "bucket:bucket_water"}
  265. },
  266. replacements = {
  267. {"bucket:bucket_water", "bucket:bucket_empty 3"},
  268. {"farming:mortar_pestle", "farming:mortar_pestle"}
  269. }
  270. })
  271. end
  272. -- Lemon
  273. minetest.register_node("ethereal:lemon", {
  274. description = S("Lemon"),
  275. drawtype = "plantlike",
  276. tiles = {"ethereal_lemon.png"},
  277. inventory_image = "ethereal_lemon_fruit.png",
  278. wield_image = "ethereal_lemon_fruit.png",
  279. paramtype = "light",
  280. sunlight_propagates = true,
  281. walkable = false,
  282. selection_box = {
  283. type = "fixed",
  284. fixed = {-0.27, -0.37, -0.27, 0.27, 0.44, 0.27}
  285. },
  286. groups = {
  287. food_lemon = 1, fleshy = 3, dig_immediate = 3, flammable = 2,
  288. leafdecay = 3, leafdecay_drop = 1
  289. },
  290. drop = "ethereal:lemon",
  291. on_use = minetest.item_eat(3),
  292. sounds = default.node_sound_leaves_defaults(),
  293. after_place_node = function(pos, placer)
  294. if placer:is_player() then
  295. minetest.set_node(pos, {name = "ethereal:lemon", param2 = 1})
  296. end
  297. end
  298. })
  299. -- Candied Lemon
  300. minetest.register_craftitem("ethereal:candied_lemon", {
  301. description = S("Candied Lemon"),
  302. inventory_image = "ethereal_candied_lemon.png",
  303. wield_image = "ethereal_candied_lemon.png",
  304. groups = {food_candied_lemon = 1},
  305. on_use = minetest.item_eat(5)
  306. })
  307. minetest.register_craft({
  308. output = "ethereal:candied_lemon",
  309. recipe = {
  310. {"farming:baking_tray", "ethereal:lemon", "group:food_sugar"}
  311. },
  312. replacements = {
  313. {"farming:baking_tray", "farming:baking_tray"}
  314. }
  315. })
  316. -- Lemonade
  317. minetest.register_node("ethereal:lemonade", {
  318. description = S("Lemonade"),
  319. drawtype = "plantlike",
  320. tiles = {"ethereal_lemonade.png"},
  321. inventory_image = "ethereal_lemonade.png",
  322. wield_image = "ethereal_lemonade.png",
  323. paramtype = "light",
  324. walkable = false,
  325. selection_box = {
  326. type = "fixed",
  327. fixed = {-0.25, -0.5, -0.25, 0.25, 0.25, 0.25}
  328. },
  329. groups = {vessel = 1, dig_immediate = 3, attached_node = 1, drink = 1},
  330. on_use = minetest.item_eat(5, "vessels:drinking_glass"),
  331. sounds = default.node_sound_glass_defaults()
  332. })
  333. minetest.register_craft({
  334. output = "ethereal:lemonade",
  335. recipe = {
  336. {"ethereal:lemon", "group:food_sugar", "group:food_sugar"},
  337. {"vessels:drinking_glass", "group:water_bucket", ""}
  338. },
  339. replacements = {
  340. {"group:water_bucket", "bucket:bucket_empty"},
  341. }
  342. })
  343. -- Olive
  344. minetest.register_node("ethereal:olive", {
  345. description = S("Olive"),
  346. drawtype = "plantlike",
  347. tiles = {"ethereal_olive.png"},
  348. inventory_image = "ethereal_olive_fruit.png",
  349. wield_image = "ethereal_olive_fruit.png",
  350. visual_scale = 0.2,
  351. paramtype = "light",
  352. sunlight_propagates = true,
  353. walkable = false,
  354. selection_box = {
  355. type = "fixed",
  356. fixed = {-0.1, -0.5, -0.1, 0.1, -0.3, 0.1}
  357. },
  358. groups = {
  359. fleshy = 3, dig_immediate = 3, flammable = 2,
  360. leafdecay = 3, leafdecay_drop = 1
  361. },
  362. drop = "ethereal:olive",
  363. on_use = minetest.item_eat(1),
  364. sounds = default.node_sound_leaves_defaults(),
  365. after_place_node = function(pos, placer)
  366. if placer:is_player() then
  367. minetest.set_node(pos, {name = "ethereal:olive", param2 = 1})
  368. end
  369. end
  370. })
  371. -- Olive Oil
  372. minetest.register_craftitem("ethereal:olive_oil", {
  373. description = S("Olive Oil"),
  374. inventory_image = "ethereal_olive_oil.png",
  375. wield_image = "ethereal_olive_oil.png",
  376. groups = {food_oil = 1, food_olive_oil = 1, vessel = 1}
  377. })
  378. minetest.register_craft({
  379. output = "ethereal:olive_oil",
  380. recipe = {
  381. {"ethereal:olive", "ethereal:olive", "ethereal:olive"},
  382. {"ethereal:olive", "ethereal:olive", "ethereal:olive"},
  383. {"farming:juicer", "vessels:glass_bottle", ""}
  384. },
  385. replacements = {
  386. {"farming:juicer", "farming:juicer"}
  387. }
  388. })
  389. -- Kappa Maki (sushi with cucumber)
  390. minetest.register_craftitem("ethereal:sushi_kappamaki", {
  391. description = S("Kappa Maki Sushi"),
  392. inventory_image = "ethereal_sushi_kappa_maki.png",
  393. on_use = minetest.item_eat(3)
  394. })
  395. minetest.register_craft({
  396. output = "ethereal:sushi_kappamaki 2",
  397. recipe = {
  398. {"group:food_seaweed", "group:food_cucumber", "group:food_rice"}
  399. }
  400. })
  401. -- Nigiri (sushi with raw fish)
  402. minetest.register_craftitem("ethereal:sushi_nigiri", {
  403. description = S("Nigiri Sushi"),
  404. inventory_image = "ethereal_sushi_nigiri.png",
  405. on_use = minetest.item_eat(2)
  406. })
  407. minetest.register_craft({
  408. output = "ethereal:sushi_nigiri 2",
  409. recipe = {
  410. {"group:food_rice", "group:food_fish_raw", ""}
  411. }
  412. })
  413. -- Tamago (sushi with sweet egg)
  414. minetest.register_craftitem("ethereal:sushi_tamago", {
  415. description = S("Tamago Sushi"),
  416. inventory_image = "ethereal_sushi_tamago.png",
  417. on_use = minetest.item_eat(2)
  418. })
  419. minetest.register_craft({
  420. output = "ethereal:sushi_tamago 2",
  421. recipe = {
  422. {"group:food_seaweed", "group:food_egg", "group:food_rice"}
  423. }
  424. })
  425. -- Fugu (prepared pufferfish)
  426. minetest.register_craftitem("ethereal:fugu", {
  427. description = S("Fugusashi"),
  428. inventory_image = "ethereal_fugu.png",
  429. on_use = function(itemstack, user, pointed_thing)
  430. if user then
  431. if math.random(12) == 1 then
  432. return minetest.do_item_eat(-16, nil, itemstack, user, pointed_thing)
  433. else
  434. return minetest.do_item_eat(4, nil, itemstack, user, pointed_thing)
  435. end
  436. end
  437. end
  438. })
  439. minetest.register_craft({
  440. output = "ethereal:fugu",
  441. recipe = {
  442. {"group:food_cutting_board", "ethereal:fish_pufferfish", "group:food_soy_sauce"}
  443. },
  444. replacements = {
  445. {"group:food_cutting_board", "farming:cutting_board"},
  446. {"group:food_soy_sauce", "vessels:glass_bottle"}
  447. }
  448. })
  449. -- Teriyaki Chicken
  450. minetest.register_craftitem("ethereal:teriyaki_chicken", {
  451. description = S("Teriyaki Chicken"),
  452. inventory_image = "ethereal_teriyaki_chicken.png",
  453. on_use = minetest.item_eat(4)
  454. })
  455. minetest.register_craft({
  456. output = "ethereal:teriyaki_chicken 2",
  457. recipe = {
  458. {"group:food_chicken_raw", "group:food_sugar", "group:food_soy_sauce"},
  459. {"group:food_garlic_clove", "group:food_saucepan", "group:food_gelatin"}
  460. },
  461. replacements = {
  462. {"group:food_soy_sauce", "vessels:glass_bottle"},
  463. {"group:food_saucepan", "farming:saucepan"}
  464. }
  465. })
  466. -- Teriyaki Beef
  467. minetest.register_craftitem("ethereal:teriyaki_beef", {
  468. description = S("Teriyaki Beef"),
  469. inventory_image = "ethereal_teriyaki_beef.png",
  470. on_use = minetest.item_eat(12, "ethereal:bowl")
  471. })
  472. minetest.register_craft({
  473. output = "ethereal:teriyaki_beef",
  474. recipe = {
  475. {"group:food_meat_raw", "group:food_sugar", "group:food_soy_sauce"},
  476. {"group:food_garlic_clove", "group:food_saucepan", "group:food_gelatin"},
  477. {"group:food_cabbage", "group:food_rice", "group:food_bowl"}
  478. },
  479. replacements = {
  480. {"group:food_soy_sauce", "vessels:glass_bottle"},
  481. {"group:food_saucepan", "farming:saucepan"}
  482. }
  483. })
  484. -- mushroom soup (Heals 1 heart)
  485. minetest.register_craftitem("ethereal:mushroom_soup", {
  486. description = S("Mushroom Soup"),
  487. inventory_image = "ethereal_mushroom_soup.png",
  488. groups = {drink = 1},
  489. on_use = minetest.item_eat(5, "ethereal:bowl")
  490. })
  491. minetest.register_craft({
  492. output = "ethereal:mushroom_soup",
  493. recipe = {
  494. {"group:food_mushroom"},
  495. {"group:food_mushroom"},
  496. {"group:food_bowl"}
  497. }
  498. })
  499. -- boiled shrimp
  500. minetest.register_craftitem("ethereal:fish_shrimp_cooked", {
  501. description = S("Boiled Shrimp"),
  502. inventory_image = "ethereal_fish_shrimp_cooked.png",
  503. on_use = minetest.item_eat(2)
  504. })
  505. minetest.register_craft({
  506. output = "ethereal:fish_shrimp_cooked 5",
  507. recipe = {
  508. {"ethereal:fish_shrimp", "ethereal:fish_shrimp", "ethereal:fish_shrimp"},
  509. {"ethereal:fish_shrimp", "group:water_bucket", "ethereal:fish_shrimp"},
  510. {"", "ethereal:fire_dust", ""}
  511. },
  512. replacements = {
  513. {"group:water_bucket", "bucket:bucket_empty"},
  514. }
  515. })
  516. -- garlic butter shrimp
  517. minetest.register_craftitem("ethereal:garlic_shrimp", {
  518. description = S("Garlic Butter Shrimp"),
  519. inventory_image = "ethereal_garlic_butter_shrimp.png",
  520. on_use = minetest.item_eat(6)
  521. })
  522. minetest.register_craft({
  523. output = "ethereal:garlic_shrimp",
  524. recipe = {
  525. {"farming:skillet", "ethereal:fish_shrimp", "ethereal:fish_shrimp"},
  526. {"group:food_butter", "group:food_garlic_clove", "ethereal:lemon"}
  527. },
  528. replacements = {{"farming:skillet", "farming:skillet"}}
  529. })
  530. -- jellyfish salad
  531. minetest.register_craftitem("ethereal:jellyfish_salad", {
  532. description = S("Jellyfish Salad"),
  533. inventory_image = "ethereal_jellyfish_salad.png",
  534. on_use = minetest.item_eat(6)
  535. })
  536. minetest.register_craft({
  537. output = "ethereal:jellyfish_salad",
  538. recipe = {
  539. {"farming:cutting_board", "ethereal:fish_jellyfish", "group:food_onion"},
  540. },
  541. replacements = {{"farming:cutting_board", "farming:cutting_board"}}
  542. })
  543. -- raw calamari
  544. minetest.register_craftitem("ethereal:calamari_raw", {
  545. description = S("Raw Calamari"),
  546. inventory_image = "ethereal_calamari_raw.png",
  547. on_use = minetest.item_eat(-2)
  548. })
  549. minetest.register_craft({
  550. output = "ethereal:calamari_raw 2",
  551. recipe = {
  552. {"farming:cutting_board", "ethereal:fish_squid"},
  553. },
  554. replacements = {{"farming:cutting_board", "farming:cutting_board"}}
  555. })
  556. -- cooked calamari
  557. minetest.register_craftitem("ethereal:calamari_cooked", {
  558. description = S("Calamari"),
  559. inventory_image = "ethereal_calamari_cooked.png",
  560. on_use = minetest.item_eat(5)
  561. })
  562. minetest.register_craft({
  563. output = "ethereal:calamari_cooked",
  564. recipe = {
  565. {"farming:skillet", "ethereal:calamari_raw", "farming:flour"},
  566. },
  567. replacements = {{"farming:skillet", "farming:skillet"}}
  568. })
  569. -- fish & chips
  570. minetest.register_craftitem("ethereal:fish_n_chips", {
  571. description = S("Fish & Chips"),
  572. inventory_image = "ethereal_fish_chips.png",
  573. on_use = minetest.item_eat(6)
  574. })
  575. minetest.register_craft({
  576. output = "ethereal:fish_n_chips",
  577. recipe = {
  578. {"farming:baking_tray", "group:ethereal_fish", "group:food_potato"}
  579. },
  580. replacements = {
  581. {"farming:baking_tray", "farming:baking_tray"}
  582. }
  583. })