WIP: Minecraft 26.2 port#11
Draft
marroxo wants to merge 6 commits into
Draft
Conversation
added 6 commits
July 7, 2026 14:52
- Add baritone.api.utils.Tuple (net.minecraft.util.Tuple removed in 26.2), swap imports - Minecraft.getToastManager() -> gui.toastManager(); gui.getChat() -> gui.hud.getChat() - CachedChunk: colored shulkers/beds consolidated into Blocks.DYED_SHULKER_BOX / Blocks.BED ColorCollections
Render layer: IRenderer stubbed to 26.2 (Tesselator/RenderType#draw/blend removed) - path visualization disabled (build+discard), core pathfinding unaffected. API moves: mc.setScreen->setScreenAndShow, mc.gui.getChat via Gui.hud.getChat, mc.screen-> Gui.screen via new IGui accessor mixin, levelRenderer.setBlocksDirty->levelExtractor.allChanged, BlockPos.getCenter->Vec3.atCenterOf, EntityType.FIREWORK_ROCKET->EntityTypes.FIREWORK_ROCKET. Removed MixinMinecraft#passEvents (targeted the moved Minecraft.screen field). Metadata: minecraft ~26.2, fabricloader >=0.19.3, mod_version 26.2-SNAPSHOT.
…ed to Gui) - inject at tick HEAD
…(dropped ChunkSectionsToRender param), Connection.sendPacket->send, elytra hooks (updateFallFlyingMovement/travelFallFlying removed in 26.2) made non-fatal via require=0
…criptor) for packet event injects
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.
Draft port of Baritone to Minecraft 26.2. Sharing as a starting point / for testing.
Working
#goto, mining, process control all function in testing.API changes handled
net.minecraft.util.Tupleremoved -> added a smallbaritone.api.utils.Tuple.Blocks.DYED_SHULKER_BOX/Blocks.BEDColorCollections.mc.setScreen->setScreenAndShow;mc.gui.getChat->gui.hud.getChat;mc.screen->Gui.screenvia newIGuiaccessor;levelRenderer.setBlocksDirty->levelExtractor.allChanged;BlockPos.getCenter->Vec3.atCenterOf;EntityType.FIREWORK_ROCKET->EntityTypes.FIREWORK_ROCKET.LevelRenderer.renderLevel->render(dropped ChunkSectionsToRender arg);Connection.sendPacket->send(3-arg descriptor);Minecraft.tickscreen-field anchor -> HEAD.Not done yet (marked in code)
Tesselator,RenderType#draw,SourceFactor/DestFactor). Geometry is still emitted but not drawn, so pathfinding works but the path/selection/beacon overlays are invisible. Needs a rewrite to the 26.2PreparedRenderType#drawFromBuffermodel.updateFallFlyingMovement/travelFallFlyingremoved in 26.2) are setrequire = 0so they no-op instead of crashing.Not affiliated with a specific team decision on 26.2 support, just contributing the port work. Happy to adjust.