Skip to content

Simplify material block models and fix issues they had with shaders#4532

Merged
Ghostipedia merged 11 commits intoGregTechCEu:1.20.1from
screret:sc/simplify-material-block-models
Feb 4, 2026
Merged

Simplify material block models and fix issues they had with shaders#4532
Ghostipedia merged 11 commits intoGregTechCEu:1.20.1from
screret:sc/simplify-material-block-models

Conversation

@screret
Copy link
Copy Markdown
Contributor

@screret screret commented Feb 1, 2026

What

Make most material blocks use 'composite' models for rendering to fix translucency sorting issues.
Cleaned up how the models are actually generated while at it because it required that to be done.

Implementation Details

Most blocks don't create a copy of the parent model anymore & instead reference the parent directly in the block state JSON. Resource pack makers are still able to replace the models by replacing the block state JSON as well.

Outcome

Shaders shouldn't think frames are glass blocks anymore

How Was This Tested

No xray on ore/material blocks:
2026-02-04_15 37 13
2026-02-04_15 37 20
2026-02-04_15 37 35

Additional Information

See "How was this tested" section

Potential Compatibility Issues

Maybe some resource pack? I haven't seen any that change material blocks' models like this, though.

@screret screret requested a review from a team as a code owner February 1, 2026 22:23
@github-actions github-actions bot added the 1.20.1 label Feb 1, 2026
@Ghostipedia
Copy link
Copy Markdown
Member

need clarification on the 'bright red border' we added colored-selector highlighting to material/tier blocks before so if that got reverted that might be an issue and needs to be amended

This is infact intended behavior
image
image

@screret
Copy link
Copy Markdown
Contributor Author

screret commented Feb 4, 2026

@Ghostipedia added it back

@Ghostipedia Ghostipedia added type: bugfix General bug fixes Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. labels Feb 4, 2026
@Ghostipedia Ghostipedia enabled auto-merge (squash) February 4, 2026 21:54
@Ghostipedia Ghostipedia merged commit 2c5fe8a into GregTechCEu:1.20.1 Feb 4, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.20.1 Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. type: bugfix General bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants