From b21dc35abb9bc9a2d2797ea5da5951cbdd3c8e32 Mon Sep 17 00:00:00 2001 From: Minecraft_hyr <107340726+Minecrafthyr@users.noreply.github.com> Date: Wed, 8 Nov 2023 18:05:30 +0800 Subject: [PATCH] Fix a bug in dirt_path.json (#761) The old file causes a bug when the side touches a block, it will cull and make a 16\*1 pixel gap. ![before](https://github.com/Fabulously-Optimized/fabulously-optimized/assets/107340726/5b383713-ef30-42a1-b19c-47233914cf68) I fixed it by removing the lower "down" face to fix it. ![remove_down](https://github.com/Fabulously-Optimized/fabulously-optimized/assets/107340726/0ad097a8-c0c5-4adb-be85-226527d36471) Other choices: - Removing the extra box. [dirt_path.json](https://github.com/Fabulously-Optimized/fabulously-optimized/files/13290645/dirt_path.json) - Removing the lower "down" face and add 4 faces inside cull like side [dirt_path.json](https://github.com/Fabulously-Optimized/fabulously-optimized/files/13290650/dirt_path.json) - Removing the lower "down" face and add 4 faces inside cull like down [dirt_path.json](https://github.com/Fabulously-Optimized/fabulously-optimized/files/13290651/dirt_path.json) --- .../minecraft/models/block/dirt_path.json | 60 +++++++++---------- 1 file changed, 29 insertions(+), 31 deletions(-) diff --git a/Resource Packs/Fast Better Grass/assets/minecraft/models/block/dirt_path.json b/Resource Packs/Fast Better Grass/assets/minecraft/models/block/dirt_path.json index a61039c57..e0f4cdbf6 100644 --- a/Resource Packs/Fast Better Grass/assets/minecraft/models/block/dirt_path.json +++ b/Resource Packs/Fast Better Grass/assets/minecraft/models/block/dirt_path.json @@ -1,34 +1,32 @@ { - "parent": "block/block", - "textures": { - "particle": "block/dirt", - "top": "block/dirt_path_top", - "bottom": "block/dirt" + "parent": "block/block", + "textures": { + "particle": "block/dirt", + "top": "block/dirt_path_top", + "bottom": "block/dirt" + }, + "elements": [ + { + "from": [0, 0, 0], + "to": [16, 15, 16], + "faces": { + "down": { "uv": [0, 0, 16, 16], "texture": "#bottom", "cullface": "down" }, + "up": { "uv": [0, 0, 16, 16], "texture": "#top" }, + "north": { "uv": [0, 0, 16, 15], "texture": "#top", "cullface": "north" }, + "south": { "uv": [0, 0, 16, 15], "texture": "#top", "cullface": "south" }, + "west": { "uv": [0, 0, 16, 15], "texture": "#top", "cullface": "west" }, + "east": { "uv": [0, 0, 16, 15], "texture": "#top", "cullface": "east" } + } }, - - "elements": [ - { "from": [ -0.008, -1, -0.008 ], - "to": [ 16.008, 15, 16.008 ], - "faces": { - "down": { "uv": [ 0, 0, 16, 16 ], "texture": "#bottom", "cullface": "down" }, - "up": { "uv": [ 0, 0, 16, 16 ], "texture": "#top" }, - "north": { "uv": [ 0, 1, 16.008, 16.008 ], "texture": "#top", "cullface": "north" }, - "south": { "uv": [ 0, 1, 16.008, 16.008 ], "texture": "#top", "cullface": "south" }, - "west": { "uv": [ 0, 1, 16.008, 16.008 ], "texture": "#top", "cullface": "west" }, - "east": { "uv": [ 0, 1, 16.008, 16.008 ], "texture": "#top", "cullface": "east" } - } - }, - { - "from": [0, -0, 0], - "to": [16, -0.0001, 16], - "faces": { - "north": {"uv": [0, 0, 16, 0], "texture": "#bottom", "cullface": "down" }, - "east": {"uv": [0, 0, 16, 0], "texture": "#bottom", "cullface": "down" }, - "south": {"uv": [0, 0, 16, 0], "texture": "#bottom", "cullface": "down" }, - "west": {"uv": [0, 0, 16, 0], "texture": "#bottom", "cullface": "down" }, - "up": {"uv": [0, 0, 16, 16], "texture": "#bottom", "cullface": "down" }, - "down": {"uv": [0, 0, 16, 16], "texture": "#bottom", "cullface": "down" } - } - } - ] + { + "from": [-0.008, -1, -0.008], + "to": [16.008, 0, 16.008], + "faces": { + "north": { "uv": [0, 15, 16, 16], "texture": "#top", "cullface": "north" }, + "east": { "uv": [0, 15, 16, 16], "texture": "#top", "cullface": "east" }, + "south": { "uv": [0, 15, 16, 16], "texture": "#top" , "cullface": "south"}, + "west": { "uv": [0, 15, 16, 16], "texture": "#top", "cullface": "west" } + } + } + ] }