Skip to content

feat: extract block shape offsets - #54

Open
MegalithOfficial wants to merge 1 commit into
Pumpkin-MC:masterfrom
MegalithOfficial:feat/block-shape-offsets
Open

feat: extract block shape offsets#54
MegalithOfficial wants to merge 1 commit into
Pumpkin-MC:masterfrom
MegalithOfficial:feat/block-shape-offsets

Conversation

@MegalithOfficial

Copy link
Copy Markdown

Description

Pumpkin needs vanilla’s position-based block shape offsets for Pumpkin-MC/Pumpkin#2869. These values were previously written by hand in Pumpkin.

This adds shape_offset metadata directly to affected entries in blocks.json. The Extractor determines which blocks have an offset function and extracts the offset type, maximum horizontal offset and maximum vertical offset from the vanilla block implementation.

This currently extracts 39 blocks: 34 with XZ offsets and 5 with XYZ offsets. It also correctly extracts special limits such as 0.125 for pointed dripstone and sulfur spikes, and 0.1 vertical offset for small dripleaf.

I also removed an obsolete access-widener entry for markPosForPostprocessing. The method is already public in 26.2 under markPosForPostProcessing.

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