Skip to content

Make KubeJS registration assume gtceu namespace unless otherwise specified#4428

Closed
screret wants to merge 4 commits intoGregTechCEu:1.21from
screret:sc/make-kubejs-registry-namespace-assume-gt
Closed

Make KubeJS registration assume gtceu namespace unless otherwise specified#4428
screret wants to merge 4 commits intoGregTechCEu:1.21from
screret:sc/make-kubejs-registry-namespace-assume-gt

Conversation

@screret
Copy link
Copy Markdown
Contributor

@screret screret commented Jan 6, 2026

What

Make registering GT-related things (materials, elements, machines, GT recipe types..) with KubeJS use the gtceu namespace (instead of kubejs), unless otherwise specified.

Implementation Details

A single mixin to detect KubeJS applying the implicit namespace and some methods to mutate the builder's resource location based on that information.

Outcome

Adding GT things with KubeJS uses the gtceu namespace by default, like in 1.20.

Additional Information

if yall can think of less wordy names for the methods go for it, you can push to the PR branch

@screret screret requested a review from a team as a code owner January 6, 2026 14:29
@github-actions github-actions bot added the 1.21 label Jan 6, 2026
…l state, by clearing it if the parsing didn't go through the string path
"client.BiomeColorsMixin",
"client.BlockModelMixin",
"client.ClientLevelAccessor",
"client.FaceBakeryMixin",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This shouldn't be re-ordered, that would need to be a separate PR

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Intellij just did that I didn't touch it

@Reabstraction
Copy link
Copy Markdown
Contributor

Closing due to duplicate effort; we can always reopen and merge if the current implementation is found flawed

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.

2 participants