When a compass has a lodestone tracker, the value of its item_name
component is ignored.
Repro:
Use the command:
/give @s compass[item_name="Origin",lodestone_tracker={}]
Hover the compass with your mouse cursor in the inventory.
Expected result: The compass should be named “Origin”
Actual result: The compass is named “Lodestone Compass”.
Environment
Windows 10
Duplicate of MC-276600, which is Working As Intended. Try using the minecraft:custom_name component.