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
Put a lodestone block at XYZ: 35, 56, 4 in the overworld:
/setblock 35 56 4 minecraft:lodestone replace
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
Destroy the lodestone
→ ❌ Notice how the compass in the villager trade interface still points to where the lodestone used to beBuy 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
Linked issues
relates to 1
Attachments
Comments 0
No comments.