Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-177337

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 20w14a, 20w15a, 20w16a
    • None
    • Confirmed
    • Items

      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

            Unassigned Unassigned
            TriWonder81 [Mod] Chandler
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: