diff --git a/common-files/src/main/resources/resources/default/configuration/palm_tree.yml b/common-files/src/main/resources/resources/default/configuration/palm_tree.yml index c3d56d240..eeedad323 100644 --- a/common-files/src/main/resources/resources/default/configuration/palm_tree.yml +++ b/common-files/src/main/resources/resources/default/configuration/palm_tree.yml @@ -334,6 +334,95 @@ items: parent: minecraft:block/template_orientable_trapdoor_top textures: texture: minecraft:block/custom/palm_trapdoor + default:palm_door: + material: nether_brick + custom-model-data: 1007 + data: + item-name: + model: + type: minecraft:model + path: minecraft:item/custom/palm_door + generation: + parent: minecraft:item/custom/palm_door + behavior: + type: block_item + block: + behaviors: + - type: door_block + can-open-with-hand: true + can-open-by-wind-charge: true + - type: sturdy_base_block + loot: + template: default:loot_table/self + settings: + template: + - default:sound/wood + overrides: + map-color: 2 + instrument: bass + hardness: 3.0 + resistance: 3.0 + burnable: true + tags: + - minecraft:doors + - minecraft:mineable/axe + - minecraft:mob_interactable_doors + states: + template: default:block_state/door + arguments: + base_block: oak_door + internal_id: + type: self_increase_int + from: 0 + to: 63 + model_top_left_path: minecraft:block/custom/palm_door_top_left + model_top_left_generation: + parent: minecraft:block/door_top_left + textures: + bottom: minecraft:block/palm_door_bottom + top: minecraft:block/palm_door_top + model_top_right_path: minecraft:block/custom/palm_door_top_right + model_top_right_generation: + parent: minecraft:block/door_top_right + textures: + bottom: minecraft:block/palm_door_bottom + top: minecraft:block/palm_door_top + model_top_left_open_path: minecraft:block/custom/palm_door_top_left_open + model_top_left_open_generation: + parent: minecraft:block/door_top_left_open + textures: + bottom: minecraft:block/palm_door_bottom + top: minecraft:block/palm_door_top + model_top_right_open_path: minecraft:block/custom/palm_door_top_right_open + model_top_right_open_generation: + parent: minecraft:block/door_top_right_open + textures: + bottom: minecraft:block/palm_door_bottom + top: minecraft:block/palm_door_top + model_bottom_left_path: minecraft:block/custom/palm_door_bottom_left + model_bottom_left_generation: + parent: minecraft:block/door_bottom_left + textures: + bottom: minecraft:block/palm_door_bottom + top: minecraft:block/palm_door_top + model_bottom_right_path: minecraft:block/custom/palm_door_bottom_right + model_bottom_right_generation: + parent: minecraft:block/door_bottom_right + textures: + bottom: minecraft:block/palm_door_bottom + top: minecraft:block/palm_door_top + model_bottom_left_open_path: minecraft:block/custom/palm_door_bottom_left_open + model_bottom_left_open_generation: + parent: minecraft:block/door_bottom_left_open + textures: + bottom: minecraft:block/palm_door_bottom + top: minecraft:block/palm_door_top + model_bottom_right_open_path: minecraft:block/custom/palm_door_bottom_right_open + model_bottom_right_open_generation: + parent: minecraft:block/door_bottom_right_open + textures: + bottom: minecraft:block/palm_door_bottom + top: minecraft:block/palm_door_top recipes: default:palm_planks: template: default:recipe/planks diff --git a/common-files/src/main/resources/resources/default/configuration/templates.yml b/common-files/src/main/resources/resources/default/configuration/templates.yml index f8381343f..898d068d0 100644 --- a/common-files/src/main/resources/resources/default/configuration/templates.yml +++ b/common-files/src/main/resources/resources/default/configuration/templates.yml @@ -1462,6 +1462,375 @@ templates#block_states: resistance: 1200.0 burnable: false fluid-state: water + # door block + default:block_state/door: + properties: + facing: + type: horizontal_direction + half: + type: double_block_half + hinge: + type: hinge + open: + type: boolean + default: false + powered: + type: boolean + default: false + appearances: + facing=east,half=lower,hinge=left,open=false: + state: ${base_block}[facing=east,half=lower,hinge=left,open=false,powered=true] + model: + path: ${model_bottom_left_path} + generation: ${model_bottom_left_generation} + facing=east,half=lower,hinge=left,open=true: + state: ${base_block}[facing=east,half=lower,hinge=left,open=true,powered=true] + model: + path: ${model_bottom_left_open_path} + y: 90 + generation: ${model_bottom_left_open_generation} + facing=east,half=lower,hinge=right,open=false: + state: ${base_block}[facing=east,half=lower,hinge=right,open=false,powered=true] + model: + path: ${model_bottom_right_path} + generation: ${model_bottom_right_generation} + facing=east,half=lower,hinge=right,open=true: + state: ${base_block}[facing=east,half=lower,hinge=right,open=true,powered=true] + model: + path: ${model_bottom_right_open_path} + y: 270 + generation: ${model_bottom_right_open_generation} + facing=east,half=upper,hinge=left,open=false: + state: ${base_block}[facing=east,half=upper,hinge=left,open=false,powered=true] + model: + path: ${model_top_left_path} + generation: ${model_top_left_generation} + facing=east,half=upper,hinge=left,open=true: + state: ${base_block}[facing=east,half=upper,hinge=left,open=true,powered=true] + model: + path: ${model_top_left_open_path} + y: 90 + generation: ${model_top_left_open_generation} + facing=east,half=upper,hinge=right,open=false: + state: ${base_block}[facing=east,half=upper,hinge=right,open=false,powered=true] + model: + path: ${model_top_right_path} + generation: ${model_top_right_generation} + facing=east,half=upper,hinge=right,open=true: + state: ${base_block}[facing=east,half=upper,hinge=right,open=true,powered=true] + model: + path: ${model_top_right_open_path} + y: 270 + generation: ${model_top_right_open_generation} + facing=north,half=lower,hinge=left,open=false: + state: ${base_block}[facing=north,half=lower,hinge=left,open=false,powered=true] + model: + path: ${model_bottom_left_path} + y: 270 + facing=north,half=lower,hinge=left,open=true: + state: ${base_block}[facing=north,half=lower,hinge=left,open=true,powered=true] + model: + path: ${model_bottom_left_open_path} + facing=north,half=lower,hinge=right,open=false: + state: ${base_block}[facing=north,half=lower,hinge=right,open=false,powered=true] + model: + path: ${model_bottom_right_path} + y: 270 + facing=north,half=lower,hinge=right,open=true: + state: ${base_block}[facing=north,half=lower,hinge=right,open=true,powered=true] + model: + path: ${model_bottom_right_open_path} + y: 180 + facing=north,half=upper,hinge=left,open=false: + state: ${base_block}[facing=north,half=upper,hinge=left,open=false,powered=true] + model: + path: ${model_top_left_path} + y: 270 + facing=north,half=upper,hinge=left,open=true: + state: ${base_block}[facing=north,half=upper,hinge=left,open=true,powered=true] + model: + path: ${model_top_left_open_path} + facing=north,half=upper,hinge=right,open=false: + state: ${base_block}[facing=north,half=upper,hinge=right,open=false,powered=true] + model: + path: ${model_top_right_path} + y: 270 + facing=north,half=upper,hinge=right,open=true: + state: ${base_block}[facing=north,half=upper,hinge=right,open=true,powered=true] + model: + path: ${model_top_right_open_path} + y: 180 + facing=south,half=lower,hinge=left,open=false: + state: ${base_block}[facing=south,half=lower,hinge=left,open=false,powered=true] + model: + path: ${model_bottom_left_path} + y: 90 + facing=south,half=lower,hinge=left,open=true: + state: ${base_block}[facing=south,half=lower,hinge=left,open=true,powered=true] + model: + path: ${model_bottom_left_open_path} + y: 180 + facing=south,half=lower,hinge=right,open=false: + state: ${base_block}[facing=south,half=lower,hinge=right,open=false,powered=true] + model: + path: ${model_bottom_right_path} + y: 90 + facing=south,half=lower,hinge=right,open=true: + state: ${base_block}[facing=south,half=lower,hinge=right,open=true,powered=true] + model: + path: ${model_bottom_right_open_path} + facing=south,half=upper,hinge=left,open=false: + state: ${base_block}[facing=south,half=upper,hinge=left,open=false,powered=true] + model: + path: ${model_top_left_path} + y: 90 + facing=south,half=upper,hinge=left,open=true: + state: ${base_block}[facing=south,half=upper,hinge=left,open=true,powered=true] + model: + path: ${model_top_left_open_path} + y: 180 + facing=south,half=upper,hinge=right,open=false: + state: ${base_block}[facing=south,half=upper,hinge=right,open=false,powered=true] + model: + path: ${model_top_right_path} + y: 90 + facing=south,half=upper,hinge=right,open=true: + state: ${base_block}[facing=south,half=upper,hinge=right,open=true,powered=true] + model: + path: ${model_top_right_open_path} + facing=west,half=lower,hinge=left,open=false: + state: ${base_block}[facing=west,half=lower,hinge=left,open=false,powered=true] + model: + path: ${model_bottom_left_path} + y: 180 + facing=west,half=lower,hinge=left,open=true: + state: ${base_block}[facing=west,half=lower,hinge=left,open=true,powered=true] + model: + path: ${model_bottom_left_open_path} + y: 270 + facing=west,half=lower,hinge=right,open=false: + state: ${base_block}[facing=west,half=lower,hinge=right,open=false,powered=true] + model: + path: ${model_bottom_right_path} + y: 180 + facing=west,half=lower,hinge=right,open=true: + state: ${base_block}[facing=west,half=lower,hinge=right,open=true,powered=true] + model: + path: ${model_bottom_right_open_path} + y: 90 + facing=west,half=upper,hinge=left,open=false: + state: ${base_block}[facing=west,half=upper,hinge=left,open=false,powered=true] + model: + path: ${model_top_left_path} + y: 180 + facing=west,half=upper,hinge=left,open=true: + state: ${base_block}[facing=west,half=upper,hinge=left,open=true,powered=true] + model: + path: ${model_top_left_open_path} + y: 270 + facing=west,half=upper,hinge=right,open=false: + state: ${base_block}[facing=west,half=upper,hinge=right,open=false,powered=true] + model: + path: ${model_top_right_path} + y: 180 + facing=west,half=upper,hinge=right,open=true: + state: ${base_block}[facing=west,half=upper,hinge=right,open=true,powered=true] + model: + path: ${model_top_right_open_path} + y: 90 + variants: + facing=east,half=lower,hinge=left,open=false,powered=true: + appearance: facing=east,half=lower,hinge=left,open=false + id: ${internal_id} + facing=east,half=lower,hinge=left,open=false,powered=false: + appearance: facing=east,half=lower,hinge=left,open=false + id: ${internal_id} + facing=east,half=lower,hinge=right,open=false,powered=true: + appearance: facing=east,half=lower,hinge=right,open=false + id: ${internal_id} + facing=east,half=lower,hinge=right,open=false,powered=false: + appearance: facing=east,half=lower,hinge=right,open=false + id: ${internal_id} + facing=east,half=upper,hinge=left,open=false,powered=true: + appearance: facing=east,half=upper,hinge=left,open=false + id: ${internal_id} + facing=east,half=upper,hinge=left,open=false,powered=false: + appearance: facing=east,half=upper,hinge=left,open=false + id: ${internal_id} + facing=east,half=upper,hinge=right,open=false,powered=true: + appearance: facing=east,half=upper,hinge=right,open=false + id: ${internal_id} + facing=east,half=upper,hinge=right,open=false,powered=false: + appearance: facing=east,half=upper,hinge=right,open=false + id: ${internal_id} + facing=north,half=lower,hinge=left,open=false,powered=true: + appearance: facing=north,half=lower,hinge=left,open=false + id: ${internal_id} + facing=north,half=lower,hinge=left,open=false,powered=false: + appearance: facing=north,half=lower,hinge=left,open=false + id: ${internal_id} + facing=north,half=lower,hinge=right,open=false,powered=true: + appearance: facing=north,half=lower,hinge=right,open=false + id: ${internal_id} + facing=north,half=lower,hinge=right,open=false,powered=false: + appearance: facing=north,half=lower,hinge=right,open=false + id: ${internal_id} + facing=north,half=upper,hinge=left,open=false,powered=true: + appearance: facing=north,half=upper,hinge=left,open=false + id: ${internal_id} + facing=north,half=upper,hinge=left,open=false,powered=false: + appearance: facing=north,half=upper,hinge=left,open=false + id: ${internal_id} + facing=north,half=upper,hinge=right,open=false,powered=true: + appearance: facing=north,half=upper,hinge=right,open=false + id: ${internal_id} + facing=north,half=upper,hinge=right,open=false,powered=false: + appearance: facing=north,half=upper,hinge=right,open=false + id: ${internal_id} + facing=south,half=lower,hinge=left,open=false,powered=true: + appearance: facing=south,half=lower,hinge=left,open=false + id: ${internal_id} + facing=south,half=lower,hinge=left,open=false,powered=false: + appearance: facing=south,half=lower,hinge=left,open=false + id: ${internal_id} + facing=south,half=lower,hinge=right,open=false,powered=true: + appearance: facing=south,half=lower,hinge=right,open=false + id: ${internal_id} + facing=south,half=lower,hinge=right,open=false,powered=false: + appearance: facing=south,half=lower,hinge=right,open=false + id: ${internal_id} + facing=south,half=upper,hinge=left,open=false,powered=true: + appearance: facing=south,half=upper,hinge=left,open=false + id: ${internal_id} + facing=south,half=upper,hinge=left,open=false,powered=false: + appearance: facing=south,half=upper,hinge=left,open=false + id: ${internal_id} + facing=south,half=upper,hinge=right,open=false,powered=true: + appearance: facing=south,half=upper,hinge=right,open=false + id: ${internal_id} + facing=south,half=upper,hinge=right,open=false,powered=false: + appearance: facing=south,half=upper,hinge=right,open=false + id: ${internal_id} + facing=west,half=lower,hinge=left,open=false,powered=true: + appearance: facing=west,half=lower,hinge=left,open=false + id: ${internal_id} + facing=west,half=lower,hinge=left,open=false,powered=false: + appearance: facing=west,half=lower,hinge=left,open=false + id: ${internal_id} + facing=west,half=lower,hinge=right,open=false,powered=true: + appearance: facing=west,half=lower,hinge=right,open=false + id: ${internal_id} + facing=west,half=lower,hinge=right,open=false,powered=false: + appearance: facing=west,half=lower,hinge=right,open=false + id: ${internal_id} + facing=west,half=upper,hinge=left,open=false,powered=true: + appearance: facing=west,half=upper,hinge=left,open=false + id: ${internal_id} + facing=west,half=upper,hinge=left,open=false,powered=false: + appearance: facing=west,half=upper,hinge=left,open=false + id: ${internal_id} + facing=west,half=upper,hinge=right,open=false,powered=true: + appearance: facing=west,half=upper,hinge=right,open=false + id: ${internal_id} + facing=west,half=upper,hinge=right,open=false,powered=false: + appearance: facing=west,half=upper,hinge=right,open=false + id: ${internal_id} + facing=east,half=lower,hinge=left,open=true,powered=true: + appearance: facing=east,half=lower,hinge=left,open=true + id: ${internal_id} + facing=east,half=lower,hinge=left,open=true,powered=false: + appearance: facing=east,half=lower,hinge=left,open=true + id: ${internal_id} + facing=east,half=lower,hinge=right,open=true,powered=true: + appearance: facing=east,half=lower,hinge=right,open=true + id: ${internal_id} + facing=east,half=lower,hinge=right,open=true,powered=false: + appearance: facing=east,half=lower,hinge=right,open=true + id: ${internal_id} + facing=east,half=upper,hinge=left,open=true,powered=true: + appearance: facing=east,half=upper,hinge=left,open=true + id: ${internal_id} + facing=east,half=upper,hinge=left,open=true,powered=false: + appearance: facing=east,half=upper,hinge=left,open=true + id: ${internal_id} + facing=east,half=upper,hinge=right,open=true,powered=true: + appearance: facing=east,half=upper,hinge=right,open=true + id: ${internal_id} + facing=east,half=upper,hinge=right,open=true,powered=false: + appearance: facing=east,half=upper,hinge=right,open=true + id: ${internal_id} + facing=north,half=lower,hinge=left,open=true,powered=true: + appearance: facing=north,half=lower,hinge=left,open=true + id: ${internal_id} + facing=north,half=lower,hinge=left,open=true,powered=false: + appearance: facing=north,half=lower,hinge=left,open=true + id: ${internal_id} + facing=north,half=lower,hinge=right,open=true,powered=true: + appearance: facing=north,half=lower,hinge=right,open=true + id: ${internal_id} + facing=north,half=lower,hinge=right,open=true,powered=false: + appearance: facing=north,half=lower,hinge=right,open=true + id: ${internal_id} + facing=north,half=upper,hinge=left,open=true,powered=true: + appearance: facing=north,half=upper,hinge=left,open=true + id: ${internal_id} + facing=north,half=upper,hinge=left,open=true,powered=false: + appearance: facing=north,half=upper,hinge=left,open=true + id: ${internal_id} + facing=north,half=upper,hinge=right,open=true,powered=true: + appearance: facing=north,half=upper,hinge=right,open=true + id: ${internal_id} + facing=north,half=upper,hinge=right,open=true,powered=false: + appearance: facing=north,half=upper,hinge=right,open=true + id: ${internal_id} + facing=south,half=lower,hinge=left,open=true,powered=true: + appearance: facing=south,half=lower,hinge=left,open=true + id: ${internal_id} + facing=south,half=lower,hinge=left,open=true,powered=false: + appearance: facing=south,half=lower,hinge=left,open=true + id: ${internal_id} + facing=south,half=lower,hinge=right,open=true,powered=true: + appearance: facing=south,half=lower,hinge=right,open=true + id: ${internal_id} + facing=south,half=lower,hinge=right,open=true,powered=false: + appearance: facing=south,half=lower,hinge=right,open=true + id: ${internal_id} + facing=south,half=upper,hinge=left,open=true,powered=true: + appearance: facing=south,half=upper,hinge=left,open=true + id: ${internal_id} + facing=south,half=upper,hinge=left,open=true,powered=false: + appearance: facing=south,half=upper,hinge=left,open=true + id: ${internal_id} + facing=south,half=upper,hinge=right,open=true,powered=true: + appearance: facing=south,half=upper,hinge=right,open=true + id: ${internal_id} + facing=south,half=upper,hinge=right,open=true,powered=false: + appearance: facing=south,half=upper,hinge=right,open=true + id: ${internal_id} + facing=west,half=lower,hinge=left,open=true,powered=true: + appearance: facing=west,half=lower,hinge=left,open=true + id: ${internal_id} + facing=west,half=lower,hinge=left,open=true,powered=false: + appearance: facing=west,half=lower,hinge=left,open=true + id: ${internal_id} + facing=west,half=lower,hinge=right,open=true,powered=true: + appearance: facing=west,half=lower,hinge=right,open=true + id: ${internal_id} + facing=west,half=lower,hinge=right,open=true,powered=false: + appearance: facing=west,half=lower,hinge=right,open=true + id: ${internal_id} + facing=west,half=upper,hinge=left,open=true,powered=true: + appearance: facing=west,half=upper,hinge=left,open=true + id: ${internal_id} + facing=west,half=upper,hinge=left,open=true,powered=false: + appearance: facing=west,half=upper,hinge=left,open=true + id: ${internal_id} + facing=west,half=upper,hinge=right,open=true,powered=true: + appearance: facing=west,half=upper,hinge=right,open=true + id: ${internal_id} + facing=west,half=upper,hinge=right,open=true,powered=false: + appearance: facing=west,half=upper,hinge=right,open=true + id: ${internal_id} # recipes templates#recipes: