tweak selection box so that things can be placed on top
which means they'll be "embedded" into the concrete good for streetlights
This commit is contained in:
parent
636ed0b096
commit
12c8bc8c4d
15
main.lua
15
main.lua
@ -131,11 +131,6 @@ minetest.register_node("gloopblocks:scaffolding", {
|
|||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
local cbox = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = { -0.5, -0.5, -0.5, 0.5, 0.5625, 0.5 }
|
|
||||||
}
|
|
||||||
|
|
||||||
minetest.register_node("gloopblocks:concrete_sidewalk", {
|
minetest.register_node("gloopblocks:concrete_sidewalk", {
|
||||||
description = S("Concrete sidewalk"),
|
description = S("Concrete sidewalk"),
|
||||||
tiles = {
|
tiles = {
|
||||||
@ -146,8 +141,14 @@ minetest.register_node("gloopblocks:concrete_sidewalk", {
|
|||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
mesh = "gloopblocks_sidewalk.obj",
|
mesh = "gloopblocks_sidewalk.obj",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
selection_box = cbox,
|
selection_box = {
|
||||||
collision_box = cbox,
|
type = "fixed",
|
||||||
|
fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
|
||||||
|
},
|
||||||
|
collision_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = { -0.5, -0.5, -0.5, 0.5, 0.5625, 0.5 }
|
||||||
|
},
|
||||||
on_rotate = screwdriver.rotate_simple,
|
on_rotate = screwdriver.rotate_simple,
|
||||||
groups = {cracky=2},
|
groups = {cracky=2},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user