From 3a39176ce1a41fff4e823048095c9c126b62a99b Mon Sep 17 00:00:00 2001 From: NightFish <101402767+dmzz-yyhyy@users.noreply.github.com> Date: Mon, 8 Jul 2024 02:52:19 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=88=9B=E9=80=A0?= =?UTF-8?q?=E5=8F=91=E7=94=B5=E6=9C=BA=E7=89=A9=E5=93=81=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../models/item/creative_generator.json | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 common/src/main/resources/assets/anvilcraft/models/item/creative_generator.json diff --git a/common/src/main/resources/assets/anvilcraft/models/item/creative_generator.json b/common/src/main/resources/assets/anvilcraft/models/item/creative_generator.json new file mode 100644 index 000000000..0a3bd7ec6 --- /dev/null +++ b/common/src/main/resources/assets/anvilcraft/models/item/creative_generator.json @@ -0,0 +1,38 @@ +{ + "credit": "Made by XeKr with Blockbench", + "parent": "minecraft:block/block", + "textures": { + "particle": "anvilcraft:block/creative_generator_side", + "base": "anvilcraft:block/creative_generator_side", + "top": "anvilcraft:block/creative_generator_top", + "bottom": "anvilcraft:block/creative_generator_bottom", + "head": "anvilcraft:block/creative_generator_head" + }, + "elements": [ + { + "from": [0, 0, 0], + "to": [16, 4, 16], + "faces": { + "north": {"uv": [0, 12, 16, 16], "texture": "#base", "cullface": "north"}, + "east": {"uv": [0, 12, 16, 16], "texture": "#base", "cullface": "east"}, + "south": {"uv": [0, 12, 16, 16], "texture": "#base", "cullface": "south"}, + "west": {"uv": [0, 12, 16, 16], "texture": "#base", "cullface": "west"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#top"}, + "down": {"uv": [0, 0, 16, 16], "texture": "#bottom", "cullface": "down"} + } + }, + { + "from": [3, 6, 3], + "to": [13, 16, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 11, 8]}, + "faces": { + "north": {"uv": [3, 3, 13, 13], "texture": "#head"}, + "east": {"uv": [3, 3, 13, 13], "texture": "#head"}, + "south": {"uv": [3, 3, 13, 13], "texture": "#head"}, + "west": {"uv": [3, 3, 13, 13], "texture": "#head"}, + "up": {"uv": [3, 3, 13, 13], "texture": "#head"}, + "down": {"uv": [3, 3, 13, 13], "texture": "#head"} + } + } + ] +} \ No newline at end of file From 6a64417798958bdefd6ca5710027ebbf479e7e21 Mon Sep 17 00:00:00 2001 From: NightFish <101402767+dmzz-yyhyy@users.noreply.github.com> Date: Mon, 8 Jul 2024 11:39:25 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=20=E5=A4=84=E7=90=86=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/dev/dubhe/anvilcraft/init/ModBlocks.java | 5 ++++- .../assets/anvilcraft/models/item/creative_generator.json | 3 --- .../assets/anvilcraft/models/item/creative_generator.json | 3 --- 3 files changed, 4 insertions(+), 7 deletions(-) delete mode 100644 fabric/src/generated/resources/assets/anvilcraft/models/item/creative_generator.json delete mode 100644 forge/src/generated/resources/assets/anvilcraft/models/item/creative_generator.json diff --git a/common/src/main/java/dev/dubhe/anvilcraft/init/ModBlocks.java b/common/src/main/java/dev/dubhe/anvilcraft/init/ModBlocks.java index 9ffbb9b4d..83b7a8d91 100644 --- a/common/src/main/java/dev/dubhe/anvilcraft/init/ModBlocks.java +++ b/common/src/main/java/dev/dubhe/anvilcraft/init/ModBlocks.java @@ -1009,7 +1009,10 @@ public class ModBlocks { .properties(BlockBehaviour.Properties::noOcclusion) .blockstate((ctx, provider) -> { }) - .simpleItem() + .item() + .model((ctx, provider) -> { + }) + .build() .tag(BlockTags.MINEABLE_WITH_PICKAXE) .register(); public static final BlockEntry HEATER = REGISTRATE diff --git a/fabric/src/generated/resources/assets/anvilcraft/models/item/creative_generator.json b/fabric/src/generated/resources/assets/anvilcraft/models/item/creative_generator.json deleted file mode 100644 index c787d81d2..000000000 --- a/fabric/src/generated/resources/assets/anvilcraft/models/item/creative_generator.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "parent": "anvilcraft:block/creative_generator" -} \ No newline at end of file diff --git a/forge/src/generated/resources/assets/anvilcraft/models/item/creative_generator.json b/forge/src/generated/resources/assets/anvilcraft/models/item/creative_generator.json deleted file mode 100644 index c787d81d2..000000000 --- a/forge/src/generated/resources/assets/anvilcraft/models/item/creative_generator.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "parent": "anvilcraft:block/creative_generator" -} \ No newline at end of file