Skip to content

Fix KubeJS not working with the recipe type registry change - #5360

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

Fix KubeJS not working with the recipe type registry change#5360
gustovafing merged 6 commits into
GregTechCEu:1.21from
screret:sc/better-datagen-and-worldgen-handling/1.21-followup

Conversation

@screret

@screret screret commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

What

Added the GT machine recipe type builder to KJS's vanilla recipe type builder registry & fixed it

removed the unused GTRecipeType value transformer.

Implementation Details

AI Usage

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

Outcome

You can use the vanilla recipe type registry for registering GT machine recipe types. Registering custom recipe types or using GT recipe types with custom machines also works again.

How Was This Tested

Used the following script (in additional information section). All variants work.

Additional Information

The script:

GTCEuStartupEvents.registry('recipe_type', event => {
    event.create('kubejs:test_1')
        .category('test')
        .setEUIO('in')
        .setMaxIOSize(0, 1, 2, 3)
        .setItemSlotOverlay(IO.IN, 0, GTGuiTextures.SOLIDIFIER_OVERLAY)
        .setProgressBar(GTGuiTextures.PROGRESS_ARROW)
        .setSound(GTSoundEntries.COOLING)
})

StartupEvents.registry('gtceu:recipe_type', event => {
    event.create('test_2')
        .category('test')
        .setEUIO('in')
        .setMaxIOSize(1, 2, 3, 0)
        .setProgressBar(GTGuiTextures.PROGRESS_ASSEMBLER)
        .setSound(GTSoundEntries.FURNACE)
})

GTCEuStartupEvents.registry('minecraft:recipe_type', event => {
    event.create('kubejs:test_3', 'gtceu:machine')
        .category('test')
        .setEUIO('in')
        .setMaxIOSize(2, 3, 0, 1)
        .setProgressBar(GTGuiTextures.PROGRESS_CRYSTALLIZATION)
        .setSound(GTSoundEntries.JET_ENGINE)
})

StartupEvents.registry('recipe_type', event => {
    event.create('test_4', 'gtceu:machine')
        .category('test')
        .setEUIO('in')
        .setMaxIOSize(3, 0, 1, 2)
        .setProgressBar(GTGuiTextures.PROGRESS_MAGNET)
        .setSound(GTSoundEntries.MOTOR)
})

@screret
screret requested a review from a team as a code owner August 29, 2026 13:46
@github-actions github-actions Bot added the 1.21 label Aug 29, 2026
@screret screret changed the title Sc/better datagen and worldgen handling/1.21 followup Fix KubeJS not working with the recipe type registry change Aug 29, 2026
@gustovafing
gustovafing merged commit b6d626b into GregTechCEu:1.21 Aug 29, 2026
3 of 5 checks passed
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