KubeJS (Old)

KubeJS (Old)

3M Downloads

Block.missing_mappings and Item.missing_mappings doesn't seem to work

Waterspark63 opened this issue ยท 0 comments

commented

Minecraft Version

1.18.2

KubeJS Version

1802.5.5-build.569

Rhino Version

1802.2.1-build.255

Architectury Version

4.11.93

Forge/Fabric Version

Forge 40.2.4

Describe your issue

Linked Issue in Discord

While trying to setup handling for moving from one naming scheme to another within Kubejs Scripts, I was trying to figure out how to use the startup OnForgeEvent to remap missing blocks/items to new ones, which while working with ArugChief, it eventually was figured out that I couldn't use OnForgeEvent to remap missing blocks/items, as it required using OnGenericForgeEvent to work correctly, which isn't present in 1.18.2.

It was then noticed that within the code of Kubejs, block and item both had a kubejs event registered as 'block/item.missing_mappings' Line that seems to setup the events, It's also listed in the event list on the wiki and after playing with it, we figured out that in any folder (startup, server, and client_scripts doesn't work), the event doesn't seem to fire/be caught at all, using the following test:

onEvent("block.missing_mappings", event => {
    
    console.log("Block Missing Mappings!");
    console.log(JSON.stringify(event));
    
});
onEvent("item.missing_mappings", event => {
    
    console.log("Item Missing Mappings!");
    console.log(JSON.stringify(event));
    
});

The event seems functional within the code, from what little I could understand and trace back, but something isn't catching the event being fired, or kubejs itself isn't firing it's own side for it. This has been tested in a completely new environment with nothing but kubejs. As the functionality should be there, but doesn't seem to be working, is it possible to get it fixed, even with it being a older version? Thank you for your time. Also sorry for the length.

Crash report/logs

No log, as there is nothing logged to any file.