init.lua 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435
  1. minetest.register_craftitem(":farming:bread_slice", {
  2. description = "Sliced Bread",
  3. inventory_image = "farming_bread_slice.png",
  4. on_use = minetest.item_eat(1),
  5. groups = {food_bread_slice = 1, flammable = 2},
  6. })
  7. minetest.register_craft({
  8. type = "shapeless",
  9. output = "farming:bread_slice 5",
  10. recipe = {"farming:bread", "farming:cutting_board"},
  11. replacements = {{"farming:cutting_board", "farming:cutting_board"}},
  12. })
  13. -- mortar & pestle uses only 2 wheat to make flour, contast with hand-craft which uses 4 wheat for 1 flour
  14. minetest.register_craft({
  15. type = "shapeless",
  16. output = "farming:flour",
  17. recipe = {
  18. "farming:wheat", "farming:wheat",
  19. "farming:mortar_pestle"
  20. },
  21. replacements = {{"farming:mortar_pestle", "farming:mortar_pestle"}},
  22. })
  23. minetest.register_craftitem(":farming:toast", {
  24. description = "Toast",
  25. inventory_image = "farming_toast.png",
  26. on_use = minetest.item_eat(1),
  27. groups = {food_toast = 1, flammable = 2},
  28. })
  29. minetest.register_craftitem(":farming:toast_sandwich", {
  30. description = "Toast Sandwich",
  31. inventory_image = "farming_toast_sandwich.png",
  32. on_use = minetest.item_eat(4),
  33. groups = {flammable = 2},
  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. --tomato sandwich
  44. minetest.register_craftitem(":farming:tomato_sandwich", {
  45. description = "Toasted Tomato Sandwich",
  46. inventory_image = "farming_toasted_tomato_sandwich.png",
  47. on_use = minetest.item_eat(6),
  48. groups = {flammable = 2},
  49. })
  50. minetest.register_craft({
  51. output = "farming:tomato_sandwich",
  52. recipe = {
  53. {"farming:flour"},
  54. {"tomato:tomato"},
  55. {"farming:sugar"},
  56. }
  57. })
  58. -- carrot cake
  59. minetest.register_craftitem(":farming:carrot_cake", {
  60. description = "Carrot Cake",
  61. inventory_image = "farming_carrot_cake.png",
  62. on_use = minetest.item_eat(4),
  63. groups = {flammable = 2},
  64. })
  65. minetest.register_craft({
  66. output = "farming:carrot_cake",
  67. type = "shapeless",
  68. recipe = {
  69. "farming:flour", "farming:sugar",
  70. "carrot:regular", "carrot:regular", "carrot:regular",
  71. "farming:baking_tray"
  72. },
  73. replacements = {{"farming:baking_tray", "farming:baking_tray"}}
  74. })
  75. minetest.register_craft({
  76. type = "fuel",
  77. recipe = "farming:straw",
  78. burntime = 3,
  79. })
  80. minetest.register_craft({
  81. type = "fuel",
  82. recipe = "farming:straw_weathered",
  83. burntime = 3,
  84. })
  85. minetest.register_craft({
  86. type = "fuel",
  87. recipe = "darkage:straw_bale",
  88. burntime = 3*9,
  89. })
  90. minetest.register_craft({
  91. type = "fuel",
  92. recipe = "farming:wheat",
  93. burntime = 1,
  94. })
  95. minetest.register_craft({
  96. type = "cooking",
  97. cooktime = 3,
  98. output = "farming:toast",
  99. recipe = "farming:bread_slice"
  100. })
  101. minetest.register_craftitem(":farming:cutting_board", {
  102. description = "Cutting Board",
  103. inventory_image = "farming_cutting_board.png",
  104. groups = {food_cutting_board = 1, flammable = 2},
  105. })
  106. minetest.register_craft({
  107. output = "farming:cutting_board",
  108. recipe = {
  109. {"default:steel_ingot", "", ""},
  110. {"", "group:stick", ""},
  111. {"", "", "group:wood"},
  112. }
  113. })
  114. minetest.register_craftitem(":farming:saucepan", {
  115. description = "Saucepan",
  116. inventory_image = "farming_saucepan.png",
  117. groups = {food_saucepan = 1, flammable = 2},
  118. })
  119. minetest.register_craft({
  120. output = "farming:saucepan",
  121. recipe = {
  122. {"default:steel_ingot", "", ""},
  123. {"", "group:stick", ""},
  124. }
  125. })
  126. minetest.register_craftitem(":farming:pot", {
  127. description = "Cooking Pot",
  128. inventory_image = "farming_pot.png",
  129. groups = {food_pot = 1, flammable = 2},
  130. })
  131. minetest.register_craft({
  132. output = "farming:pot",
  133. recipe = {
  134. {"group:stick", "default:steel_ingot", "default:steel_ingot"},
  135. {"", "default:steel_ingot", "default:steel_ingot"},
  136. }
  137. })
  138. minetest.register_craftitem(":farming:baking_tray", {
  139. description = "Baking Tray",
  140. inventory_image = "farming_baking_tray.png",
  141. groups = {food_baking_tray = 1, flammable = 2},
  142. })
  143. minetest.register_craft({
  144. output = "farming:baking_tray",
  145. recipe = {
  146. {"default:clay_brick", "default:clay_brick", "default:clay_brick"},
  147. {"default:clay_brick", "", "default:clay_brick"},
  148. {"default:clay_brick", "default:clay_brick", "default:clay_brick"},
  149. }
  150. })
  151. minetest.register_craftitem(":farming:skillet", {
  152. description = "Skillet",
  153. inventory_image = "farming_skillet.png",
  154. groups = {food_skillet = 1, flammable = 2},
  155. })
  156. minetest.register_craft({
  157. output = "farming:skillet",
  158. recipe = {
  159. {"default:steel_ingot", "", ""},
  160. {"", "default:steel_ingot", ""},
  161. {"", "", "group:stick"},
  162. }
  163. })
  164. minetest.register_craftitem(":farming:mortar_pestle", {
  165. description = "Mortar and Pestle",
  166. inventory_image = "farming_mortar_pestle.png",
  167. groups = {food_mortar_pestle = 1, flammable = 2},
  168. })
  169. minetest.register_craft({
  170. output = "farming:mortar_pestle",
  171. recipe = {
  172. {"default:stone", "group:stick", "default:stone"},
  173. {"", "default:stone", ""},
  174. }
  175. })
  176. minetest.register_craftitem(":farming:juicer", {
  177. description = "Juicer",
  178. inventory_image = "farming_juicer.png",
  179. groups = {food_juicer = 1, flammable = 2},
  180. })
  181. minetest.register_craft({
  182. output = "farming:juicer",
  183. recipe = {
  184. {"", "default:stone", ""},
  185. {"default:stone", "", "default:stone"},
  186. }
  187. })
  188. minetest.register_craftitem(":farming:mixing_bowl", {
  189. description = "Glass Mixing Bowl",
  190. inventory_image = "farming_mixing_bowl.png",
  191. groups = {food_mixing_bowl = 1, flammable = 2},
  192. })
  193. minetest.register_craft({
  194. output = "farming:mixing_bowl",
  195. recipe = {
  196. {"default:glass", "group:stick", "default:glass"},
  197. {"", "default:glass", ""},
  198. }
  199. })
  200. minetest.register_craft( {
  201. type = "shapeless",
  202. output = "vessels:glass_fragments",
  203. recipe = {
  204. "farming:mixing_bowl",
  205. },
  206. })
  207. minetest.register_craftitem(":farming:sugar", {
  208. description = "Sugar",
  209. inventory_image = "farming_sugar.png",
  210. groups = {food_sugar = 1, flammable = 3},
  211. })
  212. minetest.register_craft({
  213. type = "cooking",
  214. cooktime = 3,
  215. output = "farming:sugar 2",
  216. recipe = "default:papyrus",
  217. })
  218. minetest.register_craftitem(":farming:blueberry_pie", {
  219. description = "Blueberry Pie",
  220. inventory_image = "farming_blueberry_pie.png",
  221. on_use = minetest.item_eat(6),
  222. })
  223. minetest.register_craft({
  224. output = "farming:blueberry_pie",
  225. type = "shapeless",
  226. recipe = {
  227. "farming:flour", "farming:sugar",
  228. "blueberries:fruit", "farming:baking_tray"
  229. },
  230. replacements = {{"farming:baking_tray", "farming:baking_tray"}}
  231. })
  232. minetest.register_craftitem(":farming:apple_pie", {
  233. description = "Apple Pie",
  234. inventory_image = "farming_apple_pie.png",
  235. on_use = minetest.item_eat(6),
  236. })
  237. minetest.register_craft({
  238. output = "farming:apple_pie",
  239. type = "shapeless",
  240. recipe = {
  241. "farming:flour", "farming:sugar",
  242. "basictrees:tree_apple", "farming:baking_tray"
  243. },
  244. replacements = {{"farming:baking_tray", "farming:baking_tray"}}
  245. })
  246. minetest.register_node(":farming:salt", {
  247. description = "Salt",
  248. inventory_image = "farming_salt.png",
  249. wield_image = "farming_salt.png",
  250. drawtype = "plantlike",
  251. visual_scale = 0.8,
  252. paramtype = "light",
  253. tiles = {"farming_salt.png"},
  254. groups = {food_salt = 1, vessel = 1, dig_immediate = 3, attached_node = 1},
  255. sounds = default.node_sound_defaults(),
  256. selection_box = {
  257. type = "fixed",
  258. fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
  259. },
  260. walkable = false,
  261. })
  262. minetest.register_craft({
  263. type = "cooking",
  264. cooktime = 15,
  265. output = "farming:salt",
  266. recipe = "bucket:bucket_water",
  267. replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
  268. })
  269. minetest.register_craft({
  270. type = "cooking",
  271. cooktime = 15,
  272. output = "farming:salt",
  273. recipe = "bucket:bucket_river_water",
  274. replacements = {{"bucket:bucket_river_water", "bucket:bucket_empty"}}
  275. })
  276. minetest.register_craftitem(":farming:carrot_juice", {
  277. description = "Carrot Juice",
  278. inventory_image = "farming_carrot_juice.png",
  279. on_use = minetest.item_eat(4, "vessels:drinking_glass"),
  280. groups = {vessel = 1},
  281. })
  282. minetest.register_craft({
  283. output = "farming:carrot_juice",
  284. type = "shapeless",
  285. recipe = {
  286. "vessels:drinking_glass", "carrot:regular", "farming:juicer"
  287. },
  288. replacements = {
  289. {"farming:juicer", "farming:juicer"},
  290. },
  291. })
  292. minetest.register_node(":farming:rose_water", {
  293. description = "Rose Water",
  294. inventory_image = "farming_rose_water.png",
  295. wield_image = "farming_rose_water.png",
  296. drawtype = "plantlike",
  297. visual_scale = 0.8,
  298. paramtype = "light",
  299. tiles = {"farming_rose_water.png"},
  300. groups = {food_rose_water = 1, vessel = 1, dig_immediate = 3, attached_node = 1},
  301. sounds = default.node_sound_defaults(),
  302. selection_box = {
  303. type = "fixed",
  304. fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
  305. },
  306. walkable = false,
  307. })
  308. minetest.register_craft({
  309. output = "farming:rose_water",
  310. recipe = {
  311. {"flowers:rose", "flowers:rose", "flowers:rose"},
  312. {"flowers:rose", "flowers:rose", "flowers:rose"},
  313. {"bucket:bucket_water", "farming:pot", "vessels:glass_bottle"},
  314. },
  315. replacements = {
  316. {"bucket:bucket_water", "bucket:bucket_empty"},
  317. {"farming:pot", "farming:pot"},
  318. }
  319. })
  320. minetest.register_craft({
  321. output = "farming:rose_water",
  322. recipe = {
  323. {"flowers:rose_white", "flowers:rose_white", "flowers:rose_white"},
  324. {"flowers:rose_white", "flowers:rose_white", "flowers:rose_white"},
  325. {"bucket:bucket_water", "farming:pot", "vessels:glass_bottle"},
  326. },
  327. replacements = {
  328. {"bucket:bucket_water", "bucket:bucket_empty"},
  329. {"farming:pot", "farming:pot"},
  330. }
  331. })
  332. minetest.register_node(":farming:scarecrow_bottom", {
  333. description = "Scarecrow ... Thing",
  334. paramtype = "light",
  335. sunlight_propagates = true,
  336. paramtype2 = "facedir",
  337. tiles = {"default_wood.png"},
  338. drawtype = "nodebox",
  339. node_box = {
  340. type = "fixed",
  341. fixed = {
  342. {-1/16, -8/16, -1/16, 1/16, 8/16, 1/16},
  343. {-12/16, 4/16, -1/16, 12/16, 2/16, 1/16},
  344. },
  345. },
  346. groups = utility.dig_groups("bigitem", {flammable = 2, attached_node = 1}),
  347. })
  348. minetest.register_craft({
  349. output = "farming:scarecrow_bottom",
  350. recipe = {
  351. {"", "group:stick", "",},
  352. {"group:stick", "group:stick", "group:stick",},
  353. {"", "group:stick", "",}
  354. }
  355. })
  356. minetest.register_craftitem(":farming:string", {
  357. description = "String",
  358. inventory_image = "farming_string.png",
  359. groups = {flammable = 2},
  360. })
  361. minetest.register_craft({
  362. output = "farming:string",
  363. recipe = {
  364. {"farming:cotton"},
  365. {"farming:cotton"},
  366. {"farming:cotton"},
  367. }
  368. })
  369. minetest.register_craft({
  370. type = "fuel",
  371. recipe = "farming:string",
  372. burntime = 1,
  373. })
  374. minetest.register_craft({
  375. type = "fuel",
  376. recipe = "farming:cotton",
  377. burntime = 1,
  378. })