Skip to content

WIP: Minecraft 26.2 port#11

Draft
marroxo wants to merge 6 commits into
MeteorDevelopment:26.1from
marroxo:26.2-port
Draft

WIP: Minecraft 26.2 port#11
marroxo wants to merge 6 commits into
MeteorDevelopment:26.1from
marroxo:26.2-port

Conversation

@marroxo

@marroxo marroxo commented Jul 7, 2026

Copy link
Copy Markdown

Draft port of Baritone to Minecraft 26.2. Sharing as a starting point / for testing.

Working

  • Builds against 26.2 (Fabric loader 0.19.3, Java 25).
  • All mixins apply cleanly.
  • Core pathfinding: #goto, mining, process control all function in testing.

API changes handled

  • net.minecraft.util.Tuple removed -> added a small baritone.api.utils.Tuple.
  • Colored shulkers/beds consolidated into Blocks.DYED_SHULKER_BOX / Blocks.BED ColorCollections.
  • mc.setScreen -> setScreenAndShow; mc.gui.getChat -> gui.hud.getChat; mc.screen -> Gui.screen via new IGui accessor; levelRenderer.setBlocksDirty -> levelExtractor.allChanged; BlockPos.getCenter -> Vec3.atCenterOf; EntityType.FIREWORK_ROCKET -> EntityTypes.FIREWORK_ROCKET.
  • Mixin retargets: LevelRenderer.renderLevel -> render (dropped ChunkSectionsToRender arg); Connection.sendPacket -> send (3-arg descriptor); Minecraft.tick screen-field anchor -> HEAD.

Not done yet (marked in code)

  • Path visualization renderer is stubbed. 26.2 removed the immediate-mode draw API (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.2 PreparedRenderType#drawFromBuffer model.
  • Elytra rotation hooks (updateFallFlyingMovement/travelFallFlying removed in 26.2) are set require = 0 so 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.

port 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.
…(dropped ChunkSectionsToRender param), Connection.sendPacket->send, elytra hooks (updateFallFlyingMovement/travelFallFlying removed in 26.2) made non-fatal via require=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant