Skip to content

KubeJS Generator machine type issues #2568

Description

@Deepacat

Checked for existing issues

  • I have checked for existing issues, and have found none.

Tested latest version

  • I have checked that this occurs on the latest version.

GregTech CEu Version

1.5.4

Minecraft Version

1.20.1

Recipe Viewer Installed

EMI

Environment

Singleplayer

Cross-Mod Interaction

No

Other Installed Mods

Gregtech community pack + gt 1.5.4

Expected Behavior

All tiers of a machine using the generator machine type in kubeJS registry are registered, and UI input slots are usable when using auto generated UI ( .recipeType('test_generator_recipe_type', true, true) )

Actual Behavior

Using this machine type for registered machines, causes extra or some machines to not be registered in weird cases (Setting LV, MV, and HV will cause LV to not be registered, while registering LV will do ULV, and LV)

Also using .recipeType('test_generator_recipe_type', true, true) (true, true) at the end of a recipeType to inherit a generated user interface from the recipe type leaves the input slot un-interactable, while you can still input to the generator and it functions via external means such as pipes or a hopper

Steps to Reproduce

Registry

GTCEuStartupEvents.registry('gtceu:recipe_type', event => {
    event.create('test_generator_recipe_type')
        .setEUIO('out')
        .setMaxIOSize(1, 0, 0, 0)
        .setProgressBar(GuiTextures.PROGRESS_BAR_ARROW, FillDirection.LEFT_TO_RIGHT)
        .setSound(GTSoundEntries.ARC)
        .setMaxTooltips(6)
})
GTCEuStartupEvents.registry('gtceu:machine', event => {
// Issue in 'generator' machine type
    event.create('test_generator', 'generator', GTValues.LV, GTValues.MV, GTValues.HV)
// No UI generated
        .recipeType('test_generator_recipe_type')
// UI generated, slots are not interactable in UI
        .recipeType('test_generator_recipe_type', true, true)
        .tankScalingFunction(tier => tier * 3200)
})`

Server (Recipes work fine)

ServerEvents.recipes(e => {
    e.recipes.gtceu.test_generator_recipe_type('kubejs:gtceu/test/coal_tag_burning')
        .itemInputs('#minecraft:coals')
        .EUt(-32)
        .duration(200)
    e.recipes.gtceu.test_generator_recipe_type('kubejs:gtceu/test/charcoal_burning')
        .itemInputs('minecraft:charcoal')
        .EUt(-32)
        .duration(200)
})

Additional Information

event.create('test_generator', 'generator', GTValues.LV, GTValues.MV, GTValues.HV)

javaw_BamJHENmWZ

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions