KubeJS Crash when starting world when adding any worldgen structure_set
pietro-lopes opened this issue ยท 3 comments
Minecraft Version
1.20.1
KubeJS Version
2001.6.3-build.47
Rhino Version
2001.2.2-build.6
Architectury Version
9.1.12
Forge/Fabric Version
Forge 47.1.76
Describe your issue
how to reproduce:
grab any valid structure_set and add any of those:
- low priority data on server event
- high priority data on server event
- data folder to act as datapack
example below from original minecraft files
{
"placement": {
"type": "minecraft:random_spread",
"salt": 20083232,
"separation": 8,
"spacing": 24
},
"structures": [
{
"structure": "minecraft:ancient_city",
"weight": 1
}
]
}
Crash report/logs
The root cause seems to be KubeJS returning the resource for both namespace:worldgen/structure_set/
and namespace:worldgen/structure/set
, however I cannot find any code in KubeJS that replaces _ with /.
also happens to noise_settings
> Errors in registry minecraft:worldgen/noise:
>> Errors in element sgjourney:settings/abydos:
java.lang.IllegalStateException: Failed to parse sgjourney:worldgen/noise_settings/abydos.json from pack KubeJS Resource Pack [data]
Should be fixed in 5ee42cc