Add a selection box for stairs that fit the nodebox
This commit is contained in:
parent
0beabfc755
commit
c1b1f2aa49
@ -21,6 +21,13 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
|
|||||||
{-0.5, 0, 0, 0.5, 0.5, 0.5},
|
{-0.5, 0, 0, 0.5, 0.5, 0.5},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
||||||
|
{-0.5, 0, 0, 0.5, 0.5, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
if pointed_thing.type ~= "node" then
|
if pointed_thing.type ~= "node" then
|
||||||
return itemstack
|
return itemstack
|
||||||
@ -58,6 +65,13 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
|
|||||||
{-0.5, -0.5, 0, 0.5, 0, 0.5},
|
{-0.5, -0.5, 0, 0.5, 0, 0.5},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, 0, -0.5, 0.5, 0.5, 0.5},
|
||||||
|
{-0.5, -0.5, 0, 0.5, 0, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
Loading…
Reference in New Issue
Block a user