functional, except saw, legacy, other compatability

This commit is contained in:
flux
2022-06-14 11:17:06 -07:00
parent 687de31632
commit b9eed16713
22 changed files with 374 additions and 238 deletions

View File

@ -1,4 +1,3 @@
local box_slope = {
type = "fixed",
fixed = {
@ -12,10 +11,10 @@ local box_slope = {
stairsplus.api.register_shape("slope", {
name_format = "slope_%s",
description = "@1 Slope",
shape_groups = {slope = 1},
shape_groups = {slope = 1, common = 1},
eighths = 4,
drawtype = "mesh",
mesh = "moreblocks_slope.obj",
mesh = "stairsplus_slope.obj",
collision_box = box_slope,
selection_box = box_slope,
})
@ -33,10 +32,10 @@ local box_slope_half = {
stairsplus.api.register_shape("slope_half", {
name_format = "slope_%s_half",
description = "@1 1/2 Slope",
shape_groups = {slope = 1},
shape_groups = {slope = 1, common = 1},
eighths = 2,
drawtype = "mesh",
mesh = "moreblocks_slope_half.obj",
mesh = "stairsplus_slope_half.obj",
collision_box = box_slope_half,
selection_box = box_slope_half,
})
@ -54,10 +53,10 @@ local box_slope_half_raised = {
stairsplus.api.register_shape("slope_half_raised", {
name_format = "slope_%s_half_raised",
description = "@1 1/2 Slope Raised",
shape_groups = {slope = 1},
shape_groups = {slope = 1, common = 1},
eighths = 6,
drawtype = "mesh",
mesh = "moreblocks_slope_half_raised.obj",
mesh = "stairsplus_slope_half_raised.obj",
collision_box = box_slope_half_raised,
selection_box = box_slope_half_raised,
})
@ -78,10 +77,10 @@ local box_slope_inner = {
stairsplus.api.register_shape("slope_inner", {
name_format = "slope_%s_inner",
description = "@1 Slope Inner",
shape_groups = {slope = 1},
shape_groups = {slope = 1, common = 1},
eighths = 6,
drawtype = "mesh",
mesh = "moreblocks_slope_inner.obj",
mesh = "stairsplus_slope_inner.obj",
collision_box = box_slope_inner,
selection_box = box_slope_inner,
})
@ -89,10 +88,10 @@ stairsplus.api.register_shape("slope_inner", {
stairsplus.api.register_shape("slope_inner_cut", {
name_format = "slope_%s_inner_cut",
description = "@1 Slope Inner Cut",
shape_groups = {slope = 1},
shape_groups = {slope = 1, common = 1},
eighths = 6,
drawtype = "mesh",
mesh = "moreblocks_slope_inner_cut.obj",
mesh = "stairsplus_slope_inner_cut.obj",
collision_box = box_slope_inner,
selection_box = box_slope_inner,
})
@ -113,10 +112,10 @@ local box_slope_inner_half = {
stairsplus.api.register_shape("slope_inner_half", {
name_format = "slope_%s_inner_half",
description = "@1 Slope Inner Half",
shape_groups = {slope = 1},
shape_groups = {slope = 1, common = 1},
eighths = 3,
drawtype = "mesh",
mesh = "moreblocks_slope_inner_half.obj",
mesh = "stairsplus_slope_inner_half.obj",
collision_box = box_slope_inner_half,
selection_box = box_slope_inner_half,
})
@ -124,10 +123,10 @@ stairsplus.api.register_shape("slope_inner_half", {
stairsplus.api.register_shape("slope_inner_cut_half", {
name_format = "slope_%s_inner_cut_half",
description = "@1 Slope Inner Cut Half",
shape_groups = {slope = 1},
shape_groups = {slope = 1, common = 1},
eighths = 4,
drawtype = "mesh",
mesh = "moreblocks_slope_inner_cut_half.obj",
mesh = "stairsplus_slope_inner_cut_half.obj",
collision_box = box_slope_inner_half,
selection_box = box_slope_inner_half,
})
@ -148,10 +147,10 @@ local box_slope_inner_half_raised = {
stairsplus.api.register_shape("slope_inner_half_raised", {
name_format = "slope_%s_inner_half_raised",
description = "@1 Slope Inner Half Raised",
shape_groups = {slope = 1},
shape_groups = {slope = 1, common = 1},
eighths = 6,
drawtype = "mesh",
mesh = "moreblocks_slope_inner_half_raised.obj",
mesh = "stairsplus_slope_inner_half_raised.obj",
collision_box = box_slope_inner_half_raised,
selection_box = box_slope_inner_half_raised,
})
@ -159,10 +158,10 @@ stairsplus.api.register_shape("slope_inner_half_raised", {
stairsplus.api.register_shape("slope_inner_cut_half_raised", {
name_format = "slope_%s_inner_cut_half_raised",
description = "@1 Slope Inner Cut Half Raised",
shape_groups = {slope = 1},
shape_groups = {slope = 1, common = 1},
eighths = 7,
drawtype = "mesh",
mesh = "moreblocks_slope_inner_cut_half_raised.obj",
mesh = "stairsplus_slope_inner_cut_half_raised.obj",
collision_box = box_slope_inner_half_raised,
selection_box = box_slope_inner_half_raised,
})
@ -182,10 +181,10 @@ local box_slope_outer = {
stairsplus.api.register_shape("slope_outer", {
name_format = "slope_%s_outer",
description = "@1 Slope Outer",
shape_groups = {slope = 1},
shape_groups = {slope = 1, common = 1},
eighths = 3,
drawtype = "mesh",
mesh = "moreblocks_slope_outer.obj",
mesh = "stairsplus_slope_outer.obj",
collision_box = box_slope_outer,
selection_box = box_slope_outer,
})
@ -193,10 +192,10 @@ stairsplus.api.register_shape("slope_outer", {
stairsplus.api.register_shape("slope_outer_cut", {
name_format = "slope_%s_outer_cut",
description = "@1 Slope Outer Cut",
shape_groups = {slope = 1},
shape_groups = {slope = 1, common = 1},
eighths = 2,
drawtype = "mesh",
mesh = "moreblocks_slope_outer_cut.obj",
mesh = "stairsplus_slope_outer_cut.obj",
collision_box = box_slope_outer,
selection_box = box_slope_outer,
})
@ -204,10 +203,10 @@ stairsplus.api.register_shape("slope_outer_cut", {
stairsplus.api.register_shape("slope_cut", {
name_format = "slope_%s_cut",
description = "@1 Slope Cut",
shape_groups = {slope = 1},
shape_groups = {slope = 1, common = 1},
eighths = 4,
drawtype = "mesh",
mesh = "moreblocks_slope_cut.obj",
mesh = "stairsplus_slope_cut.obj",
collision_box = box_slope_outer,
selection_box = box_slope_outer,
})
@ -225,10 +224,10 @@ local box_slope_outer_half = {
stairsplus.api.register_shape("slope_outer_half", {
name_format = "slope_%s_outer_half",
description = "@1 Slope Outer Half",
shape_groups = {slope = 1},
shape_groups = {slope = 1, common = 1},
eighths = 2,
drawtype = "mesh",
mesh = "moreblocks_slope_outer_half.obj",
mesh = "stairsplus_slope_outer_half.obj",
collision_box = box_slope_outer_half,
selection_box = box_slope_outer_half,
})
@ -236,10 +235,10 @@ stairsplus.api.register_shape("slope_outer_half", {
stairsplus.api.register_shape("slope_outer_cut_half", {
name_format = "slope_%s_outer_cut_half",
description = "@1 Slope Outer Cut Half",
shape_groups = {slope = 1},
shape_groups = {slope = 1, common = 1},
eighths = 1,
drawtype = "mesh",
mesh = "moreblocks_slope_outer_cut_half.obj",
mesh = "stairsplus_slope_outer_cut_half.obj",
collision_box = box_slope_outer_half,
selection_box = box_slope_outer_half,
})
@ -257,10 +256,10 @@ local box_slope_outer_half_raised = {
stairsplus.api.register_shape("slope_outer_half_raised", {
name_format = "slope_%s_outer_half_raised",
description = "@1 Slope Outer Half Raised",
shape_groups = {slope = 1},
shape_groups = {slope = 1, common = 1},
eighths = 6,
drawtype = "mesh",
mesh = "moreblocks_slope_outer_half_raised.obj",
mesh = "stairsplus_slope_outer_half_raised.obj",
collision_box = box_slope_outer_half_raised,
selection_box = box_slope_outer_half_raised,
})
@ -268,10 +267,10 @@ stairsplus.api.register_shape("slope_outer_half_raised", {
stairsplus.api.register_shape("slope_outer_cut_half_raised", {
name_format = "slope_%s_outer_cut_half_raised",
description = "@1 Slope Outer Cut Half Raised",
shape_groups = {slope = 1},
shape_groups = {slope = 1, common = 1},
eighths = 3,
drawtype = "mesh",
mesh = "moreblocks_slope_outer_cut_half_raised.obj",
mesh = "stairsplus_slope_outer_cut_half_raised.obj",
collision_box = box_slope_outer_half_raised,
selection_box = box_slope_outer_half_raised,
})