mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2025-07-14 14:00:18 +02:00
checkpoint. stairsplus is done, excluding the circular saw, and testing
This commit is contained in:
136
stairsplus/shapes/stairs.lua
Normal file
136
stairsplus/shapes/stairs.lua
Normal file
@ -0,0 +1,136 @@
|
||||
stairsplus.api.register_shape("stair", {
|
||||
name_format = "stair_%s",
|
||||
description = "@1 Stair",
|
||||
shape_groups = {stair = 1, common = 1},
|
||||
eighths = 6,
|
||||
drawtype = "nodebox",
|
||||
node_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},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
stairsplus.api.register_shape("stair_half", {
|
||||
name_format = "stair_%s_half",
|
||||
description = "@1 Half Stair",
|
||||
shape_groups = {stair = 1},
|
||||
eighths = 3,
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0, 0, 0.5},
|
||||
{-0.5, 0, 0, 0, 0.5, 0.5},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
stairsplus.api.register_shape("stair_right_half", {
|
||||
name_format = "stair_%s_right_half",
|
||||
description = "@1 Right Half Stair",
|
||||
shape_groups = {stair = 1},
|
||||
eighths = 3,
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{0, -0.5, -0.5, 0.5, 0, 0.5},
|
||||
{0, 0, 0, 0.5, 0.5, 0.5},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
stairsplus.api.register_shape("stair_inner", {
|
||||
name_format = "stair_%s_inner",
|
||||
description = "@1 Inner Stair",
|
||||
shape_groups = {stair = 1, common = 1},
|
||||
eighths = 5,
|
||||
drawtype = "nodebox",
|
||||
node_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},
|
||||
{-0.5, 0, -0.5, 0, 0.5, 0},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
stairsplus.api.register_shape("stair_outer", {
|
||||
name_format = "stair_%s_outer",
|
||||
description = "@1 Outer Stair",
|
||||
shape_groups = {stair = 1, common = 1},
|
||||
eighths = 5,
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
||||
{-0.5, 0, 0, 0, 0.5, 0.5},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
stairsplus.api.register_shape("stair_alt_1", {
|
||||
name_format = "stair_%s_alt_1",
|
||||
description = "@1 1/16 Alt Stair",
|
||||
shape_groups = {stair = 1},
|
||||
eighths = 1,
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.0625, -0.5, 0.5, 0, 0},
|
||||
{-0.5, 0.4375, 0, 0.5, 0.5, 0.5},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
stairsplus.api.register_shape("stair_alt_2", {
|
||||
name_format = "stair_%s_alt_2",
|
||||
description = "@1 1/8 Alt Stair",
|
||||
shape_groups = {stair = 1},
|
||||
eighths = 1,
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.125, -0.5, 0.5, 0, 0},
|
||||
{-0.5, 0.375, 0, 0.5, 0.5, 0.5},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
stairsplus.api.register_shape("stair_alt_4", {
|
||||
name_format = "stair_%s_alt_4",
|
||||
description = "@1 1/4 Alt Stair",
|
||||
shape_groups = {stair = 1},
|
||||
eighths = 2,
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.25, -0.5, 0.5, 0, 0},
|
||||
{-0.5, 0.25, 0, 0.5, 0.5, 0.5},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
stairsplus.api.register_shape("stair_alt_8", {
|
||||
name_format = "stair_%s_alt_8",
|
||||
aliases = {"stair_%s_alt"},
|
||||
description = "@1 1/2 Alt Stair",
|
||||
shape_groups = {stair = 1},
|
||||
eighths = 4,
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0, 0},
|
||||
{-0.5, 0, 0, 0.5, 0.5, 0.5},
|
||||
},
|
||||
},
|
||||
})
|
Reference in New Issue
Block a user