Architectury API (UNUSED)

Architectury API (UNUSED)

9M Downloads

[1.20.6] Neoforge fails to function during runCommonDatagen

Lyinginbedmon opened this issue ยท 3 comments

commented

I've created a fresh 1.20.6 workspace using the Architectury project generator for Fabric & Neoforge. Having followed the documentation guidelines to implement data generation, I am able to access the runCommonDatagen gradle task.

However, firstly I encounter an error related to the absence of a proper processResources call in the data generation procedure, causing the mod to be rejected due to an invalid version number defined in mods.toml using a placeholder. I amended this to a static value of 1.0.0 for the time being and repeated running the runCommonDatagen task.

This resulted in the following crash, which seems to be rooted in the Neoforge sub-project itself and not with any portion of my own code. As stated, this occurs even in a blank slate workspace.

Full crash report

commented

I am experiencing the exact same issue in 1.21, which is preventing me from running any world generation data gen tasks. Hopefully this is fixed soon!

commented

are you using the official Mojang mappings, or Yarn?

commented

Yarn