4
Help? Getting a "Not a JSON object" error on vanilla files for a world gen Datapackbuild
I'm trying to make an overhaul to upper cave generation, but I keep coming up on the same impass; none of my configured_feature files want to load.
Does anyone know what the issue might be? Some of the features listed are untouched vanilla features, like "minecraft:disk_clay". People who've experienced this issue before; what was your workaround?
Thanks.
Error code example:
[10:15:02] [Render thread/ERROR]: Feature: Not a JSON object: "stoo_uppercaves:cave_floor_dirt"; Not a JSON object: "stoo_uppercaves:cave_ceiling_cobweb"; Not a JSON object: "minecraft:disk_gravel"; Not a JSON object: "minecraft:disk_clay"; Not a JSON object: "minecraft:disk_sand"; Not a JSON object... etc.
This goes on for awhile.
This goes on for awhile.
Does anyone know what the issue might be? Some of the features listed are untouched vanilla features, like "minecraft:disk_clay". People who've experienced this issue before; what was your workaround?
Thanks.
Create an account or sign in to comment.
3
2
Usually when I run into this, it's because one of my custom features has an error that makes the JSON file unparseable (or because I'm referencing something that doesn't exist). Essentially, the parser hits an error which has a side effect of triggering "not a JSON object" errors for everything that follows the problematic item. There's usually (but not always) a message in the debug log following all the "not a JSON object" lines that tells you what actually kicked off the error string.
1
That's a good place to start, thanks!
Edit: Found this:
[14:33:59] [Render thread/ERROR]: Error loading registry data: No key Properties in MapLike[{"Name":"minecraft:lava"}]
I'll try solving this and try again, hopefully that fixes everything!
Edit: Found this:
[14:33:59] [Render thread/ERROR]: Error loading registry data: No key Properties in MapLike[{"Name":"minecraft:lava"}]
I'll try solving this and try again, hopefully that fixes everything!
2
That's actually an easy one. (I've run up against it a few times, myself.) :)
You've presumably got a reference to lava in the JSON file that looks something like this:
"state": {
"Name": "minecraft:lava"
}
What you need is:
"state": {
"Properties": {
"level": "0"
},
"Name": "minecraft:lava"
}
Definining level as 0 lets the game know it's a *source* lava block.
You've presumably got a reference to lava in the JSON file that looks something like this:
"state": {
"Name": "minecraft:lava"
}
What you need is:
"state": {
"Properties": {
"level": "0"
},
"Name": "minecraft:lava"
}
Definining level as 0 lets the game know it's a *source* lava block.