mojira.dev
MC-279810

It is not possible to disable enchantment related in pack.mcmeta

When you try to disable an enchantment in pack.mcmeta, it will be output in the log

Registry loading errors:
> Errors in registry minecraft:root:
>> Errors in element minecraft:enchantment:
java.lang.IllegalStateException: Unbound values in registry ResourceKey[minecraft:root / minecraft:enchantment]

pack.mcmeta content

{
"pack": {
"pack_format": 55,
"description": "
},
"filter": {
"block": [
{
"namespace": "minecraft",
"path": "advancement/*"
},
{
"namespalce":"minecraft",
"path":"enchantment/*"
}
]
}
}

Comments 3

Some IDs are required to exist by the game, or it completely breaks down. If you re-define the required IDs, disableing works fine.

I know, but just disabling the enchantment shouldn't have an effect, is it because the loot table is also implicated?

As I said, some IDs are required; a fallback ID, for example. That some IDs are required is not a bug, and therefor that disabling them and not re-defining them doesn't work is not a bug.

zChenX

(Unassigned)

Unconfirmed

(Unassigned)

1.21.4

Retrieved