mojira.dev
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

Linked issues

Attachments

Comments 17

i have the same problem 

@Costa: Please don't comment just to say 'me too'. Use the upvote function for that.

This issue occurs in 20w46a.

7 more comments

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.

Can confirm in 23w42a

Can confirm in 1.20.4

gaspoweredpick

(Unassigned)

Confirmed

Gameplay

Normal

UI

villager

20w22a, 1.16 Pre-release 7, 1.16 Pre-release 8, 1.16 Release Candidate 1, 1.16, ..., 1.20.4, 1.20.5, 1.21, 1.21.1, 1.21.3

Retrieved