#"Data pack validation failed!" almost every time I create a configured_feature/placed_feature pair

1 messages · Page 1 of 1 (latest)

young reef
#

I've had this issue the past few times I've created configured and placed features. I don't remember how I fixed it the last time; all I know is that it is either the configured feature or placed feature file invalidating the datapack (removed the files and pack passed validation.)

silent nightBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1751248683:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

grim gale
#

What's the full error in the logs?

young reef
#

.../placed_feature/mossy_clay_pool.json

  "feature": "scenic:mossy_clay_pool",
  "placement": [
    {
      "type": "minecraft:count",
      "count": {
        "type": "minecraft:uniform",
        "min_inclusive": 3,
        "max_inclusive": 6
      }
    },
    {
      "type": "minecraft:in_square"
    },
    {
      "type": "minecraft:heightmap",
      "heightmap": "WORLD_SURFACE"
    }
  ]
}```
#

One sec

#

Errors in element scenic:mossy_clay_pool:
java.lang.IllegalStateException: Failed to parse scenic:worldgen/configured_feature/mossy_clay_pool.json from pack file/scenic_datapack
at ....DELETED LONG BLOCK OF ERROR...
at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)
Caused by: java.lang.IllegalStateException: Not a string: ["minecraft:air"]
at knot//com.mojang.serialization.DataResult$Error.getOrThrow(DataResult.java:287)
at knot//com.mojang.serialization.DataResult.getOrThrow(DataResult.java:81)
at knot//net.minecraft.class_7655.method_56915(class_7655.java:303)
at knot//net.minecraft.class_7655.method_45122(class_7655.java:319)
... 36 more

#

let me send the configured feature

#

the only line with "minecraft:air" is under "cannot_replace": [ "minecraft:air" ],

#

which spyglass says is good

#

update: tried changing from a list of strings to just a single string, no dice

#

error log said "not a tag" with that attempt, so i changed it to "#minecraft:air", got this new one:
Feature order cycle found, involved sources: [Reference{ResourceKey[minecraft:worldgen/biome / scenic:scenic_plains]=net.minecraft.class_1959@7ffe3064}, Reference{ResourceKey[minecraft:worldgen/biome / scenic:scenic_forest]=net.minecraft.class_1959@485fc24f}]

grim gale
#

Good work solving that

#

So now, a feature order cycle error means you have two or more features that appear in two or more biomes, but you've listed them in different orders in one or more of those biomes

#

Which isn't allowed

#

Features must always be listed in the same order relative to each other

young reef
#

Okay that's very doable thank you

silent nightBOT
#
Question Closed

Your question, #1389054843821494392 ("Data pack validation failed!" almost every time I create a configured_feature/placed_feature pair), was resolved!

Original Message

#1389054843821494392 message

Duration open

25m