wild_food.lua 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. -- The wild plants drop food that can be eaten or crafted to get seeds
  2. -- BARLEY
  3. minetest.register_node("lottplants:barley_wild", {
  4. description = "Wild Barley",
  5. drawtype = "plantlike",
  6. tiles = { "lottfarming_barley_3.png" },
  7. inventory_image = "lottfarming_barley_3.png",
  8. wield_image = "lottfarming_barley_3.png",
  9. sunlight_propagates = true,
  10. paramtype = "light",
  11. paramtype2 = "meshoptions",
  12. place_param2 = 3,
  13. waving = 1,
  14. drop = {
  15. max_items = 3,
  16. items = {
  17. { items = {'lottfarming:barley'} },
  18. { items = {'lottfarming:barley'}, rarity = 5},
  19. { items = {'lottfarming:barley'}, rarity = 10}
  20. }
  21. },
  22. walkable = false,
  23. buildable_to = true,
  24. groups = {snappy=3,flammable=2,flora=1,attached_node=1},
  25. sounds = default.node_sound_leaves_defaults(),
  26. selection_box = {
  27. type = "fixed",
  28. fixed = { -0.3, -0.5, -0.3, 0.3, 0.3, 0.3 },
  29. },
  30. })
  31. -- BERRIES
  32. minetest.register_node("lottplants:berries_wild", {
  33. description = "Wild Berries",
  34. drawtype = "plantlike",
  35. tiles = { "lottplants_berries_wild.png" },
  36. inventory_image = "lottplants_berries_wild.png",
  37. wield_image = "lottplants_berries_wild.png",
  38. sunlight_propagates = true,
  39. paramtype = "light",
  40. paramtype2 = "meshoptions",
  41. place_param2 = 34,
  42. waving = 1,
  43. drop = {
  44. max_items = 3,
  45. items = {
  46. { items = {'lottfarming:berries'} },
  47. { items = {'lottfarming:berries'}, rarity = 5},
  48. { items = {'lottfarming:berries '}, rarity = 10}
  49. }
  50. },
  51. walkable = false,
  52. buildable_to = true,
  53. groups = {snappy=3,flammable=2,flora=1,attached_node=1},
  54. sounds = default.node_sound_leaves_defaults(),
  55. selection_box = {
  56. type = "fixed",
  57. fixed = { -0.25, -0.5, -0.25, 0.25, 0.2, 0.25 },
  58. },
  59. })
  60. --CORN
  61. minetest.register_node("lottplants:corn_wild", {
  62. description = "Wild Corn plant",
  63. drawtype = "plantlike",
  64. tiles = { "lottplants_corn_wild.png" },
  65. inventory_image = "lottplants_corn_wild.png",
  66. wield_image = "lottplants_corn_wild.png",
  67. sunlight_propagates = true,
  68. paramtype = "light",
  69. paramtype2 = "meshoptions",
  70. place_param2 = 3,
  71. waving = 1,
  72. drop = {
  73. max_items = 3,
  74. items = {
  75. { items = {'lottfarming:corn'} },
  76. { items = {'lottfarming:corn'}, rarity = 5},
  77. { items = {'lottfarming:corn 9'}, rarity = 10}
  78. }
  79. },
  80. walkable = false,
  81. buildable_to = true,
  82. groups = {snappy=3,flammable=2,flora=1,attached_node=1},
  83. sounds = default.node_sound_leaves_defaults(),
  84. selection_box = {
  85. type = "fixed",
  86. fixed = { -0.4, -0.5, -0.4, 0.4, 0.3, 0.4 },
  87. },
  88. })
  89. -- CABBAGE
  90. minetest.register_node("lottplants:cabbage_wild", {
  91. description = "Wild Cabbage",
  92. paramtype2 = "facedir",
  93. tiles = {"lottfarming_cabbage_top.png", "lottfarming_cabbage_top.png", "lottfarming_cabbage_side.png", "lottfarming_cabbage_side.png", "lottfarming_cabbage_side.png", "lottfarming_cabbage_side.png"},
  94. sunlight_propagates = true,
  95. paramtype = "light",
  96. drop = {
  97. max_items = 3,
  98. items = {
  99. { items = {'lottfarming:cabbage'} },
  100. { items = {'lottfarming:cabbage'}, rarity = 5},
  101. { items = {'lottfarming:cabbage'}, rarity = 10}
  102. }
  103. },
  104. groups = {snappy=3,flammable=2,flora=1},
  105. sounds = default.node_sound_leaves_defaults(),
  106. })
  107. -- MELON
  108. minetest.register_node("lottplants:melon_wild", {
  109. description = "Wild Melon",
  110. paramtype2 = "facedir",
  111. tiles = {"lottfarming_melon_top.png", "lottfarming_melon_top.png", "lottfarming_melon_side.png", "lottfarming_melon_side.png", "lottfarming_melon_side.png", "lottfarming_melon_side.png"},
  112. sunlight_propagates = true,
  113. paramtype = "light",
  114. drop = {
  115. max_items = 3,
  116. items = {
  117. { items = {'lottfarming:melon 3'} },
  118. { items = {'lottfarming:melon 6'}, rarity = 3},
  119. { items = {'lottfarming:melon 6'}, rarity = 8}
  120. }
  121. },
  122. groups = {snappy=3,flammable=2,flora=1},
  123. sounds = default.node_sound_leaves_defaults(),
  124. })
  125. -- MUSHROOMS
  126. minetest.register_node("lottplants:mushroom_wild", {
  127. description = "Mushroom Wild",
  128. drawtype = "plantlike",
  129. tiles = { "lottplants_mushroom_wild.png" },
  130. inventory_image = "lottplants_mushroom_wild.png",
  131. wield_image = "lottplants_mushroom_wild.png",
  132. sunlight_propagates = true,
  133. paramtype = "light",
  134. paramtype2 = "meshoptions",
  135. place_param2 = 9,
  136. waving = 1,
  137. drop = {
  138. max_items = 5,
  139. items = {
  140. { items = {'lottfarming:brown_mushroom'} },
  141. { items = {'lottfarming:red_mushroom'}, rarity = 5},
  142. { items = {'lottfarming:blue_mushroom'}, rarity = 10},
  143. { items = {'lottfarming:green_mushroom'}, rarity = 20},
  144. { items = {'lottfarming:white_mushroom'}, rarity = 20},
  145. { items = {'lottfarming:brown_mushroom_spore'}, rarity = 5},
  146. { items = {'lottfarming:red_mushroom_spore'}, rarity = 10},
  147. { items = {'lottfarming:blue_mushroom_spore'}, rarity = 20},
  148. { items = {'lottfarming:green_mushroom_spore'}, rarity = 20},
  149. { items = {'lottfarming:white_mushroom_spore'}, rarity = 20}
  150. }
  151. },
  152. walkable = false,
  153. buildable_to = true,
  154. groups = {snappy=3,flammable=2,flora=1,attached_node=1},
  155. sounds = default.node_sound_leaves_defaults(),
  156. selection_box = {
  157. type = "fixed",
  158. fixed = { -0.3, -0.5, -0.3, 0.3, 0.35, 0.3 },
  159. },
  160. })
  161. -- PIPEWEED
  162. minetest.register_node("lottplants:pipeweed_wild", {
  163. description = "Pipeweed Wild",
  164. drawtype = "plantlike",
  165. tiles = { "lottplants_pipeweed_wild.png" },
  166. inventory_image = "lottplants_pipeweed_wild.png",
  167. wield_image = "lottplants_pipeweed_wild.png",
  168. sunlight_propagates = true,
  169. paramtype = "light",
  170. paramtype2 = "meshoptions",
  171. place_param2 = 34,
  172. waving = 1,
  173. drop = {
  174. max_items = 3,
  175. items = {
  176. { items = {'lottfarming:pipeweed'} },
  177. { items = {'lottfarming:pipeweed'}, rarity = 5},
  178. { items = {'lottfarming:pipeweed'}, rarity = 10}
  179. }
  180. },
  181. walkable = false,
  182. buildable_to = true,
  183. groups = {snappy=3,flammable=2,flora=1,attached_node=1},
  184. sounds = default.node_sound_leaves_defaults(),
  185. selection_box = {
  186. type = "fixed",
  187. fixed = { -0.2, -0.5, -0.2, 0.2, 0.3, 0.2 },
  188. },
  189. })
  190. -- POTATO
  191. minetest.register_node("lottplants:potato_wild", {
  192. description = "Potato Wild",
  193. drawtype = "plantlike",
  194. tiles = { "lottplants_potato_wild.png" },
  195. inventory_image = "lottplants_potato_wild.png",
  196. wield_image = "lottplants_potato_wild.png",
  197. sunlight_propagates = true,
  198. paramtype = "light",
  199. paramtype2 = "meshoptions",
  200. place_param2 = 40,
  201. waving = 1,
  202. drop = {
  203. max_items = 3,
  204. items = {
  205. { items = {'lottfarming:potato'} },
  206. { items = {'lottfarming:potato'}, rarity = 5},
  207. { items = {'lottfarming:potato'}, rarity = 10}
  208. }
  209. },
  210. walkable = false,
  211. buildable_to = true,
  212. groups = {snappy=3,flammable=2,flora=1,attached_node=1},
  213. sounds = default.node_sound_leaves_defaults(),
  214. selection_box = {
  215. type = "fixed",
  216. fixed = { -0.2, -0.5, -0.2, 0.2, 0.2, 0.2 },
  217. },
  218. })
  219. -- TOMATOES
  220. minetest.register_node("lottplants:tomatoes_wild", {
  221. description = "Wild Tomatoes",
  222. drawtype = "plantlike",
  223. tiles = { "lottplants_tomatoes_wild.png" },
  224. inventory_image = "lottplants_tomatoes_wild.png",
  225. wield_image = "lottplants_tomatoes_wild.png",
  226. sunlight_propagates = true,
  227. paramtype = "light",
  228. paramtype2 = "meshoptions",
  229. place_param2 = 10,
  230. waving = 1,
  231. drop = {
  232. max_items = 3,
  233. items = {
  234. { items = {'lottfarming:tomatoes'} },
  235. { items = {'lottfarming:tomatoes'}, rarity = 5},
  236. { items = {'lottfarming:tomatoes'}, rarity = 10}
  237. }
  238. },
  239. walkable = false,
  240. buildable_to = true,
  241. groups = {snappy=3,flammable=2,flora=1,attached_node=1},
  242. sounds = default.node_sound_leaves_defaults(),
  243. selection_box = {
  244. type = "fixed",
  245. fixed = { -0.35, -0.5, -0.35, 0.35, 0.25, 0.35 },
  246. },
  247. })
  248. -- TURNIPS
  249. minetest.register_node("lottplants:turnips_wild", {
  250. description = "Wild Turnips",
  251. drawtype = "plantlike",
  252. tiles = { "lottplants_turnips_wild.png" },
  253. inventory_image = "lottplants_turnips_wild.png",
  254. wield_image = "lottplants_turnips_wild.png",
  255. sunlight_propagates = true,
  256. paramtype = "light",
  257. paramtype2 = "meshoptions",
  258. place_param2 = 40,
  259. waving = 1,
  260. drop = {
  261. max_items = 3,
  262. items = {
  263. { items = {'lottfarming:turnips'} },
  264. { items = {'lottfarming:turnips'}, rarity = 10 },
  265. { items = {'lottfarming:turnips'}, rarity = 5}
  266. }
  267. },
  268. walkable = false,
  269. buildable_to = true,
  270. groups = {snappy=3,flammable=2,flora=1,attached_node=1},
  271. sounds = default.node_sound_leaves_defaults(),
  272. selection_box = {
  273. type = "fixed",
  274. fixed = { -0.2, -0.5, -0.2, 0.2, 0.2, 0.2 },
  275. },
  276. })