KubeJS (Old)

KubeJS (Old)

3M Downloads

java.util.NoSuchElementException thrown for recipes from Wood Good (everycomp), artifacts, and iron's spells.

DraconicMentalist opened this issue ยท 1 comments

commented

Minecraft Version

1.21.1

KubeJS Version

KubeJS 2101.7.1-build.181

Rhino Version

2101.2.7-build.74

Architectury Version

13.0.8

Forge/Fabric Version

Neoforge 21.1.186

Describe your issue

I installed this today with the intention of editing recipes for my modpack. Upon loading, KubeJS threw 125-or-so internal errors relating to the Macaw's Doors Compat items provided by the Wood Good compatibility mod, largely from Regions Unexplored.

I uninstalled Wood Good, and after reloading found that artifacts and iron's spells throw similar errors.

I've attached the logs for both attempts to this bug report.

I've also tried:

  • Rolling back to a previous version of KubeJS, and confirm this still occurs in build 131.
  • Switching from EMI to JEI.
  • Minimal Reproduction Project (Mixed results, will need more experimentation)

I've been able to eliminate the errors for now by:

  • Uninstalling Macaw's Doors (not ideal)
  • Installing Patchouli for Iron's Spells (one of the errors thrown was about the optional patchouli dependencies.)
  • Uninstalling Artifacts Crafting (whatever, I can implement my own recipes.)

For posterity, this is the contents of my server script:

console.info('Hello, World! (Loaded server example script)')

ServerEvents.recipes(event => {
  console.log('Hello! The recipe event has fired!')
})

The error seems to only be thrown when ServerEvents.recipes is called.

server_macaw-compat-fail.log
server-artifacts-irons-spells-fail.log

Crash report/logs

No response

commented

This is KubeJS reporting other mods' recipes that are broken and not loading. This is not an issue and just because it's logging them doesn't mean anything is worse than it was before. A lot of these issues are caused by compatibility mods not checking whether mods they are adding recipes for are installed.

If you are not the mod dev you can prompt them to setup proper data load conditions or safely ignore it.