mojira.dev
MC-148217

Adding datapack with custom recipe breaks most ingame recipes if it has two or more colons (:)

If you add the following datapack to your datapacks folder in your world, you will find that almost all vanilla recipe fail to load because there is an error when loading this custom recipe, as it fails to parse the id because it has two colons in it->  : . Instead of just failing to load this recipe, it seems as if the game just stops loading recipes altogether when this happen. I believe this is also the case with advancements, and most things that deserialise from json.

 

It is worth noting that there are absolutely no logs about any errors that happened while loading recipes, there's no way you would even know it happened until you went to craft stuff.

Linked issues

Attachments

Comments 4

Generally speaking, there are multiple places in the Minecraft codebase where "invalid namespaced string" exceptions are not being caught, causing the rest of the loading process to crash and burn horribly.

This happens whenever any typo is made in an Identifier. The fact that this not only happens, but that there is absolutely no warning in the console about it is awful for debugging datapacks.

Still happens in 1.14.1 release.

Such issues also happen in advancement rewards when people accidentally refer to a function tag instead of a function.

Duplicate of MC-132705, which is a more general issue covering any invalid character.

Blake Redenius

(Unassigned)

Unconfirmed

Minecraft 1.14 Pre-Release 2

Retrieved