123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309 |
- -- FLOWERS
- minetest.register_node("lottplants:athelas", {
- description = "Athelas",
- drawtype = "plantlike",
- tiles = { "lottplants_athelas.png" },
- inventory_image = "lottplants_athelas.png",
- wield_image = "lottplants_athelas.png",
- sunlight_propagates = true,
- paramtype = "light",
- paramtype2 = "meshoptions",
- place_param2 = 2,
- waving = 1,
- drop = {
- max_items = 3,
- items = {
- { items = {'lottfarming:athelas'} },
- { items = {'lottfarming:athelas'}, rarity = 5},
- }
- },
- walkable = false,
- buildable_to = true,
- groups = {snappy=3,flammable=2,flora=1,attached_node=1},
- sounds = default.node_sound_leaves_defaults(),
- selection_box = {
- type = "fixed",
- fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
- },
- })
- minetest.register_node("lottplants:anemones", {
- description = "Anemones",
- drawtype = "plantlike",
- tiles = { "lottplants_anemones.png" },
- inventory_image = "lottplants_anemones.png",
- wield_image = "lottplants_anemones.png",
- sunlight_propagates = true,
- paramtype = "light",
- paramtype2 = "meshoptions",
- place_param2 = 40,
- waving = 1,
- walkable = false,
- buildable_to = true,
- drop = {
- max_items = 1,
- items = {
- { items = {'lottplants:honey'}, rarity = 20},
- { items = {'lottplants:anemones'} },
- }
- },
- groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_blue=1},
- sounds = default.node_sound_leaves_defaults(),
- selection_box = {
- type = "fixed",
- fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
- },
- })
- minetest.register_node("lottplants:asphodel", {
- drawtype = "plantlike",
- tiles = { "lottplants_asphodel.png" },
- sunlight_propagates = true,
- paramtype = "light",
- paramtype2 = "meshoptions",
- place_param2 = 40,
- waving = 1,
- walkable = false,
- buildable_to = true,
- drop = {
- max_items = 1,
- items = {
- { items = {'lottplants:honey'}, rarity = 20},
- { items = {'lottplants:asphodel'} },
- }
- },
- groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_white=1},
- sounds = default.node_sound_leaves_defaults(),
- selection_box = {
- type = "fixed",
- fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
- },
- })
- minetest.register_node("lottplants:eglantive", {
- description = "Eglantive",
- drawtype = "plantlike",
- tiles = { "lottplants_eglantive.png" },
- inventory_image = "lottplants_eglantive.png",
- wield_image = "lottplants_eglantive.png",
- sunlight_propagates = true,
- paramtype = "light",
- paramtype2 = "meshoptions",
- place_param2 = 40,
- waving = 1,
- walkable = false,
- buildable_to = true,
- drop = {
- max_items = 1,
- items = {
- { items = {'lottplants:honey'}, rarity = 20},
- { items = {'lottplants:eglantive'} },
- }
- },
- groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_pink=1},
- sounds = default.node_sound_leaves_defaults(),
- selection_box = {
- type = "fixed",
- fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
- },
- })
- minetest.register_node("lottplants:elanor", {
- drawtype = "plantlike",
- tiles = { "lottplants_elanor.png" },
- inventory_image = "lottplants_elanor.png",
- wield_image = "lottplants_elanor.png",
- sunlight_propagates = true,
- paramtype = "light",
- paramtype2 = "meshoptions",
- place_param2 = 10,
- waving = 1,
- walkable = false,
- buildable_to = true,
- drop = {
- max_items = 1,
- items = {
- { items = {'lottplants:honey'}, rarity = 20},
- { items = {'lottplants:elanor'} },
- }
- },
- groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_yellow=1},
- sounds = default.node_sound_leaves_defaults(),
- selection_box = {
- type = "fixed",
- fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
- },
- })
- minetest.register_node("lottplants:iris", {
- description = "Iris",
- drawtype = "plantlike",
- tiles = { "lottplants_iris.png" },
- inventory_image = "lottplants_iris.png",
- wield_image = "lottplants_iris.png",
- sunlight_propagates = true,
- paramtype = "light",
- paramtype2 = "meshoptions",
- place_param2 = 40,
- waving = 1,
- walkable = false,
- buildable_to = true,
- drop = {
- max_items = 1,
- items = {
- { items = {'lottplants:honey'}, rarity = 20},
- { items = {'lottplants:iris'}}
- }
- },
- groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_yellow=1},
- sounds = default.node_sound_leaves_defaults(),
- selection_box = {
- type = "fixed",
- fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
- },
- })
- minetest.register_node("lottplants:lissuin", {
- description = "Lissuin",
- drawtype = "plantlike",
- tiles = { "lottplants_lissuin.png" },
- inventory_image = "lottplants_lissuin.png",
- wield_image = "lottplants_lissuin.png",
- sunlight_propagates = true,
- paramtype = "light",
- paramtype2 = "meshoptions",
- place_param2 = 41,
- waving = 1,
- walkable = false,
- buildable_to = true,
- drop = {
- max_items = 1,
- items = {
- { items = {'lottplants:honey'}, rarity = 20},
- { items = {'lottplants:lissuin'} },
- }
- },
- groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_pink=1},
- sounds = default.node_sound_leaves_defaults(),
- selection_box = {
- type = "fixed",
- fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
- },
- })
- minetest.register_node("lottplants:mallos", {
- description = "Mallos",
- drawtype = "plantlike",
- tiles = { "lottplants_mallos.png" },
- inventory_image = "lottplants_mallos.png",
- wield_image = "lottplants_mallos.png",
- sunlight_propagates = true,
- paramtype = "light",
- paramtype2 = "meshoptions",
- place_param2 = 42,
- waving = 1,
- walkable = false,
- buildable_to = true,
- drop = {
- max_items = 1,
- items = {
- { items = {'lottplants:honey'}, rarity = 20},
- { items = {'lottplants:mallos'} },
- }
- },
- groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_yellow=1},
- sounds = default.node_sound_leaves_defaults(),
- selection_box = {
- type = "fixed",
- fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
- },
- })
- minetest.register_node("lottplants:niphredil", {
- description = "Niphredil",
- drawtype = "plantlike",
- tiles = { "lottplants_niphredil.png" },
- inventory_image = "lottplants_niphredil.png",
- wield_image = "lottplants_niphredil.png",
- sunlight_propagates = true,
- paramtype = "light",
- paramtype2 = "meshoptions",
- place_param2 = 8,
- waving = 1,
- walkable = false,
- buildable_to = true,
- drop = {
- max_items = 1,
- items = {
- { items = {'lottplants:honey'}, rarity = 20},
- { items = {'lottplants:niphredil'} },
- }
- },
- groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_brown=1},
- sounds = default.node_sound_leaves_defaults(),
- selection_box = {
- type = "fixed",
- fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
- },
- })
- minetest.register_node("lottplants:seregon", {
- description = "Seregon",
- drawtype = "plantlike",
- tiles = { "lottplants_seregon.png" },
- inventory_image = "lottplants_seregon.png",
- wield_image = "lottplants_seregon.png",
- sunlight_propagates = true,
- paramtype = "light",
- paramtype2 = "meshoptions",
- place_param2 = 40,
- waving = 1,
- walkable = false,
- buildable_to = true,
- drop = {
- max_items = 2,
- items = {
- { items = {'lottplants:seregon'} },
- { items = {'lottplants:honey'}, rarity = 20},
- }
- },
- groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1,color_red=1},
- sounds = default.node_sound_leaves_defaults(),
- selection_box = {
- type = "fixed",
- fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
- },
- })
- local default_flowers = {
- "dandelion_white",
- "dandelion_yellow",
- "geranium",
- "tulip",
- "rose",
- "viola",
- }
- for _, v in pairs(default_flowers) do
- minetest.override_item("flowers:" .. v, {
- drop = {
- max_items = 1,
- items = {
- {items = {'lottplants:honey'}, rarity = 20},
- {items = {"flowers:" .. v}},
- }
- }
- })
- end
- minetest.register_alias("lottplants:anemones_fake", "lottplants:anemones")
- minetest.register_alias("lottplants:asphodel_fake", "lottplants:asphodel")
- minetest.register_alias("lottplants:eglantive_fake", "lottplants:eglantive")
- minetest.register_alias("lottplants:elanor_fake", "lottplants:elanor")
- minetest.register_alias("lottplants:iris_fake", "lottplants:iris")
- minetest.register_alias("lottplants:lissuin_fake", "lottplants:lissuin")
- minetest.register_alias("lottplants:mallos_fake", "lottplants:mallos")
- minetest.register_alias("lottplants:niphredil_fake", "lottplants:niphredil")
- minetest.register_alias("lottplants:seregon_fake", "lottplants:seregon")
|