mojira.dev
MC-196068

"Feature: Not a JSON object:" when referencing a feature in a configured_feature JSON file

While attempting to generate a forest using the vanilla method of declaring trees as JSON objects and then referencing them using the "features:" tag and generating them that way, I encountered a pretty massive issue. it appears that configured_features JSON files cannot reference other features at all. upon loading the file, you're greeted with

"Feature: Not a JSON object:(Namespace here)"

I tested this both with my custom generation and with vanilla files with only the namespaces changed. I've tested this with custom dimensions and biomes I've known to be working perfectly before changing this issue. I will include my datapack and the configured_features file below.

 

Attachments

Comments 7

Minecraft expects an object (curly brackets), but is given a string. Using a 'simple_random_selector' with only one object provides an awkward workaround.

Can also confirm for 1.16.2-pre1

can confirm for release 1.6.2 and this data pack which was working as of pre3:

[media]

. Has errors:

Carver: Not a JSON object: null; Not a JSON object: "randomggames:cave"
Structure start: Not a JSON object: null; Not a JSON object: "randomggames:stronghold"; Not a JSON object: "randomggames:mineshaft"

Can confirm for 1.16.3, I'm having this error with Minecraft's own json features.

Can confirm in 21w18a.

This may have been fixed when placed features were introduced in 1.18 pre-1. I can't replicate the issue in any version above 1.18.

Zachary Perl

(Unassigned)

Confirmed

Platform

Low

Custom Worlds

20w30a, 1.16.2, 1.16.3, 1.16.5, 21w13a, 21w18a, 1.17 Release Candidate 1

1.18 Pre-release 1

Retrieved