[1.16.4] Json file for the ores are missing the block properties
TelepathicGrunt opened this issue ยท 1 comments
Hello! Someone was running my mod called Blame with Occultism and found some errors came up about Occultism's ore blocks.
TelepathicGrunt/Blame#20
Here's an example entry of what Blame spit out in the logs:
****************** Blame Report 1.8.1 ******************
Failed to load resource file: occultism:worldgen/configured_feature/otherworld_tree_natural.json
Reason stated: No key Properties in MapLike[{"Name":"occultism:iesnium_ore_natural"}]
Possibly helpful hint (hopefully): If this is a worldgen JSON file, check out slicedlime's example datapack
for worldgen to find what's off about the JSON: https://t.co/cm3pJcAHcy?amp=1
Prettified JSON:
Unable to display JSON.
[12Jan2021 14:49:08.930] [Render thread/ERROR] [com.telepathicgrunt.blame.Blame/]: Failed to turn error msg into string. Please notify TelepathicGrunt (Blame creator) and show him this message: No key Properties in MapLike[{"Name":"occultism:iesnium_ore_natural"}]
What this is saying is that the JSON files is missing the properties entry for the block to use. First I checked out the iesnium_ore in code and it seems it has a property called "UNCOVERED"
Then I checked the JSON and it only says the block itself but not what property to use which is why the codec parsing exploded for this configuredfeature. If your ore was not generating in the world, this would be why I bet.
Basically, state should look like this to be valid JSON for Minecraft to parse for all of your blocks with properties. If there's more than one property, just add another line in the Properties entry.
"state": {
"Properties": {
"uncovered": "false"
},
"Name": "occultism:iesnium_ore"
},
Hope this helps!