From fcfb638e7c614d9ee01adb6baae13f75b9d3c525 Mon Sep 17 00:00:00 2001 From: cheaterpaul Date: Sun, 13 Oct 2024 12:06:21 +0200 Subject: [PATCH] fix magic sapling texture close #195 --- .../assets/werewolves/blockstates/magic_sapling.json | 2 +- .../assets/werewolves/models/block/magic_sapling.json | 7 +++++++ .../de/teamlapen/werewolves/data/BlockStateGenerator.java | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 src/generated/resources/assets/werewolves/models/block/magic_sapling.json diff --git a/src/generated/resources/assets/werewolves/blockstates/magic_sapling.json b/src/generated/resources/assets/werewolves/blockstates/magic_sapling.json index 872071d7..561a2d0f 100644 --- a/src/generated/resources/assets/werewolves/blockstates/magic_sapling.json +++ b/src/generated/resources/assets/werewolves/blockstates/magic_sapling.json @@ -1,7 +1,7 @@ { "variants": { "": { - "model": "werewolves:block/jacaranda_sapling" + "model": "werewolves:block/magic_sapling" } } } \ No newline at end of file diff --git a/src/generated/resources/assets/werewolves/models/block/magic_sapling.json b/src/generated/resources/assets/werewolves/models/block/magic_sapling.json new file mode 100644 index 00000000..b6f1dac3 --- /dev/null +++ b/src/generated/resources/assets/werewolves/models/block/magic_sapling.json @@ -0,0 +1,7 @@ +{ + "parent": "minecraft:block/cross", + "render_type": "minecraft:cutout", + "textures": { + "cross": "werewolves:block/magic_sapling" + } +} \ No newline at end of file diff --git a/src/main/java/de/teamlapen/werewolves/data/BlockStateGenerator.java b/src/main/java/de/teamlapen/werewolves/data/BlockStateGenerator.java index 5891ff61..5e733f6f 100644 --- a/src/main/java/de/teamlapen/werewolves/data/BlockStateGenerator.java +++ b/src/main/java/de/teamlapen/werewolves/data/BlockStateGenerator.java @@ -97,7 +97,7 @@ private void createWoodStates() { simpleBlock(ModBlocks.JACARANDA_SAPLING.get(), models().cross("jacaranda_sapling", modLoc("block/jacaranda_sapling")).renderType(CUTOUT)); simpleBlock(ModBlocks.JACARANDA_LEAVES.get(), models().withExistingParent(modId("block/jacaranda_leaves"), "minecraft:block/leaves").texture("all", modId("block/jacaranda_leaves")).renderType(CUTOUT)); - simpleBlock(ModBlocks.MAGIC_SAPLING.get(), models().cross("jacaranda_sapling", modLoc("block/jacaranda_sapling")).renderType(CUTOUT)); + simpleBlock(ModBlocks.MAGIC_SAPLING.get(), models().cross("magic_sapling", modLoc("block/magic_sapling")).renderType(CUTOUT)); simpleBlock(ModBlocks.MAGIC_LEAVES.get(), models().withExistingParent(modId("block/magic_leaves"), "minecraft:block/leaves").texture("all", modId("block/magic_leaves")).renderType(CUTOUT)); stairsBlock(ModBlocks.JACARANDA_STAIRS.get(), blockTexture(ModBlocks.JACARANDA_PLANKS.get()));