mojira.dev
MC-269824

Disabling the enchantments component also prevents renaming items in anvil

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. 

Comments 1

CreeperMagnet_

(Unassigned)

Community Consensus

Platform

Low

Commands

24w12a, 24w13a, 1.20.5 Pre-Release 1, 1.20.6, 1.21 Pre-Release 2, 1.21.4, 25w05a

Retrieved