2022-06-14 01:11:20 +02:00
|
|
|
stairsplus.api.register_shape("slab_1", {
|
|
|
|
name_format = "slab_%s_1",
|
|
|
|
description = "@1 1/16 Slab",
|
2022-06-19 01:23:11 +02:00
|
|
|
shape_groups = {slab = 1, legacy = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 1,
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slab_2", {
|
|
|
|
name_format = "slab_%s_2",
|
|
|
|
description = "@1 1/8 Slab",
|
2022-06-15 01:30:41 +02:00
|
|
|
shape_groups = {slab = 1, legacy = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 1,
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slab_4", {
|
|
|
|
name_format = "slab_%s_4",
|
|
|
|
aliases = {"slab_%s_quarter"},
|
|
|
|
description = "@1 1/4 Slab",
|
2022-06-15 01:30:41 +02:00
|
|
|
shape_groups = {slab = 1, legacy = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 2,
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slab_8", {
|
|
|
|
name_format = "slab_%s_8",
|
|
|
|
aliases = {"slab_%s"},
|
|
|
|
description = "@1 1/2 Slab",
|
2022-06-19 01:23:11 +02:00
|
|
|
shape_groups = {slab = 1, legacy = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 4,
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slab_12", {
|
|
|
|
name_format = "slab_%s_12",
|
|
|
|
aliases = {"slab_%s_three_quarter"},
|
|
|
|
description = "@1 3/4 Slab",
|
2022-06-15 01:30:41 +02:00
|
|
|
shape_groups = {slab = 1, legacy = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 6,
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0.25, 0.5},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slab_14", {
|
|
|
|
name_format = "slab_%s_14",
|
|
|
|
description = "@1 7/8 Slab",
|
2022-06-15 01:30:41 +02:00
|
|
|
shape_groups = {slab = 1, legacy = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 7,
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0.375, 0.5},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slab_15", {
|
|
|
|
name_format = "slab_%s_15",
|
|
|
|
description = "@1 15/16 Slab",
|
2022-06-15 01:30:41 +02:00
|
|
|
shape_groups = {slab = 1, legacy = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 7,
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0.4375, 0.5},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
--- these terrible things
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slab_two_sides", {
|
|
|
|
name_format = "slab_%s_two_sides",
|
|
|
|
description = "@1 1/16 Slab Two Sides",
|
2022-06-15 01:30:41 +02:00
|
|
|
shape_groups = {slab = 1, legacy = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 2,
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, -7 / 16, 7 / 16},
|
|
|
|
{-0.5, -0.5, 7 / 16, 0.5, 0.5, 0.5}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slab_three_sides", {
|
|
|
|
name_format = "slab_%s_three_sides",
|
|
|
|
description = "@1 1/16 Slab Three Sides",
|
2022-06-15 01:30:41 +02:00
|
|
|
shape_groups = {slab = 1, legacy = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 3,
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-7 / 16, -0.5, -0.5, 0.5, -7 / 16, 7 / 16},
|
|
|
|
{-7 / 16, -0.5, 7 / 16, 0.5, 0.5, 0.5},
|
|
|
|
{-0.5, -0.5, -0.5, -7 / 16, 0.5, 0.5}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
stairsplus.api.register_shape("slab_three_sides_u", {
|
|
|
|
name_format = "slab_%s_three_sides_u",
|
|
|
|
description = "@1 1/16 Slab Three Sides U",
|
2022-06-15 01:30:41 +02:00
|
|
|
shape_groups = {slab = 1, legacy = 1},
|
2022-06-14 01:11:20 +02:00
|
|
|
eighths = 3,
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, 0.5, -7 / 16},
|
|
|
|
{-0.5, -0.5, -7 / 16, 0.5, -7 / 16, 7 / 16},
|
|
|
|
{-0.5, -0.5, 7 / 16, 0.5, 0.5, 0.5}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|