MineClone2/mods/blocks/biota/flower.lua

34 lines
876 B
Lua

local common_defs = {
small = {
drawtype = "plantlike",
groups = {handy = 1, natural_blocks = 1, small_flowers = 1},
paramtype = "light",
paramtype2 = "meshoptions",
place_param2 = 8,
sounds = mcl_sounds.node_sound_leaves_defaults(),
sunlight_propagates = true,
walkable = false,
waving = 1
}
}
local small_flowers = {
["allium"] = {},
["azure_bluet"] = {},
["blue_orchid"] = {},
["cornflower"] = {},
["dandelion"] = {},
["lily_of_the_valley"] = {},
["orange_tulip"] = {},
["oxeye_daisy"] = {},
["pink_tulip"] = {},
["poppy"] = {},
["red_tulip"] = {},
["white_tulip"] = {},
["wither_rose"] = {}
}
for identifier, definitions in pairs(small_flowers) do
voxelibre.register_block(identifier, table.merge(common_defs.small, definitions))
end