fix: change the default length of flat and sink street from 2.5 to 5

- this feature is requested by Lee623
This commit is contained in:
2026-03-06 14:40:50 +08:00
parent 8a7e3306a7
commit 5e94d7db85

View File

@@ -1,324 +1,324 @@
[ [
{ {
"identifier": "floor_normal_straight", "identifier": "floor_normal_straight",
"showcase": { "showcase": {
"title": "Normal Floor", "title": "Normal Floor",
"category": "Floors", "category": "Floors",
"icon": "NormalFloor", "icon": "NormalFloor",
"type": "floor", "type": "floor",
"cfgs": [ "cfgs": [
{ {
"field": "height_", "field": "height_",
"type": "float", "type": "float",
"title": "Height", "title": "Height",
"desc": "The height of block.", "desc": "The height of block.",
"default": "5.0" "default": "5.0"
}, },
{ {
"field": "length_", "field": "length_",
"type": "float", "type": "float",
"title": "Length", "title": "Length",
"desc": "The length of block.", "desc": "The length of block.",
"default": "2.5" "default": "5.0"
}, },
{ {
"field": "face_", "field": "face_",
"type": "face", "type": "face",
"title": "Face", "title": "Face",
"desc": "Whether has some faces.", "desc": "Whether has some faces.",
"default": "(True, False, False, False, True, True)" "default": "(True, False, False, False, True, True)"
} }
] ]
}, },
"params": [ "params": [
{ {
"field": "height", "field": "height",
"data": "height_" "data": "height_"
}, },
{ {
"field": "length", "field": "length",
"data": "length_" "data": "length_"
}, },
{ {
"field": "face", "field": "face",
"data": "face_" "data": "face_"
} }
], ],
"skip": "length == 0", "skip": "length == 0",
"vars": [ "vars": [
{ {
"field": "length_uv", "field": "length_uv",
"data": "length / 5.0" "data": "length / 5.0"
} }
], ],
"vertices": [ "vertices": [
{ {
"skip": "not face[0]", "skip": "not face[0]",
"data": "(0, 0, 0)" "data": "(0, 0, 0)"
}, },
{ {
"skip": "not face[0]", "skip": "not face[0]",
"data": "(length, 0, 0)" "data": "(length, 0, 0)"
}, },
{ {
"skip": "not face[0]", "skip": "not face[0]",
"data": "(length, 5, 0)" "data": "(length, 5, 0)"
}, },
{ {
"skip": "not face[0]", "skip": "not face[0]",
"data": "(0, 5, 0)" "data": "(0, 5, 0)"
} }
], ],
"faces": [ "faces": [
{ {
"skip": "not face[0]", "skip": "not face[0]",
"texture": "\"FloorTopFlat\"", "texture": "\"FloorTopFlat\"",
"indices": [0, 1, 2, 3], "indices": [0, 1, 2, 3],
"uvs": [ "uvs": [
"(0, 0)", "(0, 0)",
"(0, length_uv)", "(0, length_uv)",
"(1, length_uv)", "(1, length_uv)",
"(1, 0)" "(1, 0)"
], ],
"normals": null "normals": null
} }
], ],
"instances": [ "instances": [
{ {
"identifier": "raw_floor_side", "identifier": "raw_floor_side",
"skip": "not face[2]", "skip": "not face[2]",
"params": { "params": {
"height": "height", "height": "height",
"length": "5", "length": "5",
"is_left_sink": "False", "is_left_sink": "False",
"is_right_sink": "False" "is_right_sink": "False"
}, },
"transform": "rot(0, 0, 90) @ scale(1, -1, 1)" "transform": "rot(0, 0, 90) @ scale(1, -1, 1)"
}, },
{ {
"identifier": "raw_floor_side", "identifier": "raw_floor_side",
"skip": "not face[3]", "skip": "not face[3]",
"params": { "params": {
"height": "height", "height": "height",
"length": "5", "length": "5",
"is_left_sink": "False", "is_left_sink": "False",
"is_right_sink": "False" "is_right_sink": "False"
}, },
"transform": "move(length, 0, 0) @ rot(0, 0, 90)" "transform": "move(length, 0, 0) @ rot(0, 0, 90)"
}, },
{ {
"identifier": "raw_floor_side", "identifier": "raw_floor_side",
"skip": "not face[4]", "skip": "not face[4]",
"params": { "params": {
"height": "height", "height": "height",
"length": "length", "length": "length",
"is_left_sink": "False", "is_left_sink": "False",
"is_right_sink": "False" "is_right_sink": "False"
}, },
"transform": "ident()" "transform": "ident()"
}, },
{ {
"identifier": "raw_floor_side", "identifier": "raw_floor_side",
"skip": "not face[5]", "skip": "not face[5]",
"params": { "params": {
"height": "height", "height": "height",
"length": "length", "length": "length",
"is_left_sink": "False", "is_left_sink": "False",
"is_right_sink": "False" "is_right_sink": "False"
}, },
"transform": "move(0, 5, 0) @ scale(1, -1, 1)" "transform": "move(0, 5, 0) @ scale(1, -1, 1)"
}, },
{ {
"identifier": "floor_rectangle_bottom", "identifier": "floor_rectangle_bottom",
"skip": "not face[1]", "skip": "not face[1]",
"params": { "params": {
"length": "length", "length": "length",
"width": "5" "width": "5"
}, },
"transform": "move(0, 0, -height)" "transform": "move(0, 0, -height)"
} }
] ]
}, },
{ {
"identifier": "floor_sink_straight", "identifier": "floor_sink_straight",
"showcase": { "showcase": {
"title": "Sink Floor", "title": "Sink Floor",
"category": "Floors", "category": "Floors",
"icon": "SinkFloor", "icon": "SinkFloor",
"type": "floor", "type": "floor",
"cfgs": [ "cfgs": [
{ {
"field": "height_", "field": "height_",
"type": "float", "type": "float",
"title": "Height", "title": "Height",
"desc": "The height of block.", "desc": "The height of block.",
"default": "5.0" "default": "5.0"
}, },
{ {
"field": "length_", "field": "length_",
"type": "float", "type": "float",
"title": "Length", "title": "Length",
"desc": "The length of block.", "desc": "The length of block.",
"default": "2.5" "default": "5.0"
}, },
{ {
"field": "face_", "field": "face_",
"type": "face", "type": "face",
"title": "Face", "title": "Face",
"desc": "Whether has some faces.", "desc": "Whether has some faces.",
"default": "(True, False, False, False, True, True)" "default": "(True, False, False, False, True, True)"
} }
] ]
}, },
"params": [ "params": [
{ {
"field": "height", "field": "height",
"data": "height_" "data": "height_"
}, },
{ {
"field": "length", "field": "length",
"data": "length_" "data": "length_"
}, },
{ {
"field": "face", "field": "face",
"data": "face_" "data": "face_"
} }
], ],
"skip": "length == 0", "skip": "length == 0",
"vars": [ "vars": [
{ {
"field": "length_uv", "field": "length_uv",
"data": "length / 5.0" "data": "length / 5.0"
} }
], ],
"vertices": [ "vertices": [
{ {
"skip": "not face[0]", "skip": "not face[0]",
"data": "(0, 0, 0)" "data": "(0, 0, 0)"
}, },
{ {
"skip": "not face[0]", "skip": "not face[0]",
"data": "(length, 0, 0)" "data": "(length, 0, 0)"
}, },
{ {
"skip": "not face[0]", "skip": "not face[0]",
"data": "(length, 2.5, -0.7)" "data": "(length, 2.5, -0.7)"
}, },
{ {
"skip": "not face[0]", "skip": "not face[0]",
"data": "(0, 2.5, -0.7)" "data": "(0, 2.5, -0.7)"
}, },
{ {
"skip": "not face[0]", "skip": "not face[0]",
"data": "(length, 5, 0)" "data": "(length, 5, 0)"
}, },
{ {
"skip": "not face[0]", "skip": "not face[0]",
"data": "(0, 5, 0)" "data": "(0, 5, 0)"
} }
], ],
"faces": [ "faces": [
{ {
"skip": "not face[0]", "skip": "not face[0]",
"texture": "\"FloorTopProfil\"", "texture": "\"FloorTopProfil\"",
"indices": [0, 1, 2, 3], "indices": [0, 1, 2, 3],
"uvs": [ "uvs": [
"(0, 0)", "(0, 0)",
"(0, length_uv)", "(0, length_uv)",
"(0.5, length_uv)", "(0.5, length_uv)",
"(0.5, 0)" "(0.5, 0)"
], ],
"normals": null "normals": null
}, },
{ {
"skip": "not face[0]", "skip": "not face[0]",
"texture": "\"FloorTopProfil\"", "texture": "\"FloorTopProfil\"",
"indices": [3, 2, 4, 5], "indices": [3, 2, 4, 5],
"uvs": [ "uvs": [
"(0.5, 0)", "(0.5, 0)",
"(0.5, length_uv)", "(0.5, length_uv)",
"(1, length_uv)", "(1, length_uv)",
"(1, 0)" "(1, 0)"
], ],
"normals": null "normals": null
} }
], ],
"instances": [ "instances": [
{ {
"identifier": "raw_floor_side", "identifier": "raw_floor_side",
"skip": "not face[2]", "skip": "not face[2]",
"params": { "params": {
"height": "height", "height": "height",
"length": "2.5", "length": "2.5",
"is_left_sink": "False", "is_left_sink": "False",
"is_right_sink": "True" "is_right_sink": "True"
}, },
"transform": "rot(0, 0, 90) @ scale(1, -1, 1)" "transform": "rot(0, 0, 90) @ scale(1, -1, 1)"
}, },
{ {
"identifier": "raw_floor_side", "identifier": "raw_floor_side",
"skip": "not face[2]", "skip": "not face[2]",
"params": { "params": {
"height": "height", "height": "height",
"length": "2.5", "length": "2.5",
"is_left_sink": "True", "is_left_sink": "True",
"is_right_sink": "False" "is_right_sink": "False"
}, },
"transform": "move(0, 2.5, 0) @ rot(0, 0, 90) @ scale(1, -1, 1)" "transform": "move(0, 2.5, 0) @ rot(0, 0, 90) @ scale(1, -1, 1)"
}, },
{ {
"identifier": "raw_floor_side", "identifier": "raw_floor_side",
"skip": "not face[3]", "skip": "not face[3]",
"params": { "params": {
"height": "height", "height": "height",
"length": "2.5", "length": "2.5",
"is_left_sink": "False", "is_left_sink": "False",
"is_right_sink": "True" "is_right_sink": "True"
}, },
"transform": "move(length, 0, 0) @ rot(0, 0, 90)" "transform": "move(length, 0, 0) @ rot(0, 0, 90)"
}, },
{ {
"identifier": "raw_floor_side", "identifier": "raw_floor_side",
"skip": "not face[3]", "skip": "not face[3]",
"params": { "params": {
"height": "height", "height": "height",
"length": "2.5", "length": "2.5",
"is_left_sink": "True", "is_left_sink": "True",
"is_right_sink": "False" "is_right_sink": "False"
}, },
"transform": "move(length, 2.5, 0) @ rot(0, 0, 90)" "transform": "move(length, 2.5, 0) @ rot(0, 0, 90)"
}, },
{ {
"identifier": "raw_floor_side", "identifier": "raw_floor_side",
"skip": "not face[4]", "skip": "not face[4]",
"params": { "params": {
"height": "height", "height": "height",
"length": "length", "length": "length",
"is_left_sink": "False", "is_left_sink": "False",
"is_right_sink": "False" "is_right_sink": "False"
}, },
"transform": "ident()" "transform": "ident()"
}, },
{ {
"identifier": "raw_floor_side", "identifier": "raw_floor_side",
"skip": "not face[5]", "skip": "not face[5]",
"params": { "params": {
"height": "height", "height": "height",
"length": "length", "length": "length",
"is_left_sink": "False", "is_left_sink": "False",
"is_right_sink": "False" "is_right_sink": "False"
}, },
"transform": "move(0, 5, 0) @ scale(1, -1, 1)" "transform": "move(0, 5, 0) @ scale(1, -1, 1)"
}, },
{ {
"identifier": "floor_rectangle_bottom", "identifier": "floor_rectangle_bottom",
"skip": "not face[1]", "skip": "not face[1]",
"params": { "params": {
"length": "length", "length": "length",
"width": "5" "width": "5"
}, },
"transform": "move(0, 0, -height)" "transform": "move(0, 0, -height)"
} }
] ]
} }
] ]