refactor: 调整方块列表项属性内容和顺序
This commit is contained in:
@@ -115,476 +115,535 @@ function regBlockBuildingAndFurniture(event) {
|
||||
// 建筑方块
|
||||
{
|
||||
name: 'building_brick_a',
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
label: '砖块(大三角)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
model: 'building/building_brick_a',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_brick_a_half_down',
|
||||
box: [0, 0, 0, 16, 8, 16, true],
|
||||
label: '砖块(大三角,下半部分)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 0, 16, 8, 16, true],
|
||||
model: 'building/building_brick_a_half_down',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_brick_a_half_up',
|
||||
box: [0, 8, 0, 16, 16, 16, true],
|
||||
label: '砖块(大三角,上半部分)',
|
||||
blockstate: null,
|
||||
box: [0, 8, 0, 16, 16, 16, true],
|
||||
model: 'building/building_brick_a_half_up',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_brick_b',
|
||||
box: [8, 0, 8, 16, 16, 16, true],
|
||||
label: '砖块(小三角)',
|
||||
blockstate: null,
|
||||
box: [8, 0, 8, 16, 16, 16, true],
|
||||
model: 'building/building_brick_b',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_brick_c',
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
label: '砖块(缺一角)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
model: 'building/building_brick_c',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_brick_d',
|
||||
box: [0, 0, 12, 16, 16, 16, true],
|
||||
label: '砖块(砖块,1/4)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 12, 16, 16, 16, true],
|
||||
model: 'building/building_brick_d',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_brick_d_tall',
|
||||
box: [0, 0, 12, 16, 24, 16, true],
|
||||
label: '砖块(砖块,1/4,高)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 12, 16, 24, 16, true],
|
||||
model: 'building/building_brick_d_tall',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_brick_e',
|
||||
box: [0, 0, 12, 16, 16, 16, true],
|
||||
label: '砖块(青色陶瓦,1/4)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 12, 16, 16, 16, true],
|
||||
model: 'building/building_brick_e',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_brick_e_tall',
|
||||
box: [0, 0, 12, 16, 24, 16, true],
|
||||
label: '砖块(青色陶瓦,1/4,高)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 12, 16, 24, 16, true],
|
||||
model: 'building/building_brick_e_tall',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_cover_a',
|
||||
box: [0, 13, 0, 16, 15, 16, true],
|
||||
label: '井盖',
|
||||
blockstate: null,
|
||||
box: [0, 13, 0, 16, 15, 16, true],
|
||||
model: 'building/building_cover_a',
|
||||
texture: '',
|
||||
orientable: false,
|
||||
type: '',
|
||||
},
|
||||
{
|
||||
name: 'building_fence_a_bottom',
|
||||
box: [0, 0, 0, 16, 32, 16, true],
|
||||
label: '围栏(下)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 0, 16, 32, 16, true],
|
||||
model: 'building/building_fence_a_bottom',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_fence_a_top',
|
||||
box: [0, 0, 0, 16, 32, 16, true],
|
||||
label: '围栏(上)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 0, 16, 32, 16, true],
|
||||
model: 'building/building_fence_a_top',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_fence_b',
|
||||
box: [0, 0, 7, 16, 16, 9, true],
|
||||
label: '白色栅栏',
|
||||
blockstate: null,
|
||||
box: [0, 0, 7, 16, 16, 9, true],
|
||||
model: 'building/building_fence_b',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_fence_b_corner_inner',
|
||||
box: [6, 0, 0, 16, 16, 10, true],
|
||||
label: '白色栅栏(角落,向内)',
|
||||
blockstate: null,
|
||||
box: [6, 0, 0, 16, 16, 10, true],
|
||||
model: 'building/building_fence_b_corner_inner',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_fence_b_corner_outer',
|
||||
box: [0, 0, 6, 10, 16, 16, true],
|
||||
label: '白色栅栏(角落,向外)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 6, 10, 16, 16, true],
|
||||
model: 'building/building_fence_b_corner_outer',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_ground_a',
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
label: '地面(红色混凝土 + 磨制闪长岩)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
model: 'building/building_ground_a',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_iron_pole_a',
|
||||
box: [6, 0, 6, 10, 16, 10, true],
|
||||
label: '铁杆',
|
||||
blockstate: null,
|
||||
box: [6, 0, 6, 10, 16, 10, true],
|
||||
model: 'building/building_iron_pole_a',
|
||||
texture: '',
|
||||
orientable: false,
|
||||
type: '',
|
||||
},
|
||||
{
|
||||
name: 'building_misc_a',
|
||||
box: [0, 8, 14, 16, 16, 16, true],
|
||||
label: '石英片',
|
||||
blockstate: null,
|
||||
box: [0, 8, 14, 16, 16, 16, true],
|
||||
model: 'building/building_misc_a',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_misc_b',
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
label: '石英块',
|
||||
blockstate: null,
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
model: 'building/building_misc_b',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_misc_c',
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
label: '石英块',
|
||||
blockstate: null,
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
model: 'building/building_misc_c',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_misc_d',
|
||||
box: [0, 8, 8, 16, 16, 16, true],
|
||||
label: '石英块',
|
||||
blockstate: null,
|
||||
box: [0, 8, 8, 16, 16, 16, true],
|
||||
model: 'building/building_misc_d',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_pillar_a',
|
||||
box: [1, 0, 1, 15, 16, 15, true],
|
||||
label: '柱子',
|
||||
blockstate: null,
|
||||
box: [1, 0, 1, 15, 16, 15, true],
|
||||
model: 'building/building_pillar_a',
|
||||
texture: '',
|
||||
orientable: false,
|
||||
type: '',
|
||||
},
|
||||
{
|
||||
name: 'building_pillar_a_tall',
|
||||
box: [1, 0, 1, 15, 24, 15, true],
|
||||
label: '柱子(高)',
|
||||
blockstate: null,
|
||||
box: [1, 0, 1, 15, 24, 15, true],
|
||||
model: 'building/building_pillar_a_tall',
|
||||
texture: '',
|
||||
orientable: false,
|
||||
type: '',
|
||||
},
|
||||
{
|
||||
name: 'building_pillar_b',
|
||||
box: [-8, 0, -8, 24, 16, 24, true],
|
||||
label: '粗柱子',
|
||||
blockstate: null,
|
||||
box: [-8, 0, -8, 24, 16, 24, true],
|
||||
model: 'building/building_pillar_b',
|
||||
texture: '',
|
||||
orientable: false,
|
||||
type: '',
|
||||
},
|
||||
{
|
||||
name: 'building_pillar_b_tall',
|
||||
box: [-8, 0, -8, 24, 24, 24, true],
|
||||
label: '粗柱子(高)',
|
||||
blockstate: null,
|
||||
box: [-8, 0, -8, 24, 24, 24, true],
|
||||
model: 'building/building_pillar_b_tall',
|
||||
texture: '',
|
||||
orientable: false,
|
||||
type: '',
|
||||
},
|
||||
{
|
||||
name: 'building_quartz_vertical_slab',
|
||||
box: [0, 0, 8, 16, 16, 16, true],
|
||||
label: '垂直石英台阶',
|
||||
blockstate: null,
|
||||
box: [0, 0, 8, 16, 16, 16, true],
|
||||
model: 'building/building_quartz_vertical_slab',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_rail_a',
|
||||
box: [0, 6, 6, 16, 10, 10, true],
|
||||
label: '铁扶手',
|
||||
blockstate: null,
|
||||
box: [0, 6, 6, 16, 10, 10, true],
|
||||
model: 'building/building_rail_a',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_rail_b',
|
||||
box: [0, 0, 6, 16, 10, 10, true],
|
||||
label: '铁扶手',
|
||||
blockstate: null,
|
||||
box: [0, 0, 6, 16, 10, 10, true],
|
||||
model: 'building/building_rail_b',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_rail_c',
|
||||
box: [0, 0, 6, 10, 10, 10, true],
|
||||
label: '铁扶手',
|
||||
blockstate: null,
|
||||
box: [0, 0, 6, 10, 10, 10, true],
|
||||
model: 'building/building_rail_c',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_rail_d',
|
||||
box: [0, 6, 0, 10, 10, 10, true],
|
||||
label: '铁扶手',
|
||||
blockstate: null,
|
||||
box: [0, 6, 0, 10, 10, 10, true],
|
||||
model: 'building/building_rail_d',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_rail_e',
|
||||
box: [-3, 6, 0, 10, 10, 15, true],
|
||||
label: '铁扶手(斜向)',
|
||||
blockstate: null,
|
||||
box: [-3, 6, 0, 10, 10, 15, true],
|
||||
model: 'building/building_rail_e',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_rail_f',
|
||||
box: [0, 6, -3, 15, 10, 10, true],
|
||||
label: '铁扶手(斜向)',
|
||||
blockstate: null,
|
||||
box: [0, 6, -3, 15, 10, 10, true],
|
||||
model: 'building/building_rail_f',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_rail_f_extend',
|
||||
box: [0, 6, 0, 16, 10, 16, true],
|
||||
label: '铁扶手(斜向,扩展)',
|
||||
blockstate: null,
|
||||
box: [0, 6, 0, 16, 10, 16, true],
|
||||
model: 'building/building_rail_f_extend',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_rail_g',
|
||||
box: [0, 0, 1, 16, 10, 16, true],
|
||||
label: '铁扶手(石英)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 1, 16, 10, 16, true],
|
||||
model: 'building/building_rail_g',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_stair_rail_a',
|
||||
box: [0, 0, 0, 9, 16, 9, true],
|
||||
label: '楼梯铁扶手',
|
||||
blockstate: null,
|
||||
box: [0, 0, 0, 9, 16, 9, true],
|
||||
model: 'building/building_stair_rail_a',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_stair_rail_a_half',
|
||||
box: [0, 0, 0, 9, 8, 9, true],
|
||||
label: '楼梯铁扶手(半高)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 0, 9, 8, 9, true],
|
||||
model: 'building/building_stair_rail_a_half',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_stair_rail_b',
|
||||
box: [0, 0, 7, 16, 16, 9, true],
|
||||
label: '楼梯铁扶手',
|
||||
blockstate: null,
|
||||
box: [0, 0, 7, 16, 16, 9, true],
|
||||
model: 'building/building_stair_rail_b',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_stair_rail_b_half',
|
||||
box: [0, 0, 7, 16, 8, 9, true],
|
||||
label: '楼梯铁扶手(半高)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 7, 16, 8, 9, true],
|
||||
model: 'building/building_stair_rail_b_half',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_stair_rail_c',
|
||||
box: [0, 0, 7, 9, 16, 9, true],
|
||||
label: '楼梯铁扶手',
|
||||
blockstate: null,
|
||||
box: [0, 0, 7, 9, 16, 9, true],
|
||||
model: 'building/building_stair_rail_c',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_stair_rail_c_half',
|
||||
box: [0, 0, 7, 9, 8, 9, true],
|
||||
label: '楼梯铁扶手(半高)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 7, 9, 8, 9, true],
|
||||
model: 'building/building_stair_rail_c_half',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_stair_rail_d',
|
||||
box: [0, 0, 7, 16, 16, 9, true],
|
||||
label: '楼梯铁扶手',
|
||||
blockstate: null,
|
||||
box: [0, 0, 7, 16, 16, 9, true],
|
||||
model: 'building/building_stair_rail_d',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_stair_rail_e',
|
||||
box: [0, 0, 7, 16, 16, 9, true],
|
||||
label: '楼梯铁扶手',
|
||||
blockstate: null,
|
||||
box: [0, 0, 7, 16, 16, 9, true],
|
||||
model: 'building/building_stair_rail_e',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_stair_rail_f',
|
||||
box: [0, 0, 7, 16, 16, 9, true],
|
||||
label: '楼梯铁扶手',
|
||||
blockstate: null,
|
||||
box: [0, 0, 7, 16, 16, 9, true],
|
||||
model: 'building/building_stair_rail_f',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_stair_rail_g',
|
||||
box: [7, 0, 7, 9, 16, 9, true],
|
||||
label: '楼梯铁扶手(垂直杆子)',
|
||||
blockstate: null,
|
||||
box: [7, 0, 7, 9, 16, 9, true],
|
||||
model: 'building/building_stair_rail_g',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_stair_rail_h',
|
||||
box: [0, 14, 7, 16, 16, 9, true],
|
||||
label: '楼梯铁扶手(水平杆子)',
|
||||
blockstate: null,
|
||||
box: [0, 14, 7, 16, 16, 9, true],
|
||||
model: 'building/building_stair_rail_h',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_stair_rail_h_half',
|
||||
box: [0, 6, 7, 16, 8, 9, true],
|
||||
label: '楼梯铁扶手(水平杆子,半高)',
|
||||
blockstate: null,
|
||||
box: [0, 6, 7, 16, 8, 9, true],
|
||||
model: 'building/building_stair_rail_h_half',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_wall_a',
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
label: '墙(石砖 + 石英)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
model: 'building/building_wall_a',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_wall_b',
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
label: '墙(青色陶瓦 + 石英)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
model: 'building/building_wall_b',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_wall_c',
|
||||
box: [0, 0, 3, 16, 16, 14, true],
|
||||
label: '墙(石英)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 3, 16, 16, 14, true],
|
||||
model: 'building/building_wall_c',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'building_wall_d',
|
||||
box: [0, 0, 3, 16, 16, 16, true],
|
||||
label: '墙(石英)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 3, 16, 16, 16, true],
|
||||
model: 'building/building_wall_d',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
// 家具方块
|
||||
{
|
||||
name: 'furniture_birch_chair_a',
|
||||
box: [4, 0, 4, 12, 16, 12, true],
|
||||
label: '白桦木椅子',
|
||||
blockstate: null,
|
||||
box: [4, 0, 4, 12, 16, 12, true],
|
||||
model: 'furniture/furniture_birch_chair_a',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'furniture_birch_table_a',
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
label: '白桦木桌子',
|
||||
blockstate: null,
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
model: 'furniture/furniture_birch_table_a',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'furniture_faucet_a',
|
||||
box: [0, 0, 5, 16, 9, 16, true],
|
||||
label: '水龙头',
|
||||
blockstate: null,
|
||||
box: [0, 0, 5, 16, 9, 16, true],
|
||||
model: 'furniture/furniture_faucet_a',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'furniture_black_board_a',
|
||||
box: [0, 0, 15, 16, 16, 16, true],
|
||||
label: '黑板',
|
||||
blockstate: null,
|
||||
box: [0, 0, 15, 16, 16, 16, true],
|
||||
model: 'furniture/furniture_black_board_a',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'furniture_kitchen_counter_a',
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
label: '白桦木厨房柜台',
|
||||
blockstate: null,
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
model: 'furniture/furniture_kitchen_counter_a',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'furniture_kitchen_sink_a',
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
label: '白桦木厨房水槽',
|
||||
blockstate: null,
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
model: 'furniture/furniture_kitchen_sink_a',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'furniture_tv_a',
|
||||
box: [0, 3, 13, 16, 16, 16, true],
|
||||
label: '电视机',
|
||||
blockstate: null,
|
||||
box: [0, 3, 13, 16, 16, 16, true],
|
||||
model: 'furniture/furniture_tv_a',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'furniture_tv_b',
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
label: '电视机',
|
||||
blockstate: null,
|
||||
box: [0, 0, 0, 16, 16, 16, true],
|
||||
model: 'furniture/furniture_tv_b',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'furniture_tv_c',
|
||||
box: [3, 0, 2, 13, 14, 13, true],
|
||||
label: '电视机',
|
||||
blockstate: null,
|
||||
box: [3, 0, 2, 13, 14, 13, true],
|
||||
model: 'furniture/furniture_tv_c',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -594,8 +653,9 @@ function regBlockBuildingAndFurniture(event) {
|
||||
let blockLabel = config.label;
|
||||
let blockName = config.name;
|
||||
let blockId = `${MOD_ID}:${blockName}`;
|
||||
let blockType = config.type;
|
||||
|
||||
let block = config.orientable ? event.create(blockId, 'cardinal') : event.create(blockId);
|
||||
let block = null;
|
||||
|
||||
let modelPath0 = config.model;
|
||||
let modelPath1 = modelPath0 ? `${P_BLOCK}/${modelPath0}` : '';
|
||||
@@ -603,6 +663,12 @@ function regBlockBuildingAndFurniture(event) {
|
||||
let texturePath0 = config.texture;
|
||||
let texturePath1 = texturePath0 ? `${P_BLOCK}/${texturePath0}` : '';
|
||||
|
||||
if (blockType) {
|
||||
block = event.create(blockId, blockType);
|
||||
} else {
|
||||
block = event.create(blockId);
|
||||
}
|
||||
|
||||
TAB_BLOCKS_ITEMS.push(blockId);
|
||||
|
||||
// 设置基础属性
|
||||
@@ -636,6 +702,14 @@ function regBlockBuildingAndFurniture(event) {
|
||||
});
|
||||
}
|
||||
|
||||
// 生成方块状态
|
||||
if (config.blockstate) {
|
||||
JSON_ASSETS.push({
|
||||
path: `${P_BLOCK_STATE}/${blockName}`,
|
||||
data: config.blockstate,
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
console.info(`${LOG_PREFIX} 注册方块 - 建筑和家具 - 完成`);
|
||||
@@ -1311,123 +1385,138 @@ function regBlockOtherBasic(event) {
|
||||
let blockList = [
|
||||
{
|
||||
name: 'crate_a',
|
||||
box: null,
|
||||
label: '板条箱',
|
||||
blockstate: null,
|
||||
box: null,
|
||||
model: '',
|
||||
texture: 'common/crate_a',
|
||||
orientable: false,
|
||||
type: '',
|
||||
},
|
||||
{
|
||||
name: 'isolation_pile_a',
|
||||
box: [5, 0, 5, 11, 16, 11, true],
|
||||
label: '隔离桩',
|
||||
blockstate: null,
|
||||
box: [5, 0, 5, 11, 16, 11, true],
|
||||
model: 'common/isolation_pile_a',
|
||||
texture: '',
|
||||
orientable: false,
|
||||
type: '',
|
||||
},
|
||||
{
|
||||
name: 'road_sign_a_ns',
|
||||
box: [6, 0, -16, 10, 16, 32, true],
|
||||
label: '路牌(NS)',
|
||||
blockstate: null,
|
||||
box: [6, 0, -16, 10, 16, 32, true],
|
||||
model: 'road_sign/road_sign_a_ns',
|
||||
texture: '',
|
||||
orientable: false,
|
||||
type: '',
|
||||
},
|
||||
{
|
||||
name: 'road_sign_a_we',
|
||||
box: [-16, 0, 6, 32, 16, 10, true],
|
||||
label: '路牌(WE)',
|
||||
blockstate: null,
|
||||
box: [-16, 0, 6, 32, 16, 10, true],
|
||||
model: 'road_sign/road_sign_a_we',
|
||||
texture: '',
|
||||
orientable: false,
|
||||
type: '',
|
||||
},
|
||||
{
|
||||
name: 'road_sign_a_pole',
|
||||
box: [5, -16, 5, 11, 32, 11, true],
|
||||
label: '路牌(杆子)',
|
||||
blockstate: null,
|
||||
box: [5, -16, 5, 11, 32, 11, true],
|
||||
model: 'road_sign/road_sign_a_pole',
|
||||
texture: '',
|
||||
orientable: false,
|
||||
type: '',
|
||||
},
|
||||
{
|
||||
name: 'station_sign_a',
|
||||
box: [0, 0, 6, 16, 16, 10, true],
|
||||
label: '站牌',
|
||||
blockstate: null,
|
||||
box: [0, 0, 6, 16, 16, 10, true],
|
||||
model: 'common/station_sign_a',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'statue_player_alex',
|
||||
box: [0, 0, 5, 16, 32, 11, true],
|
||||
label: '模型(Alex)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 5, 16, 32, 11, true],
|
||||
model: 'statue/player_alex',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'statue_player_steve',
|
||||
box: [0, 0, 5, 16, 32, 11, true],
|
||||
label: '模型(Steve)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 5, 16, 32, 11, true],
|
||||
model: 'statue/player_steve',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'ticket_machine_a',
|
||||
box: [3, 0, 6, 13, 30, 16, true],
|
||||
label: '售票机',
|
||||
blockstate: null,
|
||||
box: [3, 0, 6, 13, 30, 16, true],
|
||||
model: 'common/ticket_machine_a',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'traffic_light_a_pedestrian_ns',
|
||||
box: [0, 0, 10, 16, 16, 16, true],
|
||||
label: '人行道红绿灯(NS)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 10, 16, 16, 16, true],
|
||||
model: 'traffic_light/traffic_light_a_pedestrian_ns',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'traffic_light_a_pedestrian_we',
|
||||
box: [0, 0, 10, 16, 16, 16, true],
|
||||
label: '人行道红绿灯(WE)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 10, 16, 16, 16, true],
|
||||
model: 'traffic_light/traffic_light_a_pedestrian_we',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'traffic_light_a_traffic_h_ns',
|
||||
box: [0, 0, 10, 16, 16, 16, true],
|
||||
label: '交通红绿灯(水平,NS)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 10, 16, 16, 16, true],
|
||||
model: 'traffic_light/traffic_light_a_traffic_h_ns',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'traffic_light_a_traffic_h_we',
|
||||
box: [0, 0, 10, 16, 16, 16, true],
|
||||
label: '交通红绿灯(水平,WE)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 10, 16, 16, 16, true],
|
||||
model: 'traffic_light/traffic_light_a_traffic_h_we',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'traffic_light_a_traffic_v_ns',
|
||||
box: [0, 0, 10, 16, 16, 16, true],
|
||||
label: '交通红绿灯(垂直,NS)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 10, 16, 16, 16, true],
|
||||
model: 'traffic_light/traffic_light_a_traffic_v_ns',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
{
|
||||
name: 'traffic_light_a_traffic_v_we',
|
||||
box: [0, 0, 10, 16, 16, 16, true],
|
||||
label: '交通红绿灯(垂直,WE)',
|
||||
blockstate: null,
|
||||
box: [0, 0, 10, 16, 16, 16, true],
|
||||
model: 'traffic_light/traffic_light_a_traffic_v_we',
|
||||
texture: '',
|
||||
orientable: true,
|
||||
type: 'cardinal',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1437,8 +1526,9 @@ function regBlockOtherBasic(event) {
|
||||
let blockLabel = config.label;
|
||||
let blockName = config.name;
|
||||
let blockId = `${MOD_ID}:${blockName}`;
|
||||
let blockType = config.type;
|
||||
|
||||
let block = config.orientable ? event.create(blockId, 'cardinal') : event.create(blockId);
|
||||
let block = null;
|
||||
|
||||
let modelPath0 = config.model;
|
||||
let modelPath1 = modelPath0 ? `${P_BLOCK}/${modelPath0}` : '';
|
||||
@@ -1446,6 +1536,12 @@ function regBlockOtherBasic(event) {
|
||||
let texturePath0 = config.texture;
|
||||
let texturePath1 = texturePath0 ? `${P_BLOCK}/${texturePath0}` : '';
|
||||
|
||||
if (blockType) {
|
||||
block = event.create(blockId, blockType);
|
||||
} else {
|
||||
block = event.create(blockId);
|
||||
}
|
||||
|
||||
TAB_BLOCKS_ITEMS.push(blockId);
|
||||
|
||||
// 设置基础属性
|
||||
@@ -1479,6 +1575,14 @@ function regBlockOtherBasic(event) {
|
||||
});
|
||||
}
|
||||
|
||||
// 生成方块状态
|
||||
if (config.blockstate) {
|
||||
JSON_ASSETS.push({
|
||||
path: `${P_BLOCK_STATE}/${blockName}`,
|
||||
data: config.blockstate,
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
console.info(`${LOG_PREFIX} 注册方块 - 其他 - 基础 - 完成`);
|
||||
@@ -1522,7 +1626,7 @@ function regBlockOtherShaped(event) {
|
||||
`${P_BLOCK}/pole/pole_a_horizon_post`,
|
||||
`${P_BLOCK}/pole/pole_a_horizon_side`,
|
||||
),
|
||||
texture: 'block/light_gray_concrete',
|
||||
texture: 'minecraft:block/light_gray_concrete',
|
||||
type: 'fence',
|
||||
},
|
||||
{
|
||||
@@ -1532,7 +1636,7 @@ function regBlockOtherShaped(event) {
|
||||
`${P_BLOCK}/pole/pole_a_vertical_post`,
|
||||
`${P_BLOCK}/pole/pole_a_vertical_side`,
|
||||
),
|
||||
texture: 'block/light_gray_concrete',
|
||||
texture: 'minecraft:block/light_gray_concrete',
|
||||
type: 'fence',
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user