From b5a027e3519afcc1fcab8028f677c31048293fef Mon Sep 17 00:00:00 2001 From: jhqwqmc <2110242767@qq.com> Date: Fri, 28 Mar 2025 13:07:38 +0800 Subject: [PATCH] =?UTF-8?q?feat(crop):=20=E4=BF=AE=E6=94=B9=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/configuration/plants.yml | 8 +++--- .../models/block/custom/tinted_cross.json | 26 +++++++++++++++++++ 2 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 bukkit/loader/src/main/resources/resources/default/resourcepack/assets/minecraft/models/block/custom/tinted_cross.json diff --git a/bukkit/loader/src/main/resources/resources/default/configuration/plants.yml b/bukkit/loader/src/main/resources/resources/default/configuration/plants.yml index 46421ed0c..988d348dd 100644 --- a/bukkit/loader/src/main/resources/resources/default/configuration/plants.yml +++ b/bukkit/loader/src/main/resources/resources/default/configuration/plants.yml @@ -224,17 +224,17 @@ blocks: models: - path: "minecraft:block/custom/ender_pearl_crop_stage1" generation: - parent: "minecraft:block/crop" + parent: "minecraft:block/custom/tinted_cross" textures: - "crop": "minecraft:block/custom/ender_pearl_crop_stage1" + "cross": "minecraft:block/custom/ender_pearl_crop_stage1" ripe: state: "sugar_cane:4" models: - path: "minecraft:block/custom/ender_pearl_crop_stage2" generation: - parent: "minecraft:block/crop" + parent: "minecraft:block/custom/tinted_cross" textures: - "crop": "minecraft:block/custom/ender_pearl_crop_stage2" + "cross": "minecraft:block/custom/ender_pearl_crop_stage2" variants: age=0: appearance: default diff --git a/bukkit/loader/src/main/resources/resources/default/resourcepack/assets/minecraft/models/block/custom/tinted_cross.json b/bukkit/loader/src/main/resources/resources/default/resourcepack/assets/minecraft/models/block/custom/tinted_cross.json new file mode 100644 index 000000000..37c8b09f2 --- /dev/null +++ b/bukkit/loader/src/main/resources/resources/default/resourcepack/assets/minecraft/models/block/custom/tinted_cross.json @@ -0,0 +1,26 @@ +{ + "ambientocclusion": false, + "textures": { + "particle": "#cross" + }, + "elements": [ + { "from": [ 0.8, 0, 8 ], + "to": [ 15.2, 16, 8 ], + "rotation": { "origin": [ 8, 8, 8 ], "axis": "y", "angle": 45, "rescale": true }, + "shade": false, + "faces": { + "north": { "uv": [ 0, 0, 16, 16 ], "texture": "#cross" }, + "south": { "uv": [ 0, 0, 16, 16 ], "texture": "#cross" } + } + }, + { "from": [ 8, 0, 0.8 ], + "to": [ 8, 16, 15.2 ], + "rotation": { "origin": [ 8, 8, 8 ], "axis": "y", "angle": 45, "rescale": true }, + "shade": false, + "faces": { + "west": { "uv": [ 0, 0, 16, 16 ], "texture": "#cross" }, + "east": { "uv": [ 0, 0, 16, 16 ], "texture": "#cross" } + } + } + ] +}