flowerpots
|
@ -0,0 +1,23 @@
|
|||
License for Code
|
||||
----------------
|
||||
|
||||
Copyright (C) 2017 D00MED <heiselong@gmx.com>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 2.1 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
License for Textures, Models
|
||||
---------------------------------------
|
||||
|
||||
CC-BY-SA 3.0 UNPORTED. Created by toby109tt(aka tobyplowy)
|
After Width: | Height: | Size: 977 B |
After Width: | Height: | Size: 414 B |
After Width: | Height: | Size: 306 B |
After Width: | Height: | Size: 498 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 524 B |
After Width: | Height: | Size: 1.2 KiB |
|
@ -370,25 +370,37 @@ xdecor.register("packed_ice", {
|
|||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
local flowers = {"dandelion_white", "dandelion_yellow", "geranium", "rose",
|
||||
"tulip", "viola"}
|
||||
local flowers = {
|
||||
{"dandelion_white"},
|
||||
{"dandelion_yellow"},
|
||||
{"geranium"},
|
||||
{"rose"},
|
||||
{"tulip"},
|
||||
{"viola"}
|
||||
}
|
||||
|
||||
for _, f in pairs(flowers) do
|
||||
xdecor.register("potted_"..f, {
|
||||
description = string.gsub("Potted Flowers ("..f..")", "_", " "),
|
||||
walkable = false,
|
||||
local name = f[1]
|
||||
xdecor.register("potted_"..name, {
|
||||
description = string.gsub("Potted Flowers ("..name..")", "_", " "),
|
||||
drawtype = "mesh",
|
||||
mesh = "flowerpot.b3d",
|
||||
visual_scale = 0.5,
|
||||
wield_scale = {x=0.5, y=0.5, z=0.5},
|
||||
groups = {dig_immediate=3, flammable=3, plant=1, flower=1},
|
||||
tiles = {"xdecor_"..f.."_pot.png"},
|
||||
inventory_image = "xdecor_"..f.."_pot.png",
|
||||
drawtype = "plantlike",
|
||||
tiles = {"flowerpot.png^xdecor_"..name..".png"},
|
||||
inventory_image = "xdecor_"..name.."_pot.png",
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = xdecor.nodebox.slab_y(0.3)
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.4, -0.5, -0.4, 0.4, -0.1, 0.4},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "xdecor:potted_"..f,
|
||||
output = "xdecor:potted_"..name,
|
||||
recipe = {
|
||||
{"default:clay_brick", "flowers:"..f, "default:clay_brick"},
|
||||
{"default:clay_brick", "flowers:"..name, "default:clay_brick"},
|
||||
{"", "default:clay_brick", ""}
|
||||
}
|
||||
})
|
||||
|
|