I have an entity_type tag defined thusly (Mojang mappings):
public static TagKey<EntityType<?>> SINKABLE_BOATS = TagKey.create(Registries.ENTITY_TYPE, locate("sinkable"));
which I check with this code:
if (!getType().is(UnseaworthyCommon.SINKABLE_BOATS)) return;
The tag is defined in src/main/resources/data/unseaworthy/tags/entity_type/sinkable.json which contains
{
"values": [
"#c:boats"
]
}
This part works fine! It matches #c:boats entities as expected.
However, if I try to modify the tag with a data pack, it doesn't seem like the tag contents are updated.
My data pack has
mypack/data/unseaworthy/tags/entity_types/sinkable.json which contains
{
"values": [
"#c:boats",
"ecologics:azalea_boat",
"ecologics:coconut_boat",
"ecologics:flowering_azalea_boat",
"ecologics:walnut_boat",
"ecologics:azalea_chest_boat",
"ecologics:coconut_chest_boat",
"ecologics:flowering_azalea_chest_boat",
"ecologics:walnut_chest_boat"
],
"replace": true
}
but when I test in game, the additional boats don't appear to be matched by the tag. Also, when I dump the entity_tags registry with KubeJS, my tag doesn't appear in the output.
What am I doing wrong here?