4

Help? Getting a "Not a JSON object" error on vanilla files for a world gen Datapackbuild

Suspicious Stoo10/1/20 9:09 am
4 emeralds 1.9k 3
10/1/2020 3:22 pm
Rainbeau_Flambe
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.

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.

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.
Posted by avatar
Suspicious Stoo
Level 53 : Grandmaster Llama
261

Create an account or sign in to comment.

3

2
10/01/2020 1:06 pmhistory
Level 46 : Master Wizard
Rainbeau_Flambe
Rainbeau_Flambe avatar
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
10/01/2020 2:55 pmhistory
Level 53 : Grandmaster Llama
Suspicious Stoo
Suspicious Stoo avatar
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!
2
10/01/2020 3:22 pmhistory
Level 46 : Master Wizard
Rainbeau_Flambe
Rainbeau_Flambe avatar
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.
Planet Minecraft

Website

© 2010 - 2022
www.planetminecraft.com

Welcome