KubeJS

KubeJS

69M Downloads

Recipe ID changes between restarts

andriihorpenko opened this issue ยท 1 comments

commented

Minecraft Version

1.19.2

KubeJS Version

1902.6.1-build.324

Rhino Version

1902.2.2-build.268

Architectury Version

6.5.85

Forge/Fabric Version

Forge 43.2.17

Describe your issue

After updating to KubeJS 6.1, something has happened to recipe ID generation. The thing is that it may change between restarts, potentially breaking mods depending on them (AE2 with its Encoded Patterns). I know I can set an ID myself, but I have over 500 unique recipes and it's impossible to assign a new ID to every recipe I have. There is no issue with KubeJS 6.0 whatsoever.

[A] Before restart:
image

[B] After restart:
image

Note that recipe [A] seems to be the correct one as my two other servers also have that ID, but recipe [B] has some other ID, and may eventually get back to recipe [A] ID after a few restarts.

Recipe script:

// priority: 0

ServerEvents.recipes(event => {

    event.shaped('custom:lead_plate', [
        'h',
        'i',
        'i'
    ], {
        h: Item.of('immersiveengineering:hammer'),
        i: 'immersiveengineering:ingot_lead'
    }).damageIngredient(Item.of('immersiveengineering:hammer'), 2)

})

Crash report/logs

No response

commented

Resolved with these two commits: dc3de4c 423fe2d