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.
2024-03-24, 05:43 AM
2025-01-30, 06:06 AM
13
1
-