Item Modifier: no_custom_name.json
{
"function": "set_components",
"components": {
"!minecraft:custom_name": {}
}
}
Using this item modifier, it is not possible to remove a custom name from an item.
1. Try give yourself an item with a custom name:
/give @p stick[custom_name='"Custom"']
2. Try to delete the custom name
/item modify entity @s weapon.mainhand test:no_custom_name
3. No error, it succeeds. But the name remains.
(relates to: MC-128225, perhaps?)
Please attach the datapack used to reproduce this issue