Port from Fabric 1.19.4 to NeoForge 1.21.1 - #106
Open
codebooo wants to merge 1 commit into
Open
Conversation
Full loader migration + Minecraft version bump (1.19.4 -> 1.21.1), Fabric/yarn -> NeoForge/official Mojmaps. Build: - fabric-loom -> ModDevGradle 2.0.142, NeoForge 21.1.242, Gradle 8.8, Java 21 - fabric.mod.json -> META-INF/neoforge.mods.toml; accesswidener dropped (replaced by @Accessor/@invoker mixins); mixins.json -> JAVA_21, no refmap - cloth-config-fabric -> cloth-config-neoforge 15.0.140; ModMenu dropped (config screen via IConfigScreenFactory + AutoConfig) Code: - Merged ModInitializer + ClientModInitializer into one @mod(dist=CLIENT) class; Fabric events -> NeoForge event bus (RegisterKeyMappingsEvent, ClientTickEvent.Post, ClientPlayerNetworkEvent.LoggingIn) - Rendering: MatrixStack -> GuiGraphics; tab backgrounds -> vanilla 1.21.1 creative-tab sprites via blitSprite (creative_inventory/tabs.png was removed) - ItemStack NBT -> DataComponents (skull-owner head); BlockEntity custom name via Nameable; Registries -> BuiltInRegistries; data tags tags/blocks -> tags/block (1.21) - Retargeted all mixins to Mojmaps (AbstractContainerScreen, KeyBindsList, renderBg, etc.) Verified: gradlew build succeeds; runClient loads to main menu with the mod and mixin config applied, no errors. In-game visual behavior not exhaustively tested. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Full loader migration + Minecraft version bump (1.19.4 -> 1.21.1), Fabric/yarn -> NeoForge/official Mojmaps.
Build:
Code:
Verified: gradlew build succeeds; runClient loads to main menu with the mod and mixin config applied, no errors. In-game visual behavior not exhaustively tested.