From 81fa1032fa82354c798fb52eda0dfd2dd15670c8 Mon Sep 17 00:00:00 2001 From: CuzImClicks Date: Fri, 6 Mar 2026 16:07:45 +0100 Subject: [PATCH 1/2] add Waxables Extractor --- .../com/steelextractor/SteelExtractor.kt | 4 +++- .../com/steelextractor/extractors/Waxables.kt | 24 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 src/main/kotlin/com/steelextractor/extractors/Waxables.kt diff --git a/src/main/kotlin/com/steelextractor/SteelExtractor.kt b/src/main/kotlin/com/steelextractor/SteelExtractor.kt index 085011d..a7ec71b 100644 --- a/src/main/kotlin/com/steelextractor/SteelExtractor.kt +++ b/src/main/kotlin/com/steelextractor/SteelExtractor.kt @@ -26,6 +26,7 @@ import net.minecraft.world.level.chunk.status.ChunkStatus import com.steelextractor.extractors.Potions import com.steelextractor.extractors.StructureStarts import com.steelextractor.extractors.Tags +import com.steelextractor.extractors.Waxables import kotlinx.io.IOException import net.fabricmc.api.ModInitializer import net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents @@ -74,7 +75,8 @@ object SteelExtractor : ModInitializer { BiomeHashes(), LevelEvents(), Tags(), - StructureStarts() + StructureStarts(), + Waxables() ) val chunkStageExtractor = ChunkStageHashes() diff --git a/src/main/kotlin/com/steelextractor/extractors/Waxables.kt b/src/main/kotlin/com/steelextractor/extractors/Waxables.kt new file mode 100644 index 0000000..d436b9a --- /dev/null +++ b/src/main/kotlin/com/steelextractor/extractors/Waxables.kt @@ -0,0 +1,24 @@ +package com.steelextractor.extractors + +import com.google.gson.JsonElement +import com.google.gson.JsonObject +import com.steelextractor.SteelExtractor +import net.minecraft.core.registries.BuiltInRegistries +import net.minecraft.server.MinecraftServer +import net.minecraft.world.item.HoneycombItem + +class Waxables : SteelExtractor.Extractor { + override fun fileName(): String { + return "waxables.json" + } + + override fun extract(server: MinecraftServer): JsonElement { + val topLevelJson = JsonObject() + + for ((normal, waxed) in HoneycombItem.WAXABLES.get()) { + topLevelJson.addProperty(BuiltInRegistries.BLOCK.getKey(normal).path, BuiltInRegistries.BLOCK.getKey(waxed).path) + } + + return topLevelJson + } +} \ No newline at end of file From 16dac7a5ae042e0494095d3e0e2726d25bc27062 Mon Sep 17 00:00:00 2001 From: 4lve Date: Thu, 19 Mar 2026 21:12:48 +0100 Subject: [PATCH 2/2] fixes --- .../kotlin/com/steelextractor/extractors/Waxables.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/steelextractor/extractors/Waxables.kt b/src/main/kotlin/com/steelextractor/extractors/Waxables.kt index d436b9a..5db926f 100644 --- a/src/main/kotlin/com/steelextractor/extractors/Waxables.kt +++ b/src/main/kotlin/com/steelextractor/extractors/Waxables.kt @@ -9,16 +9,19 @@ import net.minecraft.world.item.HoneycombItem class Waxables : SteelExtractor.Extractor { override fun fileName(): String { - return "waxables.json" + return "steel-core/build/waxables.json" } override fun extract(server: MinecraftServer): JsonElement { val topLevelJson = JsonObject() for ((normal, waxed) in HoneycombItem.WAXABLES.get()) { - topLevelJson.addProperty(BuiltInRegistries.BLOCK.getKey(normal).path, BuiltInRegistries.BLOCK.getKey(waxed).path) + topLevelJson.addProperty( + BuiltInRegistries.BLOCK.getKey(normal).path, + BuiltInRegistries.BLOCK.getKey(waxed).path + ) } return topLevelJson } -} \ No newline at end of file +}