forked from nalc/homedecor_modpack
Prettier shutters
Prettier shutters : https://cdn.mediacru.sh/uuQuB3D_aXbq.png
This commit is contained in:
parent
9cc5853ccc
commit
fd1e5a516a
|
@ -20,24 +20,35 @@ for i in ipairs(shutters) do
|
|||
local name = shutters[i][1]
|
||||
local desc = shutters[i][2]
|
||||
|
||||
minetest.register_node("homedecor:shutter_"..name, {
|
||||
description = S("Wooden Shutter ("..desc..")"),
|
||||
tiles = { "homedecor_window_shutter_"..name..".png" },
|
||||
inventory_image = "homedecor_window_shutter_"..name..".png",
|
||||
wield_image = "homedecor_window_shutter_"..name..".png",
|
||||
drawtype = 'signlike',
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = false,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
paramtype2 = 'wallmounted',
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
--wall_side = = <default>
|
||||
},
|
||||
})
|
||||
minetest.register_node("homedecor:shutter_"..name, {
|
||||
description = S("Wooden Shutter ("..desc..")"),
|
||||
tiles = { "homedecor_window_shutter_"..name..".png" },
|
||||
inventory_image = "homedecor_window_shutter_"..name..".png",
|
||||
wield_image = "homedecor_window_shutter_"..name..".png",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, 0.44, 0.5, -0.3125, 0.5}, -- NodeBox1
|
||||
{-0.5, -0.5, 0.44, -0.3125, 0.5, 0.5}, -- NodeBox2
|
||||
{-0.5, 0.3125, 0.44, 0.5, 0.5, 0.5}, -- NodeBox3
|
||||
{0.3125, -0.5, 0.44, 0.5, 0.5, 0.5}, -- NodeBox4
|
||||
{-0.3125, 0.1875, 0.46, 0.3125, 0.25, 0.48}, -- NodeBox5
|
||||
{-0.3125, 0.0625, 0.46, 0.3125, 0.125, 0.48}, -- NodeBox6
|
||||
{-0.3125, -0.0625, 0.46, 0.3125, 0, 0.48}, -- NodeBox7
|
||||
{-0.3125, -0.1875, 0.46, 0.3125, -0.125, 0.48}, -- NodeBox8
|
||||
{-0.3125, -0.3125, 0.46, 0.3125, -0.25, 0.48}, -- NodeBox9
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, 0.44, 0.5, 0.5, 0.5 }
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_alias("homedecor:shutter_purple", "homedecor:shutter_violet")
|
||||
|
|
Loading…
Reference in New Issue
Block a user