From f8a1d7a704fd928aadd7a3d95cddf507fdda0599 Mon Sep 17 00:00:00 2001 From: jhqwqmc Date: Wed, 24 Sep 2025 06:40:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8C=89=E9=92=AE=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/additional-real-blocks.yml | 3 +- .../configuration/blocks/hami_melon.yml | 106 +- .../configuration/blocks/palm_tree.yml | 1175 +++++++++++------ .../default/configuration/categories.yml | 1 + .../resources/default/configuration/i18n.yml | 6 +- 5 files changed, 868 insertions(+), 423 deletions(-) diff --git a/common-files/src/main/resources/additional-real-blocks.yml b/common-files/src/main/resources/additional-real-blocks.yml index 98472f7de..31bea6787 100644 --- a/common-files/src/main/resources/additional-real-blocks.yml +++ b/common-files/src/main/resources/additional-real-blocks.yml @@ -86,4 +86,5 @@ minecraft:white_bed: 1 minecraft:redstone_torch: 1 minecraft:redstone_wall_torch: 4 minecraft:pumpkin_stem: 8 -minecraft:attached_pumpkin_stem: 4 \ No newline at end of file +minecraft:attached_pumpkin_stem: 4 +minecraft:birch_button: 24 \ No newline at end of file diff --git a/common-files/src/main/resources/resources/default/configuration/blocks/hami_melon.yml b/common-files/src/main/resources/resources/default/configuration/blocks/hami_melon.yml index dd2b70a6e..3d2cb6e37 100644 --- a/common-files/src/main/resources/resources/default/configuration/blocks/hami_melon.yml +++ b/common-files/src/main/resources/resources/default/configuration/blocks/hami_melon.yml @@ -94,6 +94,95 @@ blocks: south_texture: minecraft:block/custom/hami_melon west_texture: minecraft:block/custom/hami_melon default:hami_melon_stem: + loot: + pools: + - rolls: 1 + entries: + - type: item + item: default:hami_melon_seeds + functions: + - type: set_count + add: false + conditions: + - type: match_block_property + properties: + age: 0 + count: + type: binomial + extra: 3 + probability: 0.06666667 + - type: set_count + add: false + conditions: + - type: match_block_property + properties: + age: 1 + count: + type: binomial + extra: 3 + probability: 0.13333334 + - type: set_count + add: false + conditions: + - type: match_block_property + properties: + age: 2 + count: + type: binomial + extra: 3 + probability: 0.2 + - type: set_count + add: false + conditions: + - type: match_block_property + properties: + age: 3 + count: + type: binomial + extra: 3 + probability: 0.26666668 + - type: set_count + add: false + conditions: + - type: match_block_property + properties: + age: 4 + count: + type: binomial + extra: 3 + probability: 0.33333334 + - type: set_count + add: false + conditions: + - type: match_block_property + properties: + age: 5 + count: + type: binomial + extra: 3 + probability: 0.4 + - type: set_count + add: false + conditions: + - type: match_block_property + properties: + age: 6 + count: + type: binomial + extra: 3 + probability: 0.46666667 + - type: set_count + add: false + conditions: + - type: match_block_property + properties: + age: 7 + count: + type: binomial + extra: 3 + probability: 0.53333336 + functions: + - type: explosion_decay settings: map-color: 7 hardness: 0 @@ -101,7 +190,7 @@ blocks: push-reaction: DESTROY is-suffocating: false is-redstone-conductor: false - item: default:hami_melon_item + item: default:hami_melon_seeds is-randomly-ticking: true tags: - minecraft:bee_growables @@ -163,6 +252,21 @@ blocks: appearance: age=7 id: 7 default:attached_hami_melon_stem: + loot: + pools: + - rolls: 1 + entries: + - type: item + item: default:hami_melon_seeds + functions: + - type: set_count + add: false + count: + type: binomial + extra: 3 + probability: 0.53333336 + functions: + - type: explosion_decay settings: map-color: 7 hardness: 0 diff --git a/common-files/src/main/resources/resources/default/configuration/blocks/palm_tree.yml b/common-files/src/main/resources/resources/default/configuration/blocks/palm_tree.yml index fe8e46bd6..7e935d5d5 100644 --- a/common-files/src/main/resources/resources/default/configuration/blocks/palm_tree.yml +++ b/common-files/src/main/resources/resources/default/configuration/blocks/palm_tree.yml @@ -17,30 +17,7 @@ items: parent: minecraft:block/custom/palm_log behavior: type: block_item - block: - behavior: - type: strippable_block - stripped: default:stripped_palm_log - loot: - template: default:loot_table/self - settings: - template: default:settings/wood - 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 - model_horizontal_path: minecraft:block/custom/palm_log_horizontal - vanilla_id: - type: self_increase_int - from: 0 - to: 2 - internal_id: - type: self_increase_int - from: 0 - to: 2 + block: default:palm_log default:stripped_palm_log: material: nether_brick custom-model-data: 1001 @@ -59,27 +36,7 @@ items: parent: minecraft:block/custom/stripped_palm_log behavior: type: block_item - block: - loot: - template: default:loot_table/self - settings: - template: default:settings/wood - 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 - model_horizontal_path: minecraft:block/custom/stripped_palm_log_horizontal - vanilla_id: - type: self_increase_int - from: 3 - to: 5 - internal_id: - type: self_increase_int - from: 3 - to: 5 + block: default:stripped_palm_log default:palm_wood: material: nether_brick custom-model-data: 1002 @@ -98,30 +55,7 @@ items: parent: minecraft:block/custom/palm_wood behavior: type: block_item - block: - behavior: - type: strippable_block - stripped: default:stripped_palm_wood - loot: - template: default:loot_table/self - settings: - template: default:settings/wood - 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 - model_horizontal_path: minecraft:block/custom/palm_wood_horizontal - vanilla_id: - type: self_increase_int - from: 6 - to: 8 - internal_id: - type: self_increase_int - from: 6 - to: 8 + block: default:palm_wood default:stripped_palm_wood: material: nether_brick custom-model-data: 1003 @@ -140,27 +74,7 @@ items: parent: minecraft:block/custom/stripped_palm_wood behavior: type: block_item - block: - loot: - template: default:loot_table/self - settings: - template: default:settings/wood - 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 - model_horizontal_path: minecraft:block/custom/stripped_palm_wood_horizontal - vanilla_id: - type: self_increase_int - from: 9 - to: 11 - internal_id: - type: self_increase_int - from: 9 - to: 11 + block: default:stripped_palm_wood default:palm_planks: material: nether_brick custom-model-data: 1004 @@ -178,18 +92,7 @@ items: parent: minecraft:block/custom/palm_planks behavior: type: block_item - block: - settings: - template: default:settings/planks - loot: - template: default:loot_table/self - state: - model: - template: default:model/simplified_cube_all - arguments: - path: minecraft:block/custom/palm_planks - id: 12 - state: note_block:12 + block: default:palm_planks default:palm_sapling: material: nether_brick custom-model-data: 1005 @@ -204,42 +107,7 @@ items: texture: minecraft:block/custom/palm_sapling behavior: type: block_item - block: - settings: - template: default:settings/sapling - behaviors: - - type: bush_block - bottom-block-tags: - - minecraft:dirt - - minecraft:farmland - - minecraft:sand - - type: sapling_block - feature: minecraft:fancy_oak - bone-meal-success-chance: 0.45 - loot: - template: default:loot_table/self - states: - properties: - stage: - type: int - default-value: 0 - range: 0~1 - appearances: - default: - state: oak_sapling:0 - model: - path: minecraft:block/custom/palm_sapling - generation: - parent: minecraft:block/cross - textures: - cross: minecraft:block/custom/palm_sapling - variants: - stage=0: - appearance: default - id: 0 - stage=1: - appearance: default - id: 1 + block: default:palm_sapling default:palm_leaves: material: oak_leaves custom-model-data: 1000 @@ -247,9 +115,9 @@ items: item-name: components: minecraft:block_state: - distance: '1' - persistent: 'false' - waterlogged: 'false' + distance: "1" + persistent: "false" + waterlogged: "false" model: type: minecraft:model path: minecraft:item/custom/palm_leaves @@ -260,27 +128,7 @@ items: value: -12012264 behavior: type: block_item - block: - behavior: - type: leaves_block - loot: - template: default:loot_table/leaves - arguments: - leaves: default:palm_leaves - sapling: default:palm_sapling - settings: - template: default:settings/leaves - states: - template: default:block_state/leaves - arguments: - default_state: oak_leaves[distance=1,persistent=false,waterlogged=false] - waterlogged_state: oak_leaves[distance=1,persistent=false,waterlogged=true] - model_path: minecraft:block/custom/palm_leaves - texture_path: minecraft:block/custom/palm_leaves - internal_id: - type: self_increase_int - from: 0 - to: 27 + block: default:palm_leaves default:palm_trapdoor: material: nether_brick custom-model-data: 1006 @@ -295,47 +143,7 @@ items: parent: minecraft:block/custom/palm_trapdoor_bottom behavior: type: block_item - block: - behavior: - type: trapdoor_block - can-open-with-hand: true - can-open-by-wind-charge: true - sounds: - open: minecraft:block.wooden_trapdoor.open - close: minecraft:block.wooden_trapdoor.close - 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:mineable/axe - - minecraft:trapdoors - states: - template: default:block_state/trapdoor - arguments: - base_block: acacia_trapdoor - 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 + block: default:palm_trapdoor default:palm_door: material: nether_brick custom-model-data: 1007 @@ -349,68 +157,7 @@ items: path: minecraft:item/custom/palm_door behavior: type: double_high_block_item - block: - behavior: - type: door_block - can-open-with-hand: true - can-open-by-wind-charge: true - sounds: - open: minecraft:block.wooden_door.open - close: minecraft:block.wooden_door.close - loot: - template: default:loot_table/door - settings: - template: - - default:sound/wood - overrides: - push-reaction: destroy - map-color: 2 - instrument: bass - hardness: 3.0 - resistance: 3.0 - burnable: true - tags: - - minecraft:wooden_doors - - minecraft:doors - - minecraft:mineable/axe - states: - template: default:block_state/door - arguments: - base_block: oak_door - model_top_left_path: minecraft:block/custom/palm_door_top_left - model_top_left_generation: - parent: minecraft:block/door_top_left - textures: &textures - bottom: minecraft:block/custom/palm_door_bottom - top: minecraft:block/custom/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: *textures - 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: *textures - 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: *textures - model_bottom_left_path: minecraft:block/custom/palm_door_bottom_left - model_bottom_left_generation: - parent: minecraft:block/door_bottom_left - textures: *textures - model_bottom_right_path: minecraft:block/custom/palm_door_bottom_right - model_bottom_right_generation: - parent: minecraft:block/door_bottom_right - textures: *textures - 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: *textures - 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: *textures + block: default:palm_door default:palm_fence_gate: material: nether_brick custom-model-data: 1008 @@ -425,49 +172,7 @@ items: parent: minecraft:block/custom/palm_fence_gate behavior: type: block_item - block: - behaviors: - type: fence_gate_block - can-open-with-hand: true - can-open-by-wind-charge: true - sounds: - open: minecraft:block.fence_gate.open - close: minecraft:block.fence_gate.close - loot: - template: default:loot_table/self - settings: - template: - - default:sound/wood - - default:hardness/planks - overrides: - map-color: 2 - instrument: bass - burnable: true - tags: - - minecraft:fence_gates - - minecraft:mineable/axe - - minecraft:unstable_bottom_center - states: - template: default:block_state/fence_gate - arguments: - base_block: oak_fence_gate - model_fence_gate_path: minecraft:block/custom/palm_fence_gate - model_fence_gate_generation: - parent: minecraft:block/template_fence_gate - textures: &textures - texture: minecraft:block/custom/palm_planks - model_fence_gate_open_path: minecraft:block/custom/palm_fence_gate_open - model_fence_gate_open_generation: - parent: minecraft:block/template_fence_gate_open - textures: *textures - model_fence_gate_wall_path: minecraft:block/custom/palm_fence_gate_wall - model_fence_gate_wall_generation: - parent: minecraft:block/template_fence_gate_wall - textures: *textures - model_fence_gate_wall_open_path: minecraft:block/custom/palm_fence_gate_wall_open - model_fence_gate_wall_open_generation: - parent: minecraft:block/template_fence_gate_wall_open - textures: *textures + block: default:palm_fence_gate default:palm_slab: material: nether_brick custom-model-data: 1009 @@ -482,39 +187,7 @@ items: parent: minecraft:block/custom/palm_slab behavior: type: block_item - block: - behaviors: - type: slab_block - loot: - template: default:loot_table/slab - settings: - template: - - default:sound/wood - - default:burn_data/planks - - default:hardness/planks - overrides: - map-color: 2 - instrument: bass - tags: - - minecraft:wooden_slabs - - minecraft:slabs - - minecraft:mineable/axe - states: - template: default:block_state/slab - arguments: - base_block: petrified_oak_slab - model_bottom_path: minecraft:block/custom/palm_slab - model_bottom_generation: - parent: minecraft:block/slab - textures: &textures - bottom: minecraft:block/custom/palm_planks - side: minecraft:block/custom/palm_planks - top: minecraft:block/custom/palm_planks - model_top_path: minecraft:block/custom/palm_slab_top - model_top_generation: - parent: minecraft:block/slab_top - textures: *textures - model_double_path: minecraft:block/custom/palm_planks + block: default:palm_slab default:palm_stairs: material: nether_brick custom-model-data: 1013 @@ -529,42 +202,7 @@ items: fuel-time: 300 behavior: type: block_item - block: - loot: - template: default:loot_table/self - settings: - template: - - default:sound/wood - - default:hardness/planks - - default:burn_data/planks - overrides: - map-color: 2 - instrument: bass - tags: - - minecraft:mineable/axe - - minecraft:stairs - - minecraft:wooden_stairs - behavior: - type: stairs_block - states: - template: default:block_state/stairs - arguments: - base_block: cut_copper_stairs - model_stairs_inner_path: minecraft:block/custom/palm_stairs_inner - model_stairs_inner_generation: - parent: minecraft:block/inner_stairs - textures: &textures - bottom: &block_texture minecraft:block/custom/palm_planks - side: *block_texture - top: *block_texture - model_stairs_outer_path: minecraft:block/custom/palm_stairs_outer - model_stairs_outer_generation: - parent: minecraft:block/outer_stairs - textures: *textures - model_stairs_path: minecraft:block/custom/palm_stairs - model_stairs_generation: - parent: minecraft:block/stairs - textures: *textures + block: default:palm_stairs default:palm_pressure_plate: material: nether_brick custom-model-data: 1014 @@ -579,47 +217,737 @@ items: fuel-time: 300 behavior: type: block_item - block: - loot: - template: default:loot_table/self - settings: - template: - - default:sound/wood - - default:hardness/planks - overrides: - burnable: true - push-reaction: destroy - map-color: 2 - instrument: bass - tags: - - minecraft:mineable/axe - - minecraft:wall_post_override - - minecraft:wooden_pressure_plates - - minecraft:pressure_plates - behaviors: - type: pressure_plate_block - sensitivity: all - pressed-time: 20 - sounds: - on: minecraft:block.wooden_pressure_plate.click_on - off: minecraft:block.wooden_pressure_plate.click_off - states: - template: default:block_state/pressure_plate - arguments: - normal_state: light_weighted_pressure_plate:0 - powered_state: light_weighted_pressure_plate:1 - normal_id: 0 - powered_id: 1 - model_normal_path: minecraft:block/custom/palm_pressure_plate - model_normal_generation: - parent: minecraft:block/pressure_plate_up + block: default:palm_pressure_plate + default:palm_button: + material: nether_brick + custom-model-data: 1015 + model: + type: minecraft:model + path: minecraft:item/custom/palm_button + generation: + parent: minecraft:block/button_inventory + textures: + texture: minecraft:block/custom/palm_planks + data: + item-name: + settings: + fuel-time: 100 + behavior: + type: block_item + block: default:palm_button + default:palm_button_pressed: + material: nether_brick + custom-model-data: 1016 + model: + type: minecraft:model + path: minecraft:block/custom/palm_button_pressed + generation: + parent: minecraft:block/button_pressed + textures: + texture: minecraft:block/custom/palm_planks + default:palm_button_not_pressed: + material: nether_brick + custom-model-data: 1017 + model: + type: minecraft:model + path: minecraft:block/custom/palm_button_not_pressed + generation: + parent: minecraft:block/button + textures: + texture: minecraft:block/custom/palm_planks + +blocks: + default:palm_log: + behavior: + type: strippable_block + stripped: default:stripped_palm_log + loot: + template: default:loot_table/self + settings: + template: default:settings/wood + 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 + model_horizontal_path: minecraft:block/custom/palm_log_horizontal + vanilla_id: + type: self_increase_int + from: 0 + to: 2 + internal_id: + type: self_increase_int + from: 0 + to: 2 + default:stripped_palm_log: + loot: + template: default:loot_table/self + settings: + template: default:settings/wood + 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 + model_horizontal_path: minecraft:block/custom/stripped_palm_log_horizontal + vanilla_id: + type: self_increase_int + from: 3 + to: 5 + internal_id: + type: self_increase_int + from: 3 + to: 5 + default:palm_wood: + behavior: + type: strippable_block + stripped: default:stripped_palm_wood + loot: + template: default:loot_table/self + settings: + template: default:settings/wood + 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 + model_horizontal_path: minecraft:block/custom/palm_wood_horizontal + vanilla_id: + type: self_increase_int + from: 6 + to: 8 + internal_id: + type: self_increase_int + from: 6 + to: 8 + default:stripped_palm_wood: + loot: + template: default:loot_table/self + settings: + template: default:settings/wood + 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 + model_horizontal_path: minecraft:block/custom/stripped_palm_wood_horizontal + vanilla_id: + type: self_increase_int + from: 9 + to: 11 + internal_id: + type: self_increase_int + from: 9 + to: 11 + default:palm_planks: + settings: + template: default:settings/planks + loot: + template: default:loot_table/self + state: + model: + template: default:model/simplified_cube_all + arguments: + path: minecraft:block/custom/palm_planks + id: 12 + state: note_block:12 + default:palm_sapling: + settings: + template: default:settings/sapling + behaviors: + - type: bush_block + bottom-block-tags: + - minecraft:dirt + - minecraft:farmland + - minecraft:sand + - type: sapling_block + feature: minecraft:fancy_oak + bone-meal-success-chance: 0.45 + loot: + template: default:loot_table/self + states: + properties: + stage: + type: int + default-value: 0 + range: 0~1 + appearances: + default: + state: oak_sapling:0 + model: + path: minecraft:block/custom/palm_sapling + generation: + parent: minecraft:block/cross textures: - texture: minecraft:block/custom/palm_planks - model_powered_path: minecraft:block/custom/palm_pressure_plate_down - model_powered_generation: - parent: minecraft:block/pressure_plate_down - textures: - texture: minecraft:block/custom/palm_planks + cross: minecraft:block/custom/palm_sapling + variants: + stage=0: + appearance: default + id: 0 + stage=1: + appearance: default + id: 1 + default:palm_leaves: + behavior: + type: leaves_block + loot: + template: default:loot_table/leaves + arguments: + leaves: default:palm_leaves + sapling: default:palm_sapling + settings: + template: default:settings/leaves + states: + template: default:block_state/leaves + arguments: + default_state: oak_leaves[distance=1,persistent=false,waterlogged=false] + waterlogged_state: oak_leaves[distance=1,persistent=false,waterlogged=true] + model_path: minecraft:block/custom/palm_leaves + texture_path: minecraft:block/custom/palm_leaves + internal_id: + type: self_increase_int + from: 0 + to: 27 + default:palm_trapdoor: + behavior: + type: trapdoor_block + can-open-with-hand: true + can-open-by-wind-charge: true + sounds: + open: minecraft:block.wooden_trapdoor.open + close: minecraft:block.wooden_trapdoor.close + 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:mineable/axe + - minecraft:trapdoors + states: + template: default:block_state/trapdoor + arguments: + base_block: acacia_trapdoor + 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 + default:palm_door: + behavior: + type: door_block + can-open-with-hand: true + can-open-by-wind-charge: true + sounds: + open: minecraft:block.wooden_door.open + close: minecraft:block.wooden_door.close + loot: + template: default:loot_table/door + settings: + template: + - default:sound/wood + overrides: + push-reaction: destroy + map-color: 2 + instrument: bass + hardness: 3.0 + resistance: 3.0 + burnable: true + tags: + - minecraft:wooden_doors + - minecraft:doors + - minecraft:mineable/axe + states: + template: default:block_state/door + arguments: + base_block: oak_door + model_top_left_path: minecraft:block/custom/palm_door_top_left + model_top_left_generation: + parent: minecraft:block/door_top_left + textures: &textures + bottom: minecraft:block/custom/palm_door_bottom + top: minecraft:block/custom/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: *textures + 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: *textures + 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: *textures + model_bottom_left_path: minecraft:block/custom/palm_door_bottom_left + model_bottom_left_generation: + parent: minecraft:block/door_bottom_left + textures: *textures + model_bottom_right_path: minecraft:block/custom/palm_door_bottom_right + model_bottom_right_generation: + parent: minecraft:block/door_bottom_right + textures: *textures + 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: *textures + 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: *textures + default:palm_fence_gate: + behaviors: + type: fence_gate_block + can-open-with-hand: true + can-open-by-wind-charge: true + sounds: + open: minecraft:block.fence_gate.open + close: minecraft:block.fence_gate.close + loot: + template: default:loot_table/self + settings: + template: + - default:sound/wood + - default:hardness/planks + overrides: + map-color: 2 + instrument: bass + burnable: true + tags: + - minecraft:fence_gates + - minecraft:mineable/axe + - minecraft:unstable_bottom_center + states: + template: default:block_state/fence_gate + arguments: + base_block: oak_fence_gate + model_fence_gate_path: minecraft:block/custom/palm_fence_gate + model_fence_gate_generation: + parent: minecraft:block/template_fence_gate + textures: &textures + texture: minecraft:block/custom/palm_planks + model_fence_gate_open_path: minecraft:block/custom/palm_fence_gate_open + model_fence_gate_open_generation: + parent: minecraft:block/template_fence_gate_open + textures: *textures + model_fence_gate_wall_path: minecraft:block/custom/palm_fence_gate_wall + model_fence_gate_wall_generation: + parent: minecraft:block/template_fence_gate_wall + textures: *textures + model_fence_gate_wall_open_path: minecraft:block/custom/palm_fence_gate_wall_open + model_fence_gate_wall_open_generation: + parent: minecraft:block/template_fence_gate_wall_open + textures: *textures + default:palm_slab: + behaviors: + type: slab_block + loot: + template: default:loot_table/slab + settings: + template: + - default:sound/wood + - default:burn_data/planks + - default:hardness/planks + overrides: + map-color: 2 + instrument: bass + tags: + - minecraft:wooden_slabs + - minecraft:slabs + - minecraft:mineable/axe + states: + template: default:block_state/slab + arguments: + base_block: petrified_oak_slab + model_bottom_path: minecraft:block/custom/palm_slab + model_bottom_generation: + parent: minecraft:block/slab + textures: &textures + bottom: minecraft:block/custom/palm_planks + side: minecraft:block/custom/palm_planks + top: minecraft:block/custom/palm_planks + model_top_path: minecraft:block/custom/palm_slab_top + model_top_generation: + parent: minecraft:block/slab_top + textures: *textures + model_double_path: minecraft:block/custom/palm_planks + default:palm_stairs: + loot: + template: default:loot_table/self + settings: + template: + - default:sound/wood + - default:hardness/planks + - default:burn_data/planks + overrides: + map-color: 2 + instrument: bass + tags: + - minecraft:mineable/axe + - minecraft:stairs + - minecraft:wooden_stairs + behavior: + type: stairs_block + states: + template: default:block_state/stairs + arguments: + base_block: cut_copper_stairs + model_stairs_inner_path: minecraft:block/custom/palm_stairs_inner + model_stairs_inner_generation: + parent: minecraft:block/inner_stairs + textures: &textures + bottom: &block_texture minecraft:block/custom/palm_planks + side: *block_texture + top: *block_texture + model_stairs_outer_path: minecraft:block/custom/palm_stairs_outer + model_stairs_outer_generation: + parent: minecraft:block/outer_stairs + textures: *textures + model_stairs_path: minecraft:block/custom/palm_stairs + model_stairs_generation: + parent: minecraft:block/stairs + textures: *textures + default:palm_pressure_plate: + loot: + template: default:loot_table/self + settings: + template: + - default:sound/wood + - default:hardness/planks + overrides: + burnable: true + push-reaction: destroy + map-color: 2 + instrument: bass + tags: + - minecraft:mineable/axe + - minecraft:wall_post_override + - minecraft:wooden_pressure_plates + - minecraft:pressure_plates + behaviors: + type: pressure_plate_block + sensitivity: all + pressed-time: 20 + sounds: + on: minecraft:block.wooden_pressure_plate.click_on + off: minecraft:block.wooden_pressure_plate.click_off + states: + template: default:block_state/pressure_plate + arguments: + normal_state: light_weighted_pressure_plate:0 + powered_state: light_weighted_pressure_plate:1 + normal_id: 0 + powered_id: 1 + model_normal_path: minecraft:block/custom/palm_pressure_plate + model_normal_generation: + parent: minecraft:block/pressure_plate_up + textures: + texture: minecraft:block/custom/palm_planks + model_powered_path: minecraft:block/custom/palm_pressure_plate_down + model_powered_generation: + parent: minecraft:block/pressure_plate_down + textures: + texture: minecraft:block/custom/palm_planks + default:palm_button: + loot: + template: default:loot_table/self + settings: + template: + - default:sound/wood + - default:hardness/button + overrides: + burnable: true + push-reaction: destroy + map-color: 2 + instrument: harp + tags: + - minecraft:buttons + - minecraft:mineable/axe + - minecraft:wooden_buttons + behaviors: + - type: face_attached_horizontal_directional_block + - type: button_block + ticks-to-stay-pressed: 30 + can-button-be-activated-by-arrows: true + sounds: + on: minecraft:block.wooden_button.click_on + off: minecraft:block.wooden_button.click_off + states: + properties: + powered: + type: boolean + default: false + face: + type: anchor_type + default: floor + facing: + type: 4-direction + default: north + appearances: + face=floor,facing=east,powered=true: + state: birch_button[face=floor,facing=east,powered=true] + entity-renderer: + item: default:palm_button_pressed + rotation: 0,90,0 + scale: 1.0001 + translation: 0,0.0001,0 + face=floor,facing=west,powered=true: + state: birch_button[face=floor,facing=west,powered=true] + entity-renderer: + item: default:palm_button_pressed + rotation: 0,-90,0 + scale: 1.0001 + translation: 0,0.0001,0 + face=floor,facing=east,powered=false: + state: birch_button[face=floor,facing=east,powered=false] + entity-renderer: + item: default:palm_button_not_pressed + rotation: 0,90,0 + scale: 1.0001 + translation: 0,0.0001,0 + face=floor,facing=west,powered=false: + state: birch_button[face=floor,facing=west,powered=false] + entity-renderer: + item: default:palm_button_not_pressed + rotation: 0,-90,0 + scale: 1.0001 + translation: 0,0.0001,0 + face=floor,facing=south,powered=true: + state: birch_button[face=floor,facing=south,powered=true] + entity-renderer: + item: default:palm_button_pressed + scale: 1.0001 + translation: 0,0.0001,0 + face=floor,facing=north,powered=true: + state: birch_button[face=floor,facing=north,powered=true] + entity-renderer: + item: default:palm_button_pressed + rotation: 0,180,0 + scale: 1.0001 + translation: 0,0.0001,0 + face=floor,facing=south,powered=false: + state: birch_button[face=floor,facing=south,powered=false] + entity-renderer: + item: default:palm_button_not_pressed + scale: 1.0001 + translation: 0,0.0001,0 + face=floor,facing=north,powered=false: + state: birch_button[face=floor,facing=north,powered=false] + entity-renderer: + item: default:palm_button_not_pressed + rotation: 0,180,0 + scale: 1.0001 + translation: 0,0.0001,0 + face=wall,facing=north,powered=true: + state: birch_button[face=wall,facing=north,powered=true] + entity-renderer: + item: default:palm_button_pressed + rotation: -90,0,0 + scale: 1.0001 + translation: 0,0,-0.0001 + face=wall,facing=south,powered=true: + state: birch_button[face=wall,facing=south,powered=true] + entity-renderer: + item: default:palm_button_pressed + rotation: 90,0,180 + scale: 1.0001 + translation: 0,0,0.0001 + face=wall,facing=north,powered=false: + state: birch_button[face=wall,facing=north,powered=false] + entity-renderer: + item: default:palm_button_not_pressed + rotation: -90,0,0 + scale: 1.0001 + translation: 0,0,-0.0001 + face=wall,facing=south,powered=false: + state: birch_button[face=wall,facing=south,powered=false] + entity-renderer: + item: default:palm_button_not_pressed + rotation: 90,0,180 + scale: 1.0001 + translation: 0,0,0.0001 + face=wall,facing=west,powered=true: + state: birch_button[face=wall,facing=west,powered=true] + entity-renderer: + item: default:palm_button_pressed + rotation: 0,90,90 + scale: 1.0001 + translation: -0.0001,0,0 + face=wall,facing=east,powered=true: + state: birch_button[face=wall,facing=east,powered=true] + entity-renderer: + item: default:palm_button_pressed + rotation: 0,270,-90 + scale: 1.0001 + translation: 0.0001,0,0 + face=wall,facing=west,powered=false: + state: birch_button[face=wall,facing=west,powered=false] + entity-renderer: + item: default:palm_button_not_pressed + rotation: 0,90,90 + scale: 1.0001 + translation: -0.0001,0,0 + face=wall,facing=east,powered=false: + state: birch_button[face=wall,facing=east,powered=false] + entity-renderer: + item: default:palm_button_not_pressed + rotation: 0,270,-90 + scale: 1.0001 + translation: 0.0001,0,0 + face=ceiling,facing=north,powered=true: + state: birch_button[face=ceiling,facing=north,powered=true] + entity-renderer: + item: default:palm_button_pressed + rotation: 0,180,180 + scale: 1.0001 + translation: 0,-0.0001,0 + face=ceiling,facing=south,powered=true: + state: birch_button[face=ceiling,facing=south,powered=true] + entity-renderer: + item: default:palm_button_pressed + rotation: 0,0,180 + scale: 1.0001 + translation: 0,-0.0001,0 + face=ceiling,facing=north,powered=false: + state: birch_button[face=ceiling,facing=north,powered=false] + entity-renderer: + item: default:palm_button_not_pressed + rotation: 0,180,180 + scale: 1.0001 + translation: 0,-0.0001,0 + face=ceiling,facing=south,powered=false: + state: birch_button[face=ceiling,facing=south,powered=false] + entity-renderer: + item: default:palm_button_not_pressed + rotation: 0,0,180 + scale: 1.0001 + translation: 0,-0.0001,0 + face=ceiling,facing=west,powered=true: + state: birch_button[face=ceiling,facing=west,powered=true] + entity-renderer: + item: default:palm_button_pressed + rotation: 0,90,180 + scale: 1.0001 + translation: 0,-0.0001,0 + face=ceiling,facing=east,powered=true: + state: birch_button[face=ceiling,facing=east,powered=true] + entity-renderer: + item: default:palm_button_pressed + rotation: -90,-90,-90 + scale: 1.0001 + translation: 0,-0.0001,0 + face=ceiling,facing=west,powered=false: + state: birch_button[face=ceiling,facing=west,powered=false] + entity-renderer: + item: default:palm_button_not_pressed + rotation: 0,90,180 + scale: 1.0001 + translation: 0,-0.0001,0 + face=ceiling,facing=east,powered=false: + state: birch_button[face=ceiling,facing=east,powered=false] + entity-renderer: + item: default:palm_button_not_pressed + rotation: -90,-90,-90 + scale: 1.0001 + translation: 0,-0.0001,0 + variants: + face=floor,facing=east,powered=true: + appearance: face=floor,facing=east,powered=true + id: 0 + face=floor,facing=west,powered=true: + appearance: face=floor,facing=west,powered=true + id: 1 + face=floor,facing=east,powered=false: + appearance: face=floor,facing=east,powered=false + id: 2 + face=floor,facing=west,powered=false: + appearance: face=floor,facing=west,powered=false + id: 3 + face=floor,facing=south,powered=true: + appearance: face=floor,facing=south,powered=true + id: 4 + face=floor,facing=north,powered=true: + appearance: face=floor,facing=north,powered=true + id: 5 + face=floor,facing=south,powered=false: + appearance: face=floor,facing=south,powered=false + id: 6 + face=floor,facing=north,powered=false: + appearance: face=floor,facing=north,powered=false + id: 7 + face=wall,facing=north,powered=true: + appearance: face=wall,facing=north,powered=true + id: 8 + face=wall,facing=south,powered=true: + appearance: face=wall,facing=south,powered=true + id: 9 + face=wall,facing=north,powered=false: + appearance: face=wall,facing=north,powered=false + id: 10 + face=wall,facing=south,powered=false: + appearance: face=wall,facing=south,powered=false + id: 11 + face=wall,facing=west,powered=true: + appearance: face=wall,facing=west,powered=true + id: 12 + face=wall,facing=east,powered=true: + appearance: face=wall,facing=east,powered=true + id: 13 + face=wall,facing=west,powered=false: + appearance: face=wall,facing=west,powered=false + id: 14 + face=wall,facing=east,powered=false: + appearance: face=wall,facing=east,powered=false + id: 15 + face=ceiling,facing=north,powered=true: + appearance: face=ceiling,facing=north,powered=true + id: 16 + face=ceiling,facing=south,powered=true: + appearance: face=ceiling,facing=south,powered=true + id: 17 + face=ceiling,facing=north,powered=false: + appearance: face=ceiling,facing=north,powered=false + id: 18 + face=ceiling,facing=south,powered=false: + appearance: face=ceiling,facing=south,powered=false + id: 19 + face=ceiling,facing=west,powered=true: + appearance: face=ceiling,facing=west,powered=true + id: 20 + face=ceiling,facing=east,powered=true: + appearance: face=ceiling,facing=east,powered=true + id: 21 + face=ceiling,facing=west,powered=false: + appearance: face=ceiling,facing=west,powered=false + id: 22 + face=ceiling,facing=east,powered=false: + appearance: face=ceiling,facing=east,powered=false + id: 23 + recipes: default:palm_planks: template: default:recipe/planks @@ -687,11 +1015,18 @@ recipes: default:palm_stairs: type: shaped pattern: - - 'A ' - - 'AA ' - - 'AAA' + - "A " + - "AA " + - "AAA" ingredients: A: default:palm_planks result: id: default:palm_stairs count: 4 + default:palm_button: + type: shapeless + ingredients: + - default:palm_planks + result: + id: default:palm_button + count: 1 diff --git a/common-files/src/main/resources/resources/default/configuration/categories.yml b/common-files/src/main/resources/resources/default/configuration/categories.yml index 7719dacfe..56580ba5c 100644 --- a/common-files/src/main/resources/resources/default/configuration/categories.yml +++ b/common-files/src/main/resources/resources/default/configuration/categories.yml @@ -27,6 +27,7 @@ categories: - default:palm_slab - default:palm_stairs - default:palm_pressure_plate + - default:palm_button default:topaz: name: <#FF8C00> hidden: true diff --git a/common-files/src/main/resources/resources/default/configuration/i18n.yml b/common-files/src/main/resources/resources/default/configuration/i18n.yml index df4fa5f14..c6d5d3482 100644 --- a/common-files/src/main/resources/resources/default/configuration/i18n.yml +++ b/common-files/src/main/resources/resources/default/configuration/i18n.yml @@ -52,6 +52,7 @@ i18n: item.hami_melon_slice: Hami Melon Slice item.hami_melon: Hami Melon item.hami_melon_seeds: Hami Melon Seeds + item.palm_button: Palm Button category.default.name: Default Assets category.default.lore: Contains the default configuration of CraftEngine category.palm_tree: Palm Tree @@ -113,6 +114,7 @@ i18n: item.hami_melon_slice: 哈密瓜片 item.hami_melon: 哈密瓜 item.hami_melon_seeds: 哈密瓜种子 + item.palm_button: 棕榈木按钮 category.default.name: 默认资产 category.default.lore: 包含了CraftEngine的默认配置 category.palm_tree: 棕榈树 @@ -158,6 +160,7 @@ lang: block_name:default:hami_melon: Hami Melon block_name:default:hami_melon_stem: Hami Melon Stem block_name:default:default:attached_hami_melon_stem: Hami Melon Stem + block_name:default:palm_button: Palm Button zh_cn: block_name:default:chinese_lantern: 灯笼 block_name:default:netherite_anvil: 下界合金砧 @@ -190,4 +193,5 @@ lang: block_name:default:amethyst_wall_torch: 紫水晶火把 block_name:default:hami_melon: 哈密瓜 block_name:default:hami_melon_stem: 哈密瓜茎 - block_name:default:default:attached_hami_melon_stem: 哈密瓜茎 \ No newline at end of file + block_name:default:default:attached_hami_melon_stem: 哈密瓜茎 + block_name:default:palm_button: 棕榈木按钮