1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-20 00:35:47 +01:00

Update [stairs]

This commit is contained in:
Wouters Dorian
2015-07-09 10:33:07 +02:00
parent fc94c4f29a
commit 169327abce
2 changed files with 52 additions and 15 deletions

View File

@@ -7,14 +7,22 @@ stairs = {}
function stairs.register_stair(subname, recipeitem, groups, images, description, sounds)
minetest.register_node(":stairs:stair_" .. subname, {
description = description,
drawtype = "nodebox",
drawtype = "mesh",
mesh = "stairs.obj",
tiles = images,
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
groups = groups,
sounds = sounds,
node_box = {
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},
},
},
collision_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
@@ -138,7 +146,7 @@ function stairs.register_slab(subname, recipeitem, groups, images, description,
end
return itemstack
end
-- Upside down slabs
if p0.y-1 == p1.y then
-- Turn into full block if pointing at a existing slab
@@ -267,7 +275,7 @@ stairs.register_stair_and_slab("sandstone", "default:sandstone",
"Sandstone Stair",
"Sandstone Slab",
default.node_sound_stone_defaults())
stairs.register_stair_and_slab("sandstonebrick", "default:sandstonebrick",
{crumbly=2,cracky=2},
{"default_sandstone_brick.png"},
@@ -308,14 +316,4 @@ stairs.register_stair_and_slab("obsidianbrick", "default:obsidianbrick",
{"default_obsidian_brick.png"},
"Obsidian Brick Stair",
"Obsidian Brick Slab",
default.node_sound_stone_defaults())
-- From BFD:
stairs.register_stair_and_slab("cherry_wood", "default:cherry_plank",
{snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3},
{"default_wood_cherry_planks.png"},
"Cherry Plank Stair",
"Cherry Plank Slab",
"Cherry Plank Corner Stair",
default.node_sound_wood_defaults())
default.node_sound_stone_defaults())