diff --git a/src/generated/resources/data/minecraft/tags/blocks/needs_stone_tool.json b/src/generated/resources/data/minecraft/tags/blocks/needs_stone_tool.json index 2f239dab4f..b20ef0f4a8 100644 --- a/src/generated/resources/data/minecraft/tags/blocks/needs_stone_tool.json +++ b/src/generated/resources/data/minecraft/tags/blocks/needs_stone_tool.json @@ -3,46 +3,6 @@ "gtceu:long_distance_item_pipeline", "gtceu:long_distance_fluid_pipeline", "gtceu:filter_casing", - "gtceu:sterilizing_filter_casing", - "gtceu:red_granite_cobblestone", - "gtceu:mossy_red_granite_cobblestone", - "gtceu:smooth_red_granite", - "gtceu:red_granite_bricks", - "gtceu:cracked_red_granite_bricks", - "gtceu:chiseled_red_granite_bricks", - "gtceu:black_granite_cobblestone", - "gtceu:mossy_black_granite_cobblestone", - "gtceu:smooth_black_granite", - "gtceu:black_granite_bricks", - "gtceu:cracked_black_granite_bricks", - "gtceu:mossy_black_granite_bricks", - "gtceu:chiseled_black_granite_bricks", - "gtceu:basalt_cobblestone", - "gtceu:mossy_basalt_cobblestone", - "gtceu:smooth_basalt", - "gtceu:basalt_bricks", - "gtceu:cracked_basalt_bricks", - "gtceu:chiseled_basalt_bricks", - "gtceu:marble_cobblestone", - "gtceu:mossy_marble_cobblestone", - "gtceu:mossy_marble_bricks", - "gtceu:smooth_marble", - "gtceu:marble_bricks", - "gtceu:cracked_marble_bricks", - "gtceu:chiseled_marble_bricks", - "gtceu:dark_concrete_cobblestone", - "gtceu:mossy_dark_concrete_cobblestone", - "gtceu:mossy_dark_concrete_bricks", - "gtceu:smooth_dark_concrete", - "gtceu:dark_concrete_bricks", - "gtceu:cracked_dark_concrete_bricks", - "gtceu:chiseled_dark_concrete_bricks", - "gtceu:light_concrete_cobblestone", - "gtceu:mossy_light_concrete_cobblestone", - "gtceu:mossy_light_concrete_bricks", - "gtceu:smooth_light_concrete", - "gtceu:light_concrete_bricks", - "gtceu:cracked_light_concrete_bricks", - "gtceu:chiseled_light_concrete_bricks" + "gtceu:sterilizing_filter_casing" ] } \ No newline at end of file diff --git a/src/generated/resources/data/minecraft/tags/blocks/slabs.json b/src/generated/resources/data/minecraft/tags/blocks/wooden_slabs.json similarity index 100% rename from src/generated/resources/data/minecraft/tags/blocks/slabs.json rename to src/generated/resources/data/minecraft/tags/blocks/wooden_slabs.json diff --git a/src/generated/resources/data/minecraft/tags/items/slabs.json b/src/generated/resources/data/minecraft/tags/items/wooden_slabs.json similarity index 100% rename from src/generated/resources/data/minecraft/tags/items/slabs.json rename to src/generated/resources/data/minecraft/tags/items/wooden_slabs.json diff --git a/src/main/java/com/gregtechceu/gtceu/common/data/GTBlocks.java b/src/main/java/com/gregtechceu/gtceu/common/data/GTBlocks.java index 00a6d85229..2b5c6de990 100644 --- a/src/main/java/com/gregtechceu/gtceu/common/data/GTBlocks.java +++ b/src/main/java/com/gregtechceu/gtceu/common/data/GTBlocks.java @@ -698,12 +698,12 @@ public static BlockEntry createCasingBlock(String name, ResourceLocation private static BlockEntry createSidedCasingBlock(String name, String texture) { return createCasingBlock( - name, (properties, iRenderer) -> new RendererBlock(properties, + name, properties -> new RendererBlock(properties, Platform.isClient() ? new TextureOverrideRenderer(new ResourceLocation("block/cube_bottom_top"), Map.of("bottom", GTCEu.id(texture + "/bottom"), "top", GTCEu.id(texture + "/top"), "side", GTCEu.id(texture + "/side"))) : null), - GTCEu.id(texture), () -> Blocks.IRON_BLOCK, () -> RenderType::cutoutMipped + () -> Blocks.IRON_BLOCK, () -> RenderType::cutoutMipped ); } @@ -712,9 +712,13 @@ private static BlockEntry createGlassCasingBlock(String name, ResourceLoc } public static BlockEntry createCasingBlock(String name, BiFunction blockSupplier, ResourceLocation texture, NonNullSupplier properties, Supplier> type) { - return REGISTRATE.block(name, p -> (Block) blockSupplier.apply(p, + return createCasingBlock(name, p -> blockSupplier.apply(p, Platform.isClient() ? new TextureOverrideRenderer(new ResourceLocation("block/cube_all"), - Map.of("all", texture)) : null)) + Map.of("all", texture)) : null), properties, type); + } + + public static BlockEntry createCasingBlock(String name, NonNullFunction blockSupplier, NonNullSupplier properties, Supplier> type) { + return REGISTRATE.block(name, blockSupplier) .initialProperties(properties) .properties(p -> p.isValidSpawn((state, level, pos, ent) -> false)) .addLayer(type) diff --git a/src/main/resources/assets/gtceu/textures/block/yellow_lamp.png.mcmeta b/src/main/resources/assets/gtceu/textures/block/yellow_lamp.png.mcmeta deleted file mode 100644 index 6ce7a0d606..0000000000 --- a/src/main/resources/assets/gtceu/textures/block/yellow_lamp.png.mcmeta +++ /dev/null @@ -1,5 +0,0 @@ -{ - "ldlib": { - "connection": "gtceu:block/yellow_lamp_ctm" - } -} \ No newline at end of file