Migrate BedWar from Minecraft 1.8.9 Forge to NeoForge 1.21.1#1
Draft
Migrate BedWar from Minecraft 1.8.9 Forge to NeoForge 1.21.1#1
Conversation
Co-authored-by: fex2000 <88728720+fex2000@users.noreply.github.com>
Co-authored-by: fex2000 <88728720+fex2000@users.noreply.github.com>
…erGuiData Co-authored-by: fex2000 <88728720+fex2000@users.noreply.github.com>
… up dead code Co-authored-by: fex2000 <88728720+fex2000@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update NeoForge to version 1.21.11 in Java
Migrate BedWar from Minecraft 1.8.9 Forge to NeoForge 1.21.1
Feb 24, 2026
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.
Migrates the entire mod from the legacy 1.8.9 Forge/architectury-loom stack to NeoForge 21.1.172 (Minecraft 1.21.1), Java 21, and Kotlin 2.0.0.
Build System
architectury-loomwithnet.neoforged.gradle.userdev(7.0.171)io.github.moulberry.moulconfig) and libautoupdate (moe.nea:libautoupdate) dependenciesMETA-INF/mods.toml+pack.mcmeta(pack_format 34); removemcmod.infoEvent System
MinecraftForge.EVENT_BUS→NeoForge.EVENT_BUS; all@SubscribeEventimports updated tonet.neoforged.bus.api@Cancelableannotation replaced withICancellableEventinterfaceClientTickEvent.Pre,LevelEvent.Load; chat:ClientChatReceivedEvent; disconnect:ClientPlayerNetworkEvent.LoggingOutMinecraft API
Minecraft.getMinecraft()→Minecraft.getInstance(),.thePlayer→.player,.theWorld→.level,.fontRendererObj→.fontIChatComponent/ChatComponentText→Component/MutableComponentScaledResolution→Window.getGuiScaledWidth/Height()net.minecraft.item.*/net.minecraft.init.*→net.minecraft.world.item.*Rendering
GuiGraphics(replacingGlStateManagerdirect calls);GuiRenderEventandNotificationRenderEventnow carry aGuiGraphicsinstanceGuiScreen→Screen;GuiPositionEditorrewritten usingScreen'srender,mouseClicked,keyPressed,mouseScrolledoverridesRenderGuiLayerEvent.PrewithVanillaGuiLayers.HOTBARMixin Transformers
Old → new class targets:
GuiContainer→AbstractContainerScreen,NetHandlerPlayClient→ClientPacketListener,NetworkManager→Connection,GuiPlayerTabOverlay→PlayerTabOverlay,ChatComponentText→LiteralContents. Mixin compatibility level set toJAVA_21.Config System
MoulConfig removed; config now serialized directly via GSON to
config/bedwar/config.json. All@ConfigOption/@ConfigEditorBoolean/@Accordionannotations stripped;@Exposeretained for GSON. No config GUI in this iteration.Commands
ClientCommandHandler.instance.registerCommand()replaced with Brigadier viaRegisterClientCommandsEvent.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
maven.neoforged.net/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx4g -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-8.3-bin/dxjbbhstwasg8cbags9q7cvli/gradle-8.3/lib/gradle-launcher-8.3.jar -javaagent:/home/REDACTED/.gradle/wrapper/dists/gradle-8.3-bin/dxjbbhstwasg8cbags9q7cvli/gradle-8.3/lib/agents/gradle-instrumentation-agent-8.3.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.3 bash git(dns block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.