Mojira Archive
MC-186849

Librarian trading output has functional clocks and compasses

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

  1. 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}]}}
  2. 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