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

Disabling the enchantments component also prevents renaming items in anvil

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 24w12a, 24w13a, 1.20.5 Pre-Release 1
    • None
    • Community Consensus
    • Commands
    • Low
    • Platform

      To reproduce:

      1. Use the below command to give yourself a stone sword with the enchantments tag disabled.

      /loot give @s loot {"pools":[{"rolls":1,"entries":[{"type":"minecraft:item","name":"minecraft:stone_sword","functions":[{"function":"minecraft:set_components","components":{"!minecraft:enchantments":{}}}]}]}]}

      2. Attempt to rename the stone sword in an anvil.

      You cannot rename the stone sword in an anvil, despite the minecraft:custom_name component not being disabled. 

            Unassigned Unassigned
            CreeperMagnet_ CreeperMagnet_
            Votes:
            11 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: