9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-25 09:59:20 +00:00

优化transparent

This commit is contained in:
XiaoMoMi
2025-10-20 17:23:24 +08:00
parent e5e9a4fda1
commit 2fda56f4f9

View File

@@ -1712,7 +1712,7 @@ public abstract class AbstractPackManager implements PackManager {
.resolve("empty.png");
try {
Files.createDirectories(modelPath.getParent());
Files.writeString(modelPath, "{}");
Files.writeString(modelPath, "{\"textures\":{\"particle\":\"block/empty\"},\"elements\":[{\"from\":[0,0,0],\"to\":[0,0,0],\"color\":0,\"faces\":{\"north\":{\"uv\":[0,0,0,0],\"texture\":\"#particle\"},\"east\":{\"uv\":[0,0,0,0],\"texture\":\"#particle\"},\"south\":{\"uv\":[0,0,0,0],\"texture\":\"#particle\"},\"west\":{\"uv\":[0,0,0,0],\"texture\":\"#particle\"},\"up\":{\"uv\":[0,0,0,0],\"texture\":\"#particle\"},\"down\":{\"uv\":[0,0,0,0],\"texture\":\"#particle\"}}}]}");
} catch (IOException e) {
this.plugin.logger().severe("Error writing empty block model", e);
}