Skip to content
Snippets Groups Projects
Commit c1b1f2aa authored by PilzAdam's avatar PilzAdam Committed by PilzAdam
Browse files

Add a selection box for stairs that fit the nodebox

parent 0beabfc7
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,13 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
{-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)
if pointed_thing.type ~= "node" then
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},
},
},
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({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment