9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2026-01-04 15:41:38 +00:00

外观方块分配 未测试

This commit is contained in:
XiaoMoMi
2025-09-30 01:14:40 +08:00
parent 48bdf5f4e0
commit a85b94392e
39 changed files with 975 additions and 477 deletions

View File

@@ -210,6 +210,13 @@ debug_save_default_resources:
- /craftengine debug save-default-resources
- /ce debug save-default-resources
debug_clean_cache:
enable: true
permission: ce.command.debug.clean_cache
usage:
- /craftengine debug clean-cache
- /ce debug clean-cache
debug_test:
enable: true
permission: ce.command.debug.test

View File

@@ -34,7 +34,7 @@ items:
default: north
appearances:
east:
state: note_block:18
auto-state: solid
model:
path: minecraft:block/custom/chessboard_block
y: 270
@@ -43,16 +43,16 @@ items:
textures:
pattern: minecraft:block/custom/chessboard_block
north:
state: note_block:19
auto-state: solid
model:
path: minecraft:block/custom/chessboard_block
y: 180
south:
state: note_block:20
auto-state: solid
model:
path: minecraft:block/custom/chessboard_block
west:
state: note_block:21
auto-state: solid
model:
path: minecraft:block/custom/chessboard_block
y: 90

View File

@@ -25,7 +25,7 @@ items:
luminance: 15
map-color: 36
state:
state: note_block:15
auto-state: solid
model:
path: minecraft:block/custom/chinese_lantern
generation:

View File

@@ -36,7 +36,7 @@ items:
default: false
appearances:
off:
state: cactus:0
auto-state: cactus
model:
path: minecraft:block/custom/copper_coil
generation:
@@ -47,7 +47,7 @@ items:
top: minecraft:block/custom/copper_coil
side: minecraft:block/custom/copper_coil_side
on:
state: cactus:1
auto-state: cactus
model:
path: minecraft:block/custom/copper_coil_on
generation:

View File

@@ -90,7 +90,7 @@ blocks:
range: 0~2
appearances:
stage_0:
state: tripwire:1
auto-state: lower_tripwire
models:
- path: minecraft:block/custom/ender_pearl_flower_stage_0
generation:
@@ -98,7 +98,7 @@ blocks:
textures:
cross: minecraft:block/custom/ender_pearl_flower_stage_0
stage_1:
state: tripwire:0
auto-state: higher_tripwire
models:
- path: minecraft:block/custom/ender_pearl_flower_stage_1
generation:
@@ -106,7 +106,7 @@ blocks:
textures:
cross: minecraft:block/custom/ender_pearl_flower_stage_1
stage_2:
state: sugar_cane:3
auto-state: sugar_cane
models:
- path: minecraft:block/custom/ender_pearl_flower_stage_2
generation:

View File

@@ -26,7 +26,7 @@ items:
loot:
template: default:loot_table/self
state:
state: sugar_cane:0
auto-state: sugar_cane
models:
- path: minecraft:block/custom/fairy_flower_1
weight: 100

View File

@@ -53,7 +53,7 @@ items:
range: 0~5
appearances:
default:
state: sugar_cane:2
auto-state: sugar_cane
models:
- path: minecraft:block/custom/flame_cane_1
weight: 1

View File

@@ -27,7 +27,7 @@ items:
instrument: snare
map-color: 45
state:
state: note_block:16
auto-state: solid
model:
path: minecraft:block/custom/gunpowder_block
generation:
@@ -59,7 +59,7 @@ items:
instrument: basedrum
map-color: 45
state:
state: note_block:17
auto-state: solid
model:
path: minecraft:block/custom/solid_gunpowder_block
generation:

View File

@@ -27,7 +27,6 @@ items:
states:
template: default:block_state/pillar
arguments:
base_block: note_block
texture_top_path: minecraft:block/custom/palm_log_top
texture_side_path: minecraft:block/custom/palm_log
model_vertical_path: minecraft:block/custom/palm_log
@@ -57,7 +56,6 @@ items:
states:
template: default:block_state/pillar
arguments:
base_block: note_block
texture_top_path: minecraft:block/custom/stripped_palm_log_top
texture_side_path: minecraft:block/custom/stripped_palm_log
model_vertical_path: minecraft:block/custom/stripped_palm_log
@@ -90,7 +88,6 @@ items:
states:
template: default:block_state/pillar
arguments:
base_block: note_block
texture_top_path: minecraft:block/custom/palm_log
texture_side_path: minecraft:block/custom/palm_log
model_vertical_path: minecraft:block/custom/palm_wood
@@ -120,7 +117,6 @@ items:
states:
template: default:block_state/pillar
arguments:
base_block: note_block
texture_top_path: minecraft:block/custom/stripped_palm_log
texture_side_path: minecraft:block/custom/stripped_palm_log
model_vertical_path: minecraft:block/custom/stripped_palm_wood
@@ -151,7 +147,7 @@ items:
template: default:model/simplified_cube_all
arguments:
path: minecraft:block/custom/palm_planks
state: note_block:12
auto-state: solid
default:palm_sapling:
material: nether_brick
settings:
@@ -187,7 +183,7 @@ items:
range: 0~1
appearances:
default:
state: oak_sapling:0
auto-state: sapling
model:
path: minecraft:block/custom/palm_sapling
generation:

View File

@@ -58,7 +58,7 @@ items:
default: 1
appearances:
one:
state: tripwire:2
auto-state: lower_tripwire
models:
- path: minecraft:block/custom/pebble_1
weight: 1
@@ -72,7 +72,7 @@ items:
weight: 1
y: 270
two:
state: tripwire:3
auto-state: lower_tripwire
models:
- path: minecraft:block/custom/pebble_2
weight: 1
@@ -86,7 +86,7 @@ items:
weight: 1
y: 270
three:
state: tripwire:4
auto-state: higher_tripwire
models:
- path: minecraft:block/custom/pebble_3
weight: 1

View File

@@ -25,7 +25,7 @@ items:
loot:
template: default:loot_table/self
state:
state: sugar_cane:1
auto-state: sugar_cane
model:
path: minecraft:block/custom/reed
recipes:

View File

@@ -48,7 +48,7 @@ items:
default: false
appearances:
east:
state: note_block:22
auto-state: note_block
model:
path: minecraft:block/custom/safe_block
y: 90
@@ -59,7 +59,7 @@ items:
side: minecraft:block/custom/safe_block_side
top: minecraft:block/custom/safe_block_top
east_open:
state: note_block:23
auto-state: note_block
model:
path: minecraft:block/custom/safe_block_open
y: 90
@@ -70,30 +70,30 @@ items:
side: minecraft:block/custom/safe_block_side
top: minecraft:block/custom/safe_block_top
north:
state: note_block:24
auto-state: note_block
model:
path: minecraft:block/custom/safe_block
north_open:
state: note_block:25
auto-state: note_block
model:
path: minecraft:block/custom/safe_block_open
south:
state: note_block:26
auto-state: note_block
model:
path: minecraft:block/custom/safe_block
y: 180
south_open:
state: note_block:27
auto-state: note_block
model:
path: minecraft:block/custom/safe_block_open
y: 180
west:
state: note_block:28
auto-state: note_block
model:
path: minecraft:block/custom/safe_block
y: 270
west_open:
state: note_block:29
auto-state: note_block
model:
path: minecraft:block/custom/safe_block_open
y: 270

View File

@@ -50,7 +50,7 @@ blocks:
arguments:
break_power: 2
state:
state: note_block:13
auto-state: solid
model:
template: default:model/simplified_cube_all
arguments:

View File

@@ -862,7 +862,7 @@ templates#block_states:
default: y
appearances:
axisY:
state: ${base_block}
auto-state: solid
model:
path: ${model_vertical_path}
generation:
@@ -871,7 +871,7 @@ templates#block_states:
end: ${texture_top_path}
side: ${texture_side_path}
axisX:
state: ${base_block}
auto-state: solid
model:
x: 90
y: 90
@@ -882,7 +882,7 @@ templates#block_states:
end: ${texture_top_path}
side: ${texture_side_path}
axisZ:
state: ${base_block}
auto-state: solid
model:
x: 90
path: ${model_horizontal_path}
@@ -913,7 +913,7 @@ templates#block_states:
range: 1~7
appearances:
default:
state: ${default_state}
auto-state: leaves
model:
path: ${model_path}
generation:
@@ -921,7 +921,7 @@ templates#block_states:
textures:
all: ${texture_path}
waterlogged:
state: ${waterlogged_state}
auto-state: waterlogged_leaves
model:
path: ${model_path}
variants:
@@ -2231,6 +2231,11 @@ templates#block_states:
x: 180
y: 180
variants:
waterlogged=true:
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=east,half=bottom,shape=inner_left,waterlogged=false:
appearance: facing=east,half=bottom,shape=inner_left,waterlogged=false
facing=east,half=bottom,shape=inner_right,waterlogged=false:
@@ -2313,244 +2318,85 @@ templates#block_states:
appearance: facing=west,half=top,shape=straight,waterlogged=false
facing=east,half=bottom,shape=inner_left,waterlogged=true:
appearance: facing=east,half=bottom,shape=inner_left,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=east,half=bottom,shape=inner_right,waterlogged=true:
appearance: facing=east,half=bottom,shape=inner_right,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=east,half=bottom,shape=outer_left,waterlogged=true:
appearance: facing=east,half=bottom,shape=outer_left,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=east,half=bottom,shape=outer_right,waterlogged=true:
appearance: facing=east,half=bottom,shape=outer_right,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=east,half=bottom,shape=straight,waterlogged=true:
appearance: facing=east,half=bottom,shape=straight,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=east,half=top,shape=inner_left,waterlogged=true:
appearance: facing=east,half=top,shape=inner_left,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=east,half=top,shape=inner_right,waterlogged=true:
appearance: facing=east,half=top,shape=inner_right,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=east,half=top,shape=outer_left,waterlogged=true:
appearance: facing=east,half=top,shape=outer_left,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=east,half=top,shape=outer_right,waterlogged=true:
appearance: facing=east,half=top,shape=outer_right,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=east,half=top,shape=straight,waterlogged=true:
appearance: facing=east,half=top,shape=straight,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=north,half=bottom,shape=inner_left,waterlogged=true:
appearance: facing=north,half=bottom,shape=inner_left,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=north,half=bottom,shape=inner_right,waterlogged=true:
appearance: facing=north,half=bottom,shape=inner_right,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=north,half=bottom,shape=outer_left,waterlogged=true:
appearance: facing=north,half=bottom,shape=outer_left,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=north,half=bottom,shape=outer_right,waterlogged=true:
appearance: facing=north,half=bottom,shape=outer_right,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=north,half=bottom,shape=straight,waterlogged=true:
appearance: facing=north,half=bottom,shape=straight,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=north,half=top,shape=inner_left,waterlogged=true:
appearance: facing=north,half=top,shape=inner_left,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=north,half=top,shape=inner_right,waterlogged=true:
appearance: facing=north,half=top,shape=inner_right,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=north,half=top,shape=outer_left,waterlogged=true:
appearance: facing=north,half=top,shape=outer_left,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=north,half=top,shape=outer_right,waterlogged=true:
appearance: facing=north,half=top,shape=outer_right,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=north,half=top,shape=straight,waterlogged=true:
appearance: facing=north,half=top,shape=straight,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=south,half=bottom,shape=inner_left,waterlogged=true:
appearance: facing=south,half=bottom,shape=inner_left,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=south,half=bottom,shape=inner_right,waterlogged=true:
appearance: facing=south,half=bottom,shape=inner_right,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=south,half=bottom,shape=outer_left,waterlogged=true:
appearance: facing=south,half=bottom,shape=outer_left,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=south,half=bottom,shape=outer_right,waterlogged=true:
appearance: facing=south,half=bottom,shape=outer_right,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=south,half=bottom,shape=straight,waterlogged=true:
appearance: facing=south,half=bottom,shape=straight,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=south,half=top,shape=inner_left,waterlogged=true:
appearance: facing=south,half=top,shape=inner_left,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=south,half=top,shape=inner_right,waterlogged=true:
appearance: facing=south,half=top,shape=inner_right,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=south,half=top,shape=outer_left,waterlogged=true:
appearance: facing=south,half=top,shape=outer_left,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=south,half=top,shape=outer_right,waterlogged=true:
appearance: facing=south,half=top,shape=outer_right,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=south,half=top,shape=straight,waterlogged=true:
appearance: facing=south,half=top,shape=straight,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=west,half=bottom,shape=inner_left,waterlogged=true:
appearance: facing=west,half=bottom,shape=inner_left,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=west,half=bottom,shape=inner_right,waterlogged=true:
appearance: facing=west,half=bottom,shape=inner_right,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=west,half=bottom,shape=outer_left,waterlogged=true:
appearance: facing=west,half=bottom,shape=outer_left,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=west,half=bottom,shape=outer_right,waterlogged=true:
appearance: facing=west,half=bottom,shape=outer_right,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=west,half=bottom,shape=straight,waterlogged=true:
appearance: facing=west,half=bottom,shape=straight,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=west,half=top,shape=inner_left,waterlogged=true:
appearance: facing=west,half=top,shape=inner_left,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=west,half=top,shape=inner_right,waterlogged=true:
appearance: facing=west,half=top,shape=inner_right,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=west,half=top,shape=outer_left,waterlogged=true:
appearance: facing=west,half=top,shape=outer_left,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=west,half=top,shape=outer_right,waterlogged=true:
appearance: facing=west,half=top,shape=outer_right,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
facing=west,half=top,shape=straight,waterlogged=true:
appearance: facing=west,half=top,shape=straight,waterlogged=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
# pressure plate block
default:block_state/pressure_plate:
properties:
@@ -3171,6 +3017,11 @@ templates#block_states:
- item: ${fence_side_item}
rotation: 270
variants:
waterlogged=true:
settings:
resistance: 1200.0
burnable: false
fluid-state: water
east=false,north=false,south=false,waterlogged=false,west=false:
appearance: east=false,north=false,south=false,waterlogged=false,west=false
east=true,north=false,south=false,waterlogged=false,west=false:
@@ -3205,100 +3056,37 @@ templates#block_states:
appearance: east=true,north=true,south=true,waterlogged=false,west=true
east=false,north=false,south=false,waterlogged=true,west=false:
appearance: east=false,north=false,south=false,waterlogged=true,west=false
settings:
resistance: 1200.0
burnable: false
fluid-state: water
east=true,north=false,south=false,waterlogged=true,west=false:
appearance: east=true,north=false,south=false,waterlogged=true,west=false
settings:
resistance: 1200.0
burnable: false
fluid-state: water
east=false,north=true,south=false,waterlogged=true,west=false:
appearance: east=false,north=true,south=false,waterlogged=true,west=false
settings:
resistance: 1200.0
burnable: false
fluid-state: water
east=false,north=false,south=true,waterlogged=true,west=false:
appearance: east=false,north=false,south=true,waterlogged=true,west=false
settings:
resistance: 1200.0
burnable: false
fluid-state: water
east=false,north=false,south=false,waterlogged=true,west=true:
appearance: east=false,north=false,south=false,waterlogged=true,west=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
east=true,north=true,south=false,waterlogged=true,west=false:
appearance: east=true,north=true,south=false,waterlogged=true,west=false
settings:
resistance: 1200.0
burnable: false
fluid-state: water
east=true,north=false,south=true,waterlogged=true,west=false:
appearance: east=true,north=false,south=true,waterlogged=true,west=false
settings:
resistance: 1200.0
burnable: false
fluid-state: water
east=true,north=false,south=false,waterlogged=true,west=true:
appearance: east=true,north=false,south=false,waterlogged=true,west=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
east=false,north=true,south=true,waterlogged=true,west=false:
appearance: east=false,north=true,south=true,waterlogged=true,west=false
settings:
resistance: 1200.0
burnable: false
fluid-state: water
east=false,north=true,south=false,waterlogged=true,west=true:
appearance: east=false,north=true,south=false,waterlogged=true,west=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
east=false,north=false,south=true,waterlogged=true,west=true:
appearance: east=false,north=false,south=true,waterlogged=true,west=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
east=true,north=true,south=true,waterlogged=true,west=false:
appearance: east=true,north=true,south=true,waterlogged=true,west=false
settings:
resistance: 1200.0
burnable: false
fluid-state: water
east=true,north=true,south=false,waterlogged=true,west=true:
appearance: east=true,north=true,south=false,waterlogged=true,west=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
east=true,north=false,south=true,waterlogged=true,west=true:
appearance: east=true,north=false,south=true,waterlogged=true,west=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
east=false,north=true,south=true,waterlogged=true,west=true:
appearance: east=false,north=true,south=true,waterlogged=true,west=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
east=true,north=true,south=true,waterlogged=true,west=true:
appearance: east=true,north=true,south=true,waterlogged=true,west=true
settings:
resistance: 1200.0
burnable: false
fluid-state: water
# recipes
templates#recipes:
default:recipe/planks:

View File

@@ -277,6 +277,8 @@ warning.config.block.state.entity_renderer.better_model.missing_model: "<yellow>
warning.config.block.state.entity_renderer.model_engine.missing_model: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'model' argument for 'model_engine' entity renderer.</yellow>"
warning.config.block.state.variant.invalid_appearance: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' has an error that the variant '<arg:2>' is using a non-existing appearance '<arg:3>'.</yellow>"
warning.config.block.state.invalid_vanilla: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is using an invalid vanilla block state '<arg:2>'.</yellow>"
warning.config.block.state.invalid_auto_state: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is using an invalid auto-state '<arg:2>'. Allowed values: [<arg:3>].</yellow>"
warning.config.block.state.auto_state.exhausted: "<yellow>Issue found in file <arg:0> - Cannot allocate visual block state for block '<arg:1>' as the slots('<arg:3>') in group '<arg:2>' have been exhausted.</yellow>"
warning.config.block.state.unavailable_vanilla: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is using an unavailable vanilla block state '<arg:2>'. Please free that state in block-state-mappings.</yellow>"
warning.config.block.state.invalid_vanilla_id: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is using a vanilla block state '<arg:2>' that exceeds the available slot range '0~<arg:3>'.</yellow>"
warning.config.block.state.invalid_id: "<yellow>Issue found in file <arg:0> - The block state ID range (<arg:2>) used by block '<arg:1>' is outside the valid range of 0 to <arg:3>. Please add more server-side blocks in 'config.yml' if the current slots are exhausted.</yellow>"