Update 'mods/flowers/init.lua'
This commit is contained in:
parent
9d0835fb6a
commit
775db8ad0b
|
@ -21,15 +21,6 @@ dofile(minetest.get_modpath("flowers") .. "/mapgen.lua")
|
||||||
-- Flowers
|
-- Flowers
|
||||||
--
|
--
|
||||||
|
|
||||||
-- Aliases for original flowers mod
|
|
||||||
|
|
||||||
minetest.register_alias("flowers:flower_rose", "flowers:rose")
|
|
||||||
minetest.register_alias("flowers:flower_tulip", "flowers:tulip")
|
|
||||||
minetest.register_alias("flowers:flower_dandelion_yellow", "flowers:dandelion_yellow")
|
|
||||||
minetest.register_alias("flowers:flower_geranium", "flowers:geranium")
|
|
||||||
minetest.register_alias("flowers:flower_viola", "flowers:viola")
|
|
||||||
minetest.register_alias("flowers:flower_dandelion_white", "flowers:dandelion_white")
|
|
||||||
|
|
||||||
|
|
||||||
-- Flower registration
|
-- Flower registration
|
||||||
|
|
||||||
|
@ -44,9 +35,9 @@ local function add_simple_flower(name, desc, box, f_groups)
|
||||||
description = desc,
|
description = desc,
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
waving = 1,
|
waving = 1,
|
||||||
tiles = {"flowers_" .. name .. ".png"},
|
tiles = { name .. ".png"},
|
||||||
inventory_image = "flowers_" .. name .. ".png",
|
inventory_image = name .. ".png",
|
||||||
wield_image = "flowers_" .. name .. ".png",
|
wield_image = name .. ".png",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
|
@ -62,50 +53,62 @@ end
|
||||||
|
|
||||||
flowers.datas = {
|
flowers.datas = {
|
||||||
{
|
{
|
||||||
"rose",
|
"jade_rose",
|
||||||
S("Red Rose"),
|
S("Jade Rose"),
|
||||||
|
{-2 / 16, -0.5, -2 / 16, 2 / 16, 5 / 16, 2 / 16},
|
||||||
|
{color_green = 1, flammable = 1}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"plom_bloom",
|
||||||
|
S("Plom Bloom"),
|
||||||
{-2 / 16, -0.5, -2 / 16, 2 / 16, 5 / 16, 2 / 16},
|
{-2 / 16, -0.5, -2 / 16, 2 / 16, 5 / 16, 2 / 16},
|
||||||
{color_red = 1, flammable = 1}
|
{color_red = 1, flammable = 1}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tulip",
|
"purple_passion",
|
||||||
S("Orange Tulip"),
|
S("Purple Passion"),
|
||||||
|
{-2 / 16, -0.5, -2 / 16, 2 / 16, 5 / 16, 2 / 16},
|
||||||
|
{color_violet = 1, flammable = 1}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"snow-flower",
|
||||||
|
S("Snow-Flower"),
|
||||||
{-2 / 16, -0.5, -2 / 16, 2 / 16, 3 / 16, 2 / 16},
|
{-2 / 16, -0.5, -2 / 16, 2 / 16, 3 / 16, 2 / 16},
|
||||||
|
{color_white = 1, flammable = 1}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sachi_blossom",
|
||||||
|
S("Sachi Blossom"),
|
||||||
|
{-2 / 16, -0.5, -2 / 16, 2 / 16, 3 / 16, 2 / 16},
|
||||||
|
{color_pink = 1, flammable = 1}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"palomella",
|
||||||
|
S("Palomella"),
|
||||||
|
{-2 / 16, -0.5, -2 / 16, 2 / 16, 3 / 16, 2 / 16},
|
||||||
|
{color_cyan = 1, flammable = 1}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"spinebarrel",
|
||||||
|
S("Spinebarrel"),
|
||||||
|
{-4 / 16, -0.5, -4 / 16, 4 / 16, -1 / 16, 4 / 16},
|
||||||
|
{color_brown = 1, flammable = 1}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"damsel_flower",
|
||||||
|
S("Damsel Flower"),
|
||||||
|
{-2 / 16, -0.5, -2 / 16, 2 / 16, 2 / 16, 2 / 16},
|
||||||
{color_orange = 1, flammable = 1}
|
{color_orange = 1, flammable = 1}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"dandelion_yellow",
|
"blueblossom",
|
||||||
S("Yellow Dandelion"),
|
S("Blueblossom"),
|
||||||
{-4 / 16, -0.5, -4 / 16, 4 / 16, -2 / 16, 4 / 16},
|
|
||||||
{color_yellow = 1, flammable = 1}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"chrysanthemum_green",
|
|
||||||
S("Green Chrysanthemum"),
|
|
||||||
{-4 / 16, -0.5, -4 / 16, 4 / 16, -1 / 16, 4 / 16},
|
|
||||||
{color_green = 1, flammable = 1}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"geranium",
|
|
||||||
S("Blue Geranium"),
|
|
||||||
{-2 / 16, -0.5, -2 / 16, 2 / 16, 2 / 16, 2 / 16},
|
{-2 / 16, -0.5, -2 / 16, 2 / 16, 2 / 16, 2 / 16},
|
||||||
{color_blue = 1, flammable = 1}
|
{color_blue = 1, flammable = 1}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"viola",
|
"black_lily",
|
||||||
S("Viola"),
|
S("Black Lily"),
|
||||||
{-5 / 16, -0.5, -5 / 16, 5 / 16, -1 / 16, 5 / 16},
|
|
||||||
{color_violet = 1, flammable = 1}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"dandelion_white",
|
|
||||||
S("White Dandelion"),
|
|
||||||
{-5 / 16, -0.5, -5 / 16, 5 / 16, -2 / 16, 5 / 16},
|
|
||||||
{color_white = 1, flammable = 1}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tulip_black",
|
|
||||||
S("Black Tulip"),
|
|
||||||
{-2 / 16, -0.5, -2 / 16, 2 / 16, 3 / 16, 2 / 16},
|
{-2 / 16, -0.5, -2 / 16, 2 / 16, 3 / 16, 2 / 16},
|
||||||
{color_black = 1, flammable = 1}
|
{color_black = 1, flammable = 1}
|
||||||
},
|
},
|
||||||
|
@ -276,9 +279,9 @@ local waterlily_def = {
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
tiles = {"flowers_waterlily.png", "flowers_waterlily_bottom.png"},
|
tiles = {"waterlily.png", "waterlily_bottom.png"},
|
||||||
inventory_image = "flowers_waterlily.png",
|
inventory_image = "waterlily.png",
|
||||||
wield_image = "flowers_waterlily.png",
|
wield_image = "waterlily.png",
|
||||||
liquids_pointable = true,
|
liquids_pointable = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
|
|
Loading…
Reference in New Issue