Skip to content

Better data- and worldgen handling (1.21.1) - #5217

Merged
gustovafing merged 74 commits into
GregTechCEu:1.21from
screret:sc/better-datagen-and-worldgen-handling/1.21
Aug 29, 2026
Merged

Better data- and worldgen handling (1.21.1)#5217
gustovafing merged 74 commits into
GregTechCEu:1.21from
screret:sc/better-datagen-and-worldgen-handling/1.21

Conversation

@screret

@screret screret commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

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

  • No AI driven tools were used for this pull request.

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).

htmlcsjs and others added 30 commits July 13, 2026 20:56
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>
@screret
screret requested a review from a team as a code owner July 31, 2026 12:35
screret added 5 commits August 9, 2026 16:31
# 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 gustovafing changed the title Better data- and worldgen handling (1.21.1 edition) & Knuckles (New Funky Mode) (Featuring Dante From The Devil May Cry Series) Better data- and worldgen handling (1.21.1) Aug 29, 2026
return Registries.RECIPE_TYPE.location();
}
return registryName;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just make a GT recipe type registry

@gustovafing
gustovafing merged commit 6c14a4c into GregTechCEu:1.21 Aug 29, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.