The bug
When a compass or clock trade with a librarian villager would be successful, the output clock or compass is functional. This only works if you are able to buy the clock or compass.
How to reproduce
Obtain emeralds and summon a villager with a compass and a clock trade, using the command:
/summon minecraft:villager ~ ~ ~ {NoAI:1b,Offers:{Recipes:[{buy:{id:"minecraft:emerald",Count:1b},sell:{id:"minecraft:compass",Count:1b},maxUses:99999},{buy:{id:"minecraft:emerald",Count:1b},sell:{id:"minecraft:clock",Count:1b},maxUses:99999}]}}
Select either the compass or clock trade and look at the compass/clock within the trading output slot
❌ The compass or clock in the output slot functions
Linked issues
relates to 2
Attachments
Comments 17
Please only add comments if you provide new information to the report, just saying "unintentional" is not helpful in any aspect.
Can confirm in 1.19.2. Here are some steps to reproduce this issue.
Steps to Reproduce:
Obtain some emeralds and summon a villager with a compass and a clock trade.
/summon minecraft:villager ~ ~ ~ {NoAI:1b,Offers:{Recipes:[{buy:{id:"minecraft:emerald",Count:1b},sell:{id:"minecraft:compass",Count:1b},maxUses:99999},{buy:{id:"minecraft:emerald",Count:1b},sell:{id:"minecraft:clock",Count:1b},maxUses:99999}]}}
Select either the compass or clock trade and look at the compass/clock within the trading output slot.
Take note as to whether or not compasses/clocks function in villager trading output slots.
Relates to MC-186797