Mojira Archive
MC-177337

Lodestone compasses in custom villager trade interfaces don't update properly

The bug

I set a custom villager trade with a lodestone compass, and when the lodestone was destroyed, the compass did not deactivate and still pointed to where the lodestone block used to be.

How to reproduce

  1. Put a lodestone block at XYZ: 35, 56, 4 in the overworld:
    /setblock 35 56 4 minecraft:lodestone replace
    
  2. Use the following command in a command block:
    /summon villager ~ ~1 ~ {VillagerData:{profession:farmer,level:99,type:plains},Invulnerable:1,PersistenceRequired:1,Silent:1,NoAI:1,CustomName:"\"compass\"",Offers:{Recipes:[{buy:{id:emerald,Count:1},sell:{id:compass,Count:1,tag:{LodestonePos:{X: 35, Y: 56, Z: 4},LodestoneDimension:"minecraft:overworld"},maxUses:9999999}}]}}
    

    Notice how the compass in the villager trade interface points to the lodestone

  3. Destroy the lodestone
    Notice how the compass in the villager trade interface still points to where the lodestone used to be
  4. Buy the compass from the villager
    Notice how the compass has updated in both your inventory and the villager trade interface and no longer points to any location

Won't Fix

[Mod] Chandler

2020-04-04, 12:54 AM

2020-04-22, 10:40 AM

2020-04-22, 10:40 AM

1

1

Confirmed

Items

20w14a, 20w15a, 20w16a

-