Skip to content

Simplify machine models#4800

Open
screret wants to merge 2 commits intoGregTechCEu:1.20.1from
screret:sc/simplify-machine-models
Open

Simplify machine models#4800
screret wants to merge 2 commits intoGregTechCEu:1.20.1from
screret:sc/simplify-machine-models

Conversation

@screret
Copy link
Copy Markdown
Contributor

@screret screret commented Apr 20, 2026

What

Simplify machines' model JSONs by not specifying properties that do not affect the actual model in any way.

Implementation Details

Approximately 75 lines of code changed, most of which were to add a , IS_FORMED to most utility functions in GTMachineModels.
The model parser assumes undefined properties to mean "any value". That's used to cut down 10 500 lines of JSON.

Outcome

Probably half a megabyte of final JAR file size saved.

How Was This Tested

The actual ingame models are the exact same before & after, as
Looked the same, I forgot to take screenshots.

Additional Information

Datagen produced ~450 file changes. I recommend ignoring those in the GitHub review UI before it tries to load all of them and your browser gives up.

screret added 2 commits April 20, 2026 22:22
…coalescing them into one

Done primarily by ignoring the `is_formed` property on multiblock (part)s
@screret screret requested a review from a team as a code owner April 20, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant