flowers.lua 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. -- FLOWERS
  2. minetest.register_node("lottplants:athelas", {
  3. description = "Athelas",
  4. drawtype = "plantlike",
  5. tiles = { "lottplants_athelas.png" },
  6. inventory_image = "lottplants_athelas.png",
  7. wield_image = "lottplants_athelas.png",
  8. sunlight_propagates = true,
  9. paramtype = "light",
  10. paramtype2 = "meshoptions",
  11. place_param2 = 2,
  12. waving = 1,
  13. drop = {
  14. max_items = 3,
  15. items = {
  16. { items = {'lottfarming:athelas'} },
  17. { items = {'lottfarming:athelas'}, rarity = 5},
  18. }
  19. },
  20. walkable = false,
  21. buildable_to = true,
  22. groups = {snappy=3,flammable=2,flora=1,attached_node=1},
  23. sounds = default.node_sound_leaves_defaults(),
  24. selection_box = {
  25. type = "fixed",
  26. fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
  27. },
  28. })
  29. minetest.register_node("lottplants:anemones", {
  30. description = "Anemones",
  31. drawtype = "plantlike",
  32. tiles = { "lottplants_anemones.png" },
  33. inventory_image = "lottplants_anemones.png",
  34. wield_image = "lottplants_anemones.png",
  35. sunlight_propagates = true,
  36. paramtype = "light",
  37. paramtype2 = "meshoptions",
  38. place_param2 = 40,
  39. waving = 1,
  40. walkable = false,
  41. buildable_to = true,
  42. drop = {
  43. max_items = 1,
  44. items = {
  45. { items = {'lottplants:honey'}, rarity = 20},
  46. { items = {'lottplants:anemones'} },
  47. }
  48. },
  49. groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_blue=1},
  50. sounds = default.node_sound_leaves_defaults(),
  51. selection_box = {
  52. type = "fixed",
  53. fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
  54. },
  55. })
  56. minetest.register_node("lottplants:asphodel", {
  57. drawtype = "plantlike",
  58. tiles = { "lottplants_asphodel.png" },
  59. sunlight_propagates = true,
  60. paramtype = "light",
  61. paramtype2 = "meshoptions",
  62. place_param2 = 40,
  63. waving = 1,
  64. walkable = false,
  65. buildable_to = true,
  66. drop = {
  67. max_items = 1,
  68. items = {
  69. { items = {'lottplants:honey'}, rarity = 20},
  70. { items = {'lottplants:asphodel'} },
  71. }
  72. },
  73. groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_white=1},
  74. sounds = default.node_sound_leaves_defaults(),
  75. selection_box = {
  76. type = "fixed",
  77. fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
  78. },
  79. })
  80. minetest.register_node("lottplants:eglantive", {
  81. description = "Eglantive",
  82. drawtype = "plantlike",
  83. tiles = { "lottplants_eglantive.png" },
  84. inventory_image = "lottplants_eglantive.png",
  85. wield_image = "lottplants_eglantive.png",
  86. sunlight_propagates = true,
  87. paramtype = "light",
  88. paramtype2 = "meshoptions",
  89. place_param2 = 40,
  90. waving = 1,
  91. walkable = false,
  92. buildable_to = true,
  93. drop = {
  94. max_items = 1,
  95. items = {
  96. { items = {'lottplants:honey'}, rarity = 20},
  97. { items = {'lottplants:eglantive'} },
  98. }
  99. },
  100. groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_pink=1},
  101. sounds = default.node_sound_leaves_defaults(),
  102. selection_box = {
  103. type = "fixed",
  104. fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
  105. },
  106. })
  107. minetest.register_node("lottplants:elanor", {
  108. drawtype = "plantlike",
  109. tiles = { "lottplants_elanor.png" },
  110. inventory_image = "lottplants_elanor.png",
  111. wield_image = "lottplants_elanor.png",
  112. sunlight_propagates = true,
  113. paramtype = "light",
  114. paramtype2 = "meshoptions",
  115. place_param2 = 10,
  116. waving = 1,
  117. walkable = false,
  118. buildable_to = true,
  119. drop = {
  120. max_items = 1,
  121. items = {
  122. { items = {'lottplants:honey'}, rarity = 20},
  123. { items = {'lottplants:elanor'} },
  124. }
  125. },
  126. groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_yellow=1},
  127. sounds = default.node_sound_leaves_defaults(),
  128. selection_box = {
  129. type = "fixed",
  130. fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
  131. },
  132. })
  133. minetest.register_node("lottplants:iris", {
  134. description = "Iris",
  135. drawtype = "plantlike",
  136. tiles = { "lottplants_iris.png" },
  137. inventory_image = "lottplants_iris.png",
  138. wield_image = "lottplants_iris.png",
  139. sunlight_propagates = true,
  140. paramtype = "light",
  141. paramtype2 = "meshoptions",
  142. place_param2 = 40,
  143. waving = 1,
  144. walkable = false,
  145. buildable_to = true,
  146. drop = {
  147. max_items = 1,
  148. items = {
  149. { items = {'lottplants:honey'}, rarity = 20},
  150. { items = {'lottplants:iris'}}
  151. }
  152. },
  153. groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_yellow=1},
  154. sounds = default.node_sound_leaves_defaults(),
  155. selection_box = {
  156. type = "fixed",
  157. fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
  158. },
  159. })
  160. minetest.register_node("lottplants:lissuin", {
  161. description = "Lissuin",
  162. drawtype = "plantlike",
  163. tiles = { "lottplants_lissuin.png" },
  164. inventory_image = "lottplants_lissuin.png",
  165. wield_image = "lottplants_lissuin.png",
  166. sunlight_propagates = true,
  167. paramtype = "light",
  168. paramtype2 = "meshoptions",
  169. place_param2 = 41,
  170. waving = 1,
  171. walkable = false,
  172. buildable_to = true,
  173. drop = {
  174. max_items = 1,
  175. items = {
  176. { items = {'lottplants:honey'}, rarity = 20},
  177. { items = {'lottplants:lissuin'} },
  178. }
  179. },
  180. groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_pink=1},
  181. sounds = default.node_sound_leaves_defaults(),
  182. selection_box = {
  183. type = "fixed",
  184. fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
  185. },
  186. })
  187. minetest.register_node("lottplants:mallos", {
  188. description = "Mallos",
  189. drawtype = "plantlike",
  190. tiles = { "lottplants_mallos.png" },
  191. inventory_image = "lottplants_mallos.png",
  192. wield_image = "lottplants_mallos.png",
  193. sunlight_propagates = true,
  194. paramtype = "light",
  195. paramtype2 = "meshoptions",
  196. place_param2 = 42,
  197. waving = 1,
  198. walkable = false,
  199. buildable_to = true,
  200. drop = {
  201. max_items = 1,
  202. items = {
  203. { items = {'lottplants:honey'}, rarity = 20},
  204. { items = {'lottplants:mallos'} },
  205. }
  206. },
  207. groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_yellow=1},
  208. sounds = default.node_sound_leaves_defaults(),
  209. selection_box = {
  210. type = "fixed",
  211. fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
  212. },
  213. })
  214. minetest.register_node("lottplants:niphredil", {
  215. description = "Niphredil",
  216. drawtype = "plantlike",
  217. tiles = { "lottplants_niphredil.png" },
  218. inventory_image = "lottplants_niphredil.png",
  219. wield_image = "lottplants_niphredil.png",
  220. sunlight_propagates = true,
  221. paramtype = "light",
  222. paramtype2 = "meshoptions",
  223. place_param2 = 8,
  224. waving = 1,
  225. walkable = false,
  226. buildable_to = true,
  227. drop = {
  228. max_items = 1,
  229. items = {
  230. { items = {'lottplants:honey'}, rarity = 20},
  231. { items = {'lottplants:niphredil'} },
  232. }
  233. },
  234. groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_brown=1},
  235. sounds = default.node_sound_leaves_defaults(),
  236. selection_box = {
  237. type = "fixed",
  238. fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
  239. },
  240. })
  241. minetest.register_node("lottplants:seregon", {
  242. description = "Seregon",
  243. drawtype = "plantlike",
  244. tiles = { "lottplants_seregon.png" },
  245. inventory_image = "lottplants_seregon.png",
  246. wield_image = "lottplants_seregon.png",
  247. sunlight_propagates = true,
  248. paramtype = "light",
  249. paramtype2 = "meshoptions",
  250. place_param2 = 40,
  251. waving = 1,
  252. walkable = false,
  253. buildable_to = true,
  254. drop = {
  255. max_items = 2,
  256. items = {
  257. { items = {'lottplants:seregon'} },
  258. { items = {'lottplants:honey'}, rarity = 20},
  259. }
  260. },
  261. groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_red=1},
  262. sounds = default.node_sound_leaves_defaults(),
  263. selection_box = {
  264. type = "fixed",
  265. fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
  266. },
  267. })
  268. local default_flowers = {
  269. "dandelion_white",
  270. "dandelion_yellow",
  271. "geranium",
  272. "tulip",
  273. "rose",
  274. "viola",
  275. }
  276. for _, v in pairs(default_flowers) do
  277. minetest.override_item("flowers:" .. v, {
  278. drop = {
  279. max_items = 1,
  280. items = {
  281. {items = {'lottplants:honey'}, rarity = 20},
  282. {items = {"flowers:" .. v}},
  283. }
  284. }
  285. })
  286. end
  287. minetest.register_alias("lottplants:anemones_fake", "lottplants:anemones")
  288. minetest.register_alias("lottplants:asphodel_fake", "lottplants:asphodel")
  289. minetest.register_alias("lottplants:eglantive_fake", "lottplants:eglantive")
  290. minetest.register_alias("lottplants:elanor_fake", "lottplants:elanor")
  291. minetest.register_alias("lottplants:iris_fake", "lottplants:iris")
  292. minetest.register_alias("lottplants:lissuin_fake", "lottplants:lissuin")
  293. minetest.register_alias("lottplants:mallos_fake", "lottplants:mallos")
  294. minetest.register_alias("lottplants:niphredil_fake", "lottplants:niphredil")
  295. minetest.register_alias("lottplants:seregon_fake", "lottplants:seregon")