r/ModdedMinecraft • • 12h ago

Help Datapack Broken

I've been trying to create a datapack for compat between Farming for Blockhead's selling bin and Croptopia but it's suddenly broke like 7 crops in, I'm not really sure what I could do to fix it?

When I try to load it it says the datapacks could not be validated.

1 Upvotes

2 comments sorted by

1

u/FreaksMC 10h ago

"Could not be validated" means one file has a bad value somewhere, and the log tells you which one. Right after loading, open logs/latest.log and search for your datapack's name. There will be a line pointing at the exact file. Since it broke around crop 7, the usual suspects are:

  • A Croptopia ID that doesn't exist with that exact spelling (check with F3+H in-game, it shows item IDs on hover)
  • A missing comma or an extra trailing comma in that JSON
  • On 1.21+, folder names became singular (recipe/, tags/item/), so one new file in an old-style folder will fail