Skip to content

generate block shapes for every supported version - #780

Merged
Purdze merged 4 commits into
masterfrom
block-shapes
Oct 25, 2026
Merged

Purdze merged 4 commits into
masterfrom
block-shapes

Conversation

@Purdze

@Purdze Purdze commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

type of change

  • Bug fix
  • New feature
  • Breaking change
  • Refactor / code cleanup
  • Performance improvement
  • Chore / tooling
  • Documentation

summary

fixes the collision items from #776 (light blocks, glass panes, open doors, mud, trapdoors, fences and gates, lightning rods) on every version other than 26.2, and lets pomme join servers older than 1.21.2 again.

  • only state-26.2.json had collision and outline shapes, so every other version fell back to full cubes for almost every block. the other 12 tables are now regenerated with just stategen from each version's own server jar, and the hand-written fallback shapes are removed: a table without shapes now fails to load instead of silently colliding wrong.
  • 1.21.2 appended particleStatus to client_information, and nothing stripped it for older servers, which kicked pomme right after login ("found 1 bytes extra"). it's now stripped in both the configuration and game phase for 1.21.1 and older.

reference

net/minecraft/server/level/ClientInformation.java (1.21.1 vs 1.21.3), tools/stategen/StateDump.java

testing

just ingame-test 34/34, including the new blocks/collision_shapes script: it lands the player on or past each reported block and checks the height. it also passes through the harness against 26.3, 1.21.11 and 1.20.1 servers, where master fails it (or, on 1.20.1, can't join). new byte-layout test for the client_information strip. 1.21.1 now joins, but a teleport there gets rubber-banded by the server, which is a separate translation issue.

@github-actions github-actions Bot added the bug Something isn't working label Oct 25, 2026
@Purdze
Purdze merged commit 009a47e into master Oct 25, 2026
15 checks passed
@Purdze
Purdze deleted the block-shapes branch October 25, 2026 21:35
@anmvc anmvc mentioned this pull request Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant