forked from mtcontrib/homedecor_modpack
make flowerpots round-ish by way of nodeboxes.
This commit is contained in:
parent
41b1730ff2
commit
21dc361ff8
|
@ -82,7 +82,33 @@ minetest.register_node('homedecor:rug_large', {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local flower_pot_model = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.1875, -0.5, -0.1875, 0.1875, -0.3125, 0.1875},
|
||||||
|
{-0.25, -0.5, -0.0625, 0.25, -0.3125, 0.0625},
|
||||||
|
{-0.0625, -0.5, -0.25, 0.0625, -0.25, 0.25},
|
||||||
|
{-0.25, -0.3125, -0.25, 0.25, -0.125, 0.25},
|
||||||
|
{-0.125, -0.3125, -0.3125, 0.125, -0.125, 0.3125},
|
||||||
|
{-0.3125, -0.3125, -0.125, 0.3125, -0.125, 0.125},
|
||||||
|
{-0.3125, -0.125, -0.25, 0.3125, 0.0625, 0.25},
|
||||||
|
{-0.125, -0.125, -0.375, 0.125, 0.0625, 0.375},
|
||||||
|
{-0.375, -0.125, -0.125, 0.375, 0.0625, 0.125},
|
||||||
|
{-0.25, -0.125, -0.3125, 0.25, 0.0625, 0.3125},
|
||||||
|
{-0.4375, 0.0625, -0.1875, 0.4375, 0.25, 0.1875},
|
||||||
|
{-0.1875, 0.0625, -0.4375, 0.1875, 0.25, 0.4375},
|
||||||
|
{-0.3125, 0.0625, -0.375, 0.3125, 0.25, 0.375},
|
||||||
|
{-0.375, 0.0625, -0.3125, 0.375, 0.25, 0.3125},
|
||||||
|
{-0.1875, 0.25, -0.5, 0.1875, 0.5, 0.5},
|
||||||
|
{-0.5, 0.25, -0.1875, 0.5, 0.5, 0.1875},
|
||||||
|
{-0.4375, 0.25, -0.3125, 0.4375, 0.5, 0.3125},
|
||||||
|
{-0.3125, 0.25, -0.4375, 0.3125, 0.5, 0.4375},
|
||||||
|
{-0.375, 0.25, -0.375, 0.375, 0.5, 0.375},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
minetest.register_node('homedecor:flower_pot_terracotta', {
|
minetest.register_node('homedecor:flower_pot_terracotta', {
|
||||||
|
drawtype = "nodebox",
|
||||||
description = S("Terracotta Flower Pot"),
|
description = S("Terracotta Flower Pot"),
|
||||||
tiles = { 'homedecor_flower_pot_terracotta_top.png',
|
tiles = { 'homedecor_flower_pot_terracotta_top.png',
|
||||||
'homedecor_flower_pot_terracotta_bottom.png',
|
'homedecor_flower_pot_terracotta_bottom.png',
|
||||||
|
@ -95,10 +121,12 @@ minetest.register_node('homedecor:flower_pot_terracotta', {
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
walkable = true,
|
walkable = true,
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
|
node_box = flower_pot_model,
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node('homedecor:flower_pot_black', {
|
minetest.register_node('homedecor:flower_pot_black', {
|
||||||
|
drawtype = "nodebox",
|
||||||
description = S("Black Plastic Flower Pot"),
|
description = S("Black Plastic Flower Pot"),
|
||||||
tiles = { 'homedecor_flower_pot_black_top.png',
|
tiles = { 'homedecor_flower_pot_black_top.png',
|
||||||
'homedecor_flower_pot_black_bottom.png',
|
'homedecor_flower_pot_black_bottom.png',
|
||||||
|
@ -111,10 +139,12 @@ minetest.register_node('homedecor:flower_pot_black', {
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
walkable = true,
|
walkable = true,
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
|
node_box = flower_pot_model,
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node('homedecor:flower_pot_green', {
|
minetest.register_node('homedecor:flower_pot_green', {
|
||||||
|
drawtype = "nodebox",
|
||||||
description = S("Green Plastic Flower Pot"),
|
description = S("Green Plastic Flower Pot"),
|
||||||
tiles = { 'homedecor_flower_pot_green_top.png',
|
tiles = { 'homedecor_flower_pot_green_top.png',
|
||||||
'homedecor_flower_pot_green_bottom.png',
|
'homedecor_flower_pot_green_bottom.png',
|
||||||
|
@ -127,6 +157,7 @@ minetest.register_node('homedecor:flower_pot_green', {
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
walkable = true,
|
walkable = true,
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
|
node_box = flower_pot_model,
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 174 B |
Binary file not shown.
Before Width: | Height: | Size: 510 B After Width: | Height: | Size: 176 B |
Binary file not shown.
Before Width: | Height: | Size: 692 B After Width: | Height: | Size: 176 B |
Loading…
Reference in New Issue
Block a user