mojira.dev
MC-269066

Item modifier cannot remove `custom_name`

 

 

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?)

Related issues

Attachments

Comments

migrated
[media]
[MOD] Greymagic27

Please attach the datapack used to reproduce this issue

AgentM

The attached item modifier should suffice no?

[Mod] turbo

No, we need a complete minimal setup datapack, not something we have to create ourselves.

AgentM

It seems this happens also for the `custom_data` component.

AgentM

Datapack has been attached. for convenience sake.

AgentM

gegy

Confirmed

Platform

Normal

Data Packs

24w09a

24w10a

Retrieved