Skip to content

Treat waterlogged blocks with a solid top as floors - #5152

Merged
leijurv merged 1 commit into
cabaletta:1.21.4from
EvModder:pr/waterlogged-solid-top
Oct 21, 2026
Merged

leijurv merged 1 commit into
cabaletta:1.21.4from
EvModder:pr/waterlogged-solid-top

Conversation

@EvModder

@EvModder EvModder commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

A waterlogged (aka "wogged") top slab supports the player exactly like a dry one: its water stays below the full top face. So pathing should treat it similarly.

  • canWalkOnBlockState checks isWater before SlabBlock, so the slab is only walkable as a water surface.
  • MovementDescend treats a landing on it as a water landing, discarding the fall because of the slab collision.
  • With assumeWalkOnWater, pillaring and parkour starting from one are refused.

This adds MovementHelper.isWaterloggedSolidTop (wogged, with a sturdy top face) and exempts those blocks from the four water checks above. They are walked on and landed on just like their dry form, and fall damage still counts, because the water doesn't reach the player standing on top.

Added WaterloggedSolidTopTest.

This supersedes #3326, which special-cases top slabs and stairs in canWalkOnPosition only. That PR doesn't cover fall landings, pillaring, or parkour, and it's for 1.17.1 (a bit stale).

Note: I'm sending this along with 1-5 other PRs; all discoveries and fixes I've had on a local fork, from my own experiences (the joys and sorrows) of using Baritone over the past few years, but I've decided to finally get around to submitting some of the better self-contained fixes upstream.

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.
@EvModder
EvModder marked this pull request as ready for review October 21, 2026 03:21
@leijurv
leijurv merged commit 5be1f56 into cabaletta:1.21.4 Oct 21, 2026
1 of 2 checks passed
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.

2 participants