Better data- and worldgen handling (1.21.1) - #5217
Merged
gustovafing merged 74 commits intoAug 29, 2026
Merged
Conversation
Co-authored-by: screret <68943070+screret@users.noreply.github.com> Co-authored-by: DilithiumThoride <lilithiumathena@gmail.com> Co-authored-by: Jurre Groenendijk <jurre@jilles.com>
# Conflicts: # src/generated/resources/assets/gtceu/lang/en_ud.json # src/generated/resources/assets/gtceu/lang/en_us.json # src/main/java/com/gregtechceu/gtceu/common/data/GTElements.java
# Conflicts: # src/main/java/com/gregtechceu/gtceu/core/mixins/RecipeManagerLateMixin.java
# Conflicts: # src/generated/resources/assets/gtceu/lang/en_ud.json # src/generated/resources/assets/gtceu/lang/en_us.json # src/generated/resources/data/c/tags/item/lenses/black.json # src/generated/resources/data/c/tags/item/lenses/brown.json # src/generated/resources/data/c/tags/item/lenses/cyan.json # src/generated/resources/data/c/tags/item/lenses/gray.json # src/generated/resources/data/c/tags/item/lenses/light_gray.json # src/generated/resources/data/c/tags/item/lenses/lime.json # src/generated/resources/data/c/tags/item/lenses/magenta.json # src/generated/resources/data/c/tags/item/lenses/orange.json # src/generated/resources/data/c/tags/item/lenses/pink.json # src/generated/resources/data/c/tags/item/lenses/yellow.json # src/generated/resources/data/forge/tags/items/lenses/black.json # src/generated/resources/data/forge/tags/items/lenses/brown.json # src/generated/resources/data/forge/tags/items/lenses/cyan.json # src/generated/resources/data/forge/tags/items/lenses/gray.json # src/generated/resources/data/forge/tags/items/lenses/light_gray.json # src/generated/resources/data/forge/tags/items/lenses/lime.json # src/generated/resources/data/forge/tags/items/lenses/magenta.json # src/generated/resources/data/forge/tags/items/lenses/orange.json # src/generated/resources/data/forge/tags/items/lenses/pink.json # src/generated/resources/data/forge/tags/items/lenses/yellow.json
gustovafing
requested changes
Aug 29, 2026
| return Registries.RECIPE_TYPE.location(); | ||
| } | ||
| return registryName; | ||
| } |
Member
There was a problem hiding this comment.
Just make a GT recipe type registry
| public static final Registry<ChanceLogic> CHANCE_LOGICS = makeRegistry(Keys.CHANCE_LOGIC); | ||
| public static final Registry<RecipeCapability<?>> RECIPE_CAPABILITIES = makeRegistry(Keys.RECIPE_CAPABILITY); | ||
|
|
||
| static { |
Member
There was a problem hiding this comment.
Just make a GT recipe type registry
gustovafing
approved these changes
Aug 29, 2026
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Clean up worldgen-type objects' registration (e.g. stop bypassing deferred registers) and chest loot injection
& fix datagen not running because of some duplicate language keys & unregistered biome modifier types.
Implementation Details
Step 1 was merging #5096 into a 1.21-based branch.
Step 2 was cherry-picking the language key fix (along with a few others) from #5139.
The fluid builder changes were primarily taken from #5021, as I did all the necessary changes there already. (removed duplicate fluid language keys & the duplicate translation key registration error)
AI Usage
Outcome
WAY, WAY cleaner handling of chest loot addition and feature placement registration
Datagen works again
no log spam from invalid reslocs
How Was This Tested
ran datagen
Additional Information
Supersedes #5214.
Potential Compatibility Issues
Anyone still using the removed placement modifiers will have to copy them. IDK that anyone is using them, though, as GT addons don't tend to have custom worldgen features (especially with special placement rules).