Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-269066

Item modifier cannot remove `custom_name`

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w10a
    • 24w09a
    • None
    • Confirmed
    • Data Packs
    • Normal
    • Platform

       

       

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

            gegy1000 [Mojang] Gegy
            m124367 AgentM
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: