init.lua 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  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. minetest.register_craft({
  44. type = "fuel",
  45. recipe = "farming:straw",
  46. burntime = 3,
  47. })
  48. minetest.register_craft({
  49. type = "fuel",
  50. recipe = "farming:straw_weathered",
  51. burntime = 3,
  52. })
  53. minetest.register_craft({
  54. type = "fuel",
  55. recipe = "darkage:straw_bale",
  56. burntime = 3*9,
  57. })
  58. minetest.register_craft({
  59. type = "fuel",
  60. recipe = "farming:wheat",
  61. burntime = 1,
  62. })
  63. minetest.register_craft({
  64. type = "cooking",
  65. cooktime = 3,
  66. output = "farming:toast",
  67. recipe = "farming:bread_slice"
  68. })
  69. minetest.register_craftitem(":farming:cutting_board", {
  70. description = "Cutting Board",
  71. inventory_image = "farming_cutting_board.png",
  72. groups = {food_cutting_board = 1, flammable = 2},
  73. })
  74. minetest.register_craft({
  75. output = "farming:cutting_board",
  76. recipe = {
  77. {"default:steel_ingot", "", ""},
  78. {"", "group:stick", ""},
  79. {"", "", "group:wood"},
  80. }
  81. })
  82. minetest.register_craftitem(":farming:saucepan", {
  83. description = "Saucepan",
  84. inventory_image = "farming_saucepan.png",
  85. groups = {food_saucepan = 1, flammable = 2},
  86. })
  87. minetest.register_craft({
  88. output = "farming:saucepan",
  89. recipe = {
  90. {"default:steel_ingot", "", ""},
  91. {"", "group:stick", ""},
  92. }
  93. })
  94. minetest.register_craftitem(":farming:pot", {
  95. description = "Cooking Pot",
  96. inventory_image = "farming_pot.png",
  97. groups = {food_pot = 1, flammable = 2},
  98. })
  99. minetest.register_craft({
  100. output = "farming:pot",
  101. recipe = {
  102. {"group:stick", "default:steel_ingot", "default:steel_ingot"},
  103. {"", "default:steel_ingot", "default:steel_ingot"},
  104. }
  105. })
  106. minetest.register_craftitem(":farming:baking_tray", {
  107. description = "Baking Tray",
  108. inventory_image = "farming_baking_tray.png",
  109. groups = {food_baking_tray = 1, flammable = 2},
  110. })
  111. minetest.register_craft({
  112. output = "farming:baking_tray",
  113. recipe = {
  114. {"default:clay_brick", "default:clay_brick", "default:clay_brick"},
  115. {"default:clay_brick", "", "default:clay_brick"},
  116. {"default:clay_brick", "default:clay_brick", "default:clay_brick"},
  117. }
  118. })
  119. minetest.register_craftitem(":farming:skillet", {
  120. description = "Skillet",
  121. inventory_image = "farming_skillet.png",
  122. groups = {food_skillet = 1, flammable = 2},
  123. })
  124. minetest.register_craft({
  125. output = "farming:skillet",
  126. recipe = {
  127. {"default:steel_ingot", "", ""},
  128. {"", "default:steel_ingot", ""},
  129. {"", "", "group:stick"},
  130. }
  131. })
  132. minetest.register_craftitem(":farming:mortar_pestle", {
  133. description = "Mortar and Pestle",
  134. inventory_image = "farming_mortar_pestle.png",
  135. groups = {food_mortar_pestle = 1, flammable = 2},
  136. })
  137. minetest.register_craft({
  138. output = "farming:mortar_pestle",
  139. recipe = {
  140. {"default:stone", "group:stick", "default:stone"},
  141. {"", "default:stone", ""},
  142. }
  143. })
  144. minetest.register_craftitem(":farming:juicer", {
  145. description = "Juicer",
  146. inventory_image = "farming_juicer.png",
  147. groups = {food_juicer = 1, flammable = 2},
  148. })
  149. minetest.register_craft({
  150. output = "farming:juicer",
  151. recipe = {
  152. {"", "default:stone", ""},
  153. {"default:stone", "", "default:stone"},
  154. }
  155. })
  156. minetest.register_craftitem(":farming:mixing_bowl", {
  157. description = "Glass Mixing Bowl",
  158. inventory_image = "farming_mixing_bowl.png",
  159. groups = {food_mixing_bowl = 1, flammable = 2},
  160. })
  161. minetest.register_craft({
  162. output = "farming:mixing_bowl",
  163. recipe = {
  164. {"default:glass", "group:stick", "default:glass"},
  165. {"", "default:glass", ""},
  166. }
  167. })
  168. minetest.register_craft( {
  169. type = "shapeless",
  170. output = "vessels:glass_fragments",
  171. recipe = {
  172. "farming:mixing_bowl",
  173. },
  174. })
  175. minetest.register_craftitem(":farming:sugar", {
  176. description = "Sugar",
  177. inventory_image = "farming_sugar.png",
  178. groups = {food_sugar = 1, flammable = 3},
  179. })
  180. minetest.register_craft({
  181. type = "cooking",
  182. cooktime = 3,
  183. output = "farming:sugar 2",
  184. recipe = "default:papyrus",
  185. })
  186. minetest.register_craftitem(":farming:blueberry_pie", {
  187. description = "Blueberry Pie",
  188. inventory_image = "farming_blueberry_pie.png",
  189. on_use = minetest.item_eat(6),
  190. })
  191. minetest.register_craft({
  192. output = "farming:blueberry_pie",
  193. type = "shapeless",
  194. recipe = {
  195. "farming:flour", "farming:sugar",
  196. "blueberries:fruit", "farming:baking_tray"
  197. },
  198. replacements = {{"farming:baking_tray", "farming:baking_tray"}}
  199. })
  200. minetest.register_node(":farming:salt", {
  201. description = "Salt",
  202. inventory_image = "farming_salt.png",
  203. wield_image = "farming_salt.png",
  204. drawtype = "plantlike",
  205. visual_scale = 0.8,
  206. paramtype = "light",
  207. tiles = {"farming_salt.png"},
  208. groups = {food_salt = 1, vessel = 1, dig_immediate = 3, attached_node = 1},
  209. sounds = default.node_sound_defaults(),
  210. selection_box = {
  211. type = "fixed",
  212. fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
  213. },
  214. walkable = false,
  215. })
  216. minetest.register_craft({
  217. type = "cooking",
  218. cooktime = 15,
  219. output = "farming:salt",
  220. recipe = "bucket:bucket_water",
  221. replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
  222. })
  223. minetest.register_craft({
  224. type = "cooking",
  225. cooktime = 15,
  226. output = "farming:salt",
  227. recipe = "bucket:bucket_river_water",
  228. replacements = {{"bucket:bucket_river_water", "bucket:bucket_empty"}}
  229. })
  230. minetest.register_craftitem(":farming:carrot_juice", {
  231. description = "Carrot Juice",
  232. inventory_image = "farming_carrot_juice.png",
  233. on_use = minetest.item_eat(4, "vessels:drinking_glass"),
  234. groups = {vessel = 1},
  235. })
  236. minetest.register_craft({
  237. output = "farming:carrot_juice",
  238. type = "shapeless",
  239. recipe = {
  240. "vessels:drinking_glass", "carrot:regular", "farming:juicer"
  241. },
  242. replacements = {
  243. {"farming:juicer", "farming:juicer"},
  244. },
  245. })
  246. minetest.register_node(":farming:rose_water", {
  247. description = "Rose Water",
  248. inventory_image = "farming_rose_water.png",
  249. wield_image = "farming_rose_water.png",
  250. drawtype = "plantlike",
  251. visual_scale = 0.8,
  252. paramtype = "light",
  253. tiles = {"farming_rose_water.png"},
  254. groups = {food_rose_water = 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. output = "farming:rose_water",
  264. recipe = {
  265. {"flowers:rose", "flowers:rose", "flowers:rose"},
  266. {"flowers:rose", "flowers:rose", "flowers:rose"},
  267. {"bucket:bucket_water", "farming:pot", "vessels:glass_bottle"},
  268. },
  269. replacements = {
  270. {"bucket:bucket_water", "bucket:bucket_empty"},
  271. {"farming:pot", "farming:pot"},
  272. }
  273. })
  274. minetest.register_node(":farming:scarecrow_bottom", {
  275. description = "Scarecrow ... Thing",
  276. paramtype = "light",
  277. sunlight_propagates = true,
  278. paramtype2 = "facedir",
  279. tiles = {"default_wood.png"},
  280. drawtype = "nodebox",
  281. node_box = {
  282. type = "fixed",
  283. fixed = {
  284. {-1/16, -8/16, -1/16, 1/16, 8/16, 1/16},
  285. {-12/16, 4/16, -1/16, 12/16, 2/16, 1/16},
  286. },
  287. },
  288. groups = utility.dig_groups("bigitem", {flammable = 2, attached_node = 1}),
  289. })
  290. minetest.register_craft({
  291. output = "farming:scarecrow_bottom",
  292. recipe = {
  293. {"", "group:stick", "",},
  294. {"group:stick", "group:stick", "group:stick",},
  295. {"", "group:stick", "",}
  296. }
  297. })
  298. minetest.register_craftitem(":farming:string", {
  299. description = "String",
  300. inventory_image = "farming_string.png",
  301. groups = {flammable = 2},
  302. })
  303. minetest.register_craft({
  304. output = "farming:string",
  305. recipe = {
  306. {"farming:cotton"},
  307. {"farming:cotton"},
  308. {"farming:cotton"},
  309. }
  310. })
  311. minetest.register_craft({
  312. type = "fuel",
  313. recipe = "farming:string",
  314. burntime = 1,
  315. })
  316. minetest.register_craft({
  317. type = "fuel",
  318. recipe = "farming:cotton",
  319. burntime = 1,
  320. })