Also change inner/outer stairs and slab nodeboxes

master
Wuzzy 2022-03-17 04:46:42 +01:00
parent 786621712b
commit cf2d9077cc
1 changed files with 9 additions and 7 deletions

View File

@ -85,7 +85,7 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
sounds = sounds, sounds = sounds,
node_box = { node_box = {
-- This stairs nodebox is a bit unusual. -- This stairs nodebox is a bit unusual.
-- This is done in a way that it completely blocks off the laser -- This is done in a way that it completely blocks off the laser.
type = "fixed", type = "fixed",
fixed = { fixed = {
{-0.5, -0.5, -0.5, 0.5, 1/16, 0.5}, {-0.5, -0.5, -0.5, 0.5, 1/16, 0.5},
@ -142,7 +142,7 @@ function stairs.register_slab(subname, recipeitem, groups, images, description,
sounds = sounds, sounds = sounds,
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, fixed = {-0.5, -0.5, -0.5, 0.5, 1/16, 0.5},
}, },
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
local under = minetest.get_node(pointed_thing.under) local under = minetest.get_node(pointed_thing.under)
@ -225,11 +225,12 @@ function stairs.register_stair_inner(subname, recipeitem, groups, images,
groups = new_groups, groups = new_groups,
sounds = sounds, sounds = sounds,
node_box = { node_box = {
-- Unusual stairs nodebox (see stairs comment)
type = "fixed", type = "fixed",
fixed = { fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.0, 0.5}, {-0.5, -0.5, -0.5, 0.5, 1/16, 0.5},
{-0.5, 0.0, 0.0, 0.5, 0.5, 0.5}, {-0.5, 1/16, -1/16, 0.5, 0.5, 0.5},
{-0.5, 0.0, -0.5, 0.0, 0.5, 0.0}, {-0.5, 1/16, -0.5, 1/16, 0.5, -1/16},
}, },
}, },
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
@ -290,10 +291,11 @@ function stairs.register_stair_outer(subname, recipeitem, groups, images,
groups = new_groups, groups = new_groups,
sounds = sounds, sounds = sounds,
node_box = { node_box = {
-- Unusual stairs nodebox (see stairs comment)
type = "fixed", type = "fixed",
fixed = { fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.0, 0.5}, {-0.5, -0.5, -0.5, 0.5, 1/16, 0.5},
{-0.5, 0.0, 0.0, 0.0, 0.5, 0.5}, {-0.5, 1/16, -1/16, 1/16, 0.5, 0.5},
}, },
}, },
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)