9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-31 04:46:37 +00:00

修复map类型参数,增加debug功能

This commit is contained in:
XiaoMoMi
2025-06-18 17:57:54 +08:00
parent 89c35d2d41
commit 730ce99fe4
10 changed files with 31 additions and 76 deletions

View File

@@ -293,7 +293,7 @@ items:
type: "minecraft:model"
path: "minecraft:item/custom/palm_trapdoor"
generation:
parent: "minecraft:block/custom/palm_trapdoor"
parent: "minecraft:block/custom/palm_trapdoor_bottom"
behavior:
type: block_item
block:
@@ -319,9 +319,21 @@ items:
template: "default:block_state/trapdoor"
arguments:
base_block: acacia_trapdoor
model_bottom_path: "minecraft:block/birch_trapdoor_bottom"
model_open_path: "minecraft:block/birch_trapdoor_open"
model_top_path: "minecraft:block/birch_trapdoor_top"
model_bottom_path: "minecraft:block/custom/palm_trapdoor_bottom"
model_bottom_generation:
parent: "minecraft:block/template_orientable_trapdoor_bottom"
textures:
texture: "minecraft:block/custom/palm_trapdoor"
model_open_path: "minecraft:block/custom/palm_trapdoor_open"
model_open_generation:
parent: "minecraft:block/template_orientable_trapdoor_open"
textures:
texture: "minecraft:block/custom/palm_trapdoor"
model_top_path: "minecraft:block/custom/palm_trapdoor_top"
model_top_generation:
parent: "minecraft:block/template_orientable_trapdoor_top"
textures:
texture: "minecraft:block/custom/palm_trapdoor"
recipes:
default:palm_planks:

View File

@@ -984,16 +984,19 @@ templates#block_states:
model:
path: ${model_bottom_path}
y: 90
generation: ${model_bottom_generation}
facing=east,half=bottom,open=true,waterlogged=false:
state: "${base_block}[facing=east,half=bottom,open=true,powered=true,waterlogged=false]"
model:
path: ${model_open_path}
y: 90
generation: ${model_open_generation}
facing=east,half=top,open=false,waterlogged=false:
state: "${base_block}[facing=east,half=top,open=false,powered=true,waterlogged=false]"
model:
path: ${model_top_path}
y: 90
generation: ${model_top_generation}
facing=east,half=top,open=true,waterlogged=false:
state: "${base_block}[facing=east,half=top,open=true,powered=true,waterlogged=false]"
model: