Repository navigation
Conversation
The 26.2 port replaced the removed vanilla constant LevelChunkSection.SECTION_SIZE (4096, blocks per section) with a local SECTION_SIZE = 16, so the all-solid fast path memset 2 bytes at offset y0*2 instead of 512 bytes at y0*512 (SIZEOF_X16). Every section without air in its palette was handed to nether-pathfinder as open air, which made elytra path through solid terrain and fail constantly.
As of mc 26.2 the game awaits non-daemon threads on stop and crash reports if any are still alive.
velocity(0) is 0, so the first iteration of fallTicks always consumed a tick without covering any distance. Every fall was priced one tick (and the test's own reimplementation one tick of distance) too expensive, which made falling look worse than it is relative to walking down.
The fall ends at newY + 1 when there is a block to land on, so the drop is one block shorter than the one that was probed. Both the plain landing and the water bucket variant were charged for the extra block.
The max corner was folded against the running min instead of against itself, so with more than one position the box collapsed towards the minimum corner and isInGoal reported positions outside it as inside.
The second corner was tested for lava but its magma check looked at the first corner again, so a diagonal could cut over a magma block with allowWalkOnMagmaBlocks off.
height() is the number of blocks in the dimension, not the top y level. In the overworld (minY -64, height 384) the ceiling check let the search climb to y=384, 64 blocks above the build limit, and every node up there was wasted work. minY + height is the actual top.
A source water block reached the "it is just water, walk through it" return without ever asking the block itself. Waterlogged fences, walls, panes, bars, stairs and leaves all keep their own collision, so the pathfinder walked into them.
fullyPassable listed its exceptions one block at a time, so anything that blocks walking but is not in that list - powder snow, honey, berry bushes, dripstone, whatever the user put in blocksToAvoid - was still considered jumpable. The hitbox is the same width in the air as on the ground.
heuristic() is what estimatedTicksToGoal treats as "we are there", and the default of 0 is wrong for a goal whose own heuristic never reaches 0: standing on top of the block still scores a full jump. The reported ETA never counted down to zero and kept ticking after arrival.
A coefficient of 0 or less multiplies out to a non positive action cost, which A* rejects outright, so the whole calculation fails instead of the setting just not favoring anything.
ToolSet read the live inventory and cached break speeds in a HashMap, and MovementHelper read assumeWalkOnWater straight off the settings, all from the calculation thread. Reading the inventory off thread is a data race against the game thread, and a setting that changes mid calculation makes the cost function inconsistent with the nodes already expanded. The hotbar and the selected slot are now copied on construction, the break speed cache is concurrent, and assumeWalkOnWater is read once per BlockStateInterface.
It is set by the game thread and read by the calculation thread, so without it there is nothing that says the search ever has to notice the cancellation.
bestPathSoFar allocates a BetterBlockPos per node and was called on every tick that a calculation was in progress, before the cheap checks that almost always decide the outcome. PathExecutor built an entire CalculationContext per tick to read two fields off it.
Finding the nearest node buried in terrain used to just return and hope a later tick had fixed it, which nothing does, so the solver kept aiming at a node inside a wall until it flew into one. Recalculate instead, rejoining the existing path at the last node that is still in open air and still closer to the destination than we are.
The simulated step had drifted from LivingEntity.updateFallFlyingMovement: - gravity was the hardcoded 0.08 rather than the player's GRAVITY attribute, and Slow Falling was not accounted for at all - the cosine term came from Mth's lookup table and was multiplied by a min(1, lookDirection.length() / 0.4) factor that vanilla does not have - the "looking down" branch divided by pitchBase2 without vanilla's guard that it is greater than zero, so looking straight up or down produced infinities - drag used float literals, which round differently from the doubles vanilla actually multiplies by Every tick of error compounds over the simulated horizon, and the horizon is what the solver picks a pitch from, so this is the difference between clearing a ridge and flying into it.
When solveAngles runs out of relaxations it returned a solution that only had a yaw, leaving the pitch at whatever it happened to be, which in practice means holding the last pitch straight into the terrain. That is the case that matters most: it is what happens when the world changed under a path, when a wall appeared, or when the bot got knocked off course. Fall back to simulating the pitch range and flying the trajectory that stays clear the longest, preferring the one that ends higher on a tie, so the segment recalculation has time to land. If nothing clears more than a dozen ticks and a firework provably buys more than two ticks, force one.
How far ahead of the player the solver looks for a node to aim at was a bare 20 in the middle of solveAngles. At firework speed 20 nodes is not much runway, and raising it is the knob that decides how much the bot cuts corners, so it belongs in the settings.
elytraAutoJump only knew how to walk to an overhang and step off it. Everywhere that has no overhang within reach - which on 2b2t is most of the overworld and most of a nether highway - it spent a couple of seconds pathfinding and then told the user to go find a cliff. It also had three ways to end up standing still forever: a leftover path segment that blocks the walk off calculation from ever starting, a walk off path that reaches its goal by stepping down instead of falling, and a GoalYLevel that is already satisfied where we stand (landing at exactly y=31 in the nether hit this every time). Add a standing takeoff: jump, open the elytra on the way up the same way the vanilla double tap does, and light a firework the moment it opens, because a glide that starts with no speed a block and a half off the floor only ends one way. The elytra path is computed before leaving the ground, since the handful of ticks between opening the elytra and hitting the floor is no time to compute one. Guarded by elytraStandingTakeoff, capped at three attempts so a bad spot cannot burn a stack of rockets, and each of the stall cases now has a way out.
The README was still upstream's, down to the dead Travis badge and download links for Minecraft versions this fork does not build. Replace it with what this fork actually is, which versions it covers and what it changes. The release workflow named every jar <mc>-SNAPSHOT regardless of the tag, so two releases of the same Minecraft version shipped identically named files. Take the version from the tag, the way the CI build already does, and fail the release rather than publishing an empty one if the build produced no jars. Releases run the tests now.
PR cabaletta#5058 sourced ServerLevelStub's RegistryAccess from client.level so that modded loot tables would resolve. However, loot tables are populated only by the ReloadableServerRegistries reload performed in load(); a client RegistryAccess never receives them. In game (client.level != null) every loot table lookup therefore threw, and the catch (Throwable) widened by that same PR silently swallowed it, leaving an empty drops list. The visible effect was that #mine stopped picking up items entirely. Revert that half so drops resolve again. The widened catch is kept, so modded blocks whose tables are absent degrade to no known drops instead of crashing, which preserves what cabaletta#5058 set out to fix. Reported-by: ZacSharp Co-Authored-By: Claude <noreply@anthropic.com>
(cherry picked from commit cff6d82)
(cherry picked from commit e8e81d7)
(cherry picked from commit 0597c9c)
(cherry picked from commit 19751d2)
(cherry picked from commit ef21102) Conflict: render API drift (IRenderer.startLines takes only the colour on this version); the fork never touched this file, so it is resolved to cabaletta/26.3's PathRenderer (no later upstream commit touches it).
(cherry picked from commit 2692aed)
Because CODE_OF_CONDUCT.md lists "Anime" as unacceptable behavior (cherry picked from commit 56360e4)
canWalkOnBlockState checked isWater before SlabBlock, so a waterlogged top slab, whose full top face supports the player like its dry form, was only walkable as a water surface and rejected with air above. Falls onto one were discarded as impossible water landings, and assumeWalkOnWater blocked pillaring and parkour from one. Add isWaterloggedSolidTop and exempt such blocks from those water checks, so they are walked on and landed on, with fall damage, like their dry form. Water you can fall into is unchanged. (cherry picked from commit fd64f16) Conflict: MovementDescend. Kept the fork's tentativeCostOntoBlock (a landing on top of a block falls one block less than probed) and added the isWaterloggedSolidTop exemption to the water condition below it, so a fall onto a waterlogged top slab is costed like any other landing on a block.
(cherry picked from commit 908d91c)
MovementDiagonal presses jump to ascend, but its cost omitted jumpPenalty, which every other jumping movement (ascend, pillar and parkour) charges. Raising jumpPenalty therefore made diagonal ascents relatively cheaper than orthogonal ones, rerouting jumps instead of avoiding them. (cherry picked from commit 2fdee67)
(cherry picked from commit 4552625)
(cherry picked from commit cae3564) Conflict: javadoc only (ResourceLocation is Identifier on this version); the fork never touched this file, so it is resolved to cabaletta/26.3's TabCompleteHelper (no later upstream commit touches it).
(cherry picked from commit 627225b)
(cherry picked from commit d3bbedd)
…etta#5110. This setting will add additional items to the possible item drop loot table as is calculated in BlockOptionalMeta.java LN: 235. It will add silk_touch as an enchant on the tool to simulate item drops by a tool with silk touch Setting name is: "mineDropsConsiderSilkTouch" Supporting Functions: additional BlockOptionalMetaLookup function in BlockOptionalMeta.java at LN: 50 to support silk touch as an option additional mine function in IMineProcess.java at LN: 90 to support silk touch (cherry picked from commit 9d78ead)
(cherry picked from commit 68032f2)
…ConsiderSilkTouch to better fit after merge (cherry picked from commit e38b17e)
…ch" to be defaulted to true, and changed all Optional<Boolean> calls to Boolean (cherry picked from commit 5b39214)
(cherry picked from commit 3501afa)
(cherry picked from commit 588f4cf)
(cherry picked from commit 901323c)
(cherry picked from commit 630998e)
(cherry picked from commit f087443)
… and silk touch changes
A path search holds the write lock here for as long as it runs, so the solver parks until the search ends; the comment described upstream's read-lock search.
…overwrite in singleplayer
The landing search was seeded only at the destination block. #goal x z flies to y 64, which is often netherrack: the search drained on the first tick, was thrown away as exhausted and started again every tick, and the player circled the goal until the rockets ran out. It now floods from the player's position as well, which is where the search started before the upstream rewrite.
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.
cabaletta's
26.3branch (cabaletta#5130) with the Meteor changes commit cherry-picked on top, same layout as the26.2and26.1branches here. The only conflict wasmod_version, now26.3-SNAPSHOT.Opened against
26.2because there is no26.3branch in this repo yet; feel free to retarget once it exists.Built with
./gradlew build, published to mavenLocal and tested in a 26.3 dev client together with the meteor-client 26.3 update (PR follows): Baritone loads, the mixin audit passes, and it initialises in a world and saves its cache.