mojira.dev
MC-223385

LodestonePos NBT in custom villager trade gets removed from compass after trading in some cases

Place a Lodestone at 0 64 0. Don't break it. Summon the villagers. Trade.

With LodestoneTracked set to true, the coordinates will be removed from the compass after a trade. This does not work as expected.

/summon villager ~ ~ ~ {VillagerData:{profession:"minecraft:nitwit"},Offers:{Recipes:[{buy:{id:"minecraft:emerald",Count:1b},sell:{id:"minecraft:compass",Count:1b,tag:{LodestoneDimension:"minecraft:overworld",LodestoneTracked:1b,LodestonePos:{X:0,Y:64,Z:0}}}}]}}

With LodestoneTracked set to false, the coordinates will be kept on the compass after a trade, even if the lodestone is broken. This works as expected.

/summon villager ~ ~ ~ {VillagerData:{profession:"minecraft:nitwit"},Offers:{Recipes:[{buy:{id:"minecraft:emerald",Count:1b},sell:{id:"minecraft:compass",Count:1b,tag:{LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:0,Y:64,Z:0}}}}]}}

With LodestoneTracked unset, the coordinates will be removed from the compass after a trade. I suspect that this works as intended.

/summon villager ~ ~ ~ {VillagerData:{profession:"minecraft:nitwit"},Offers:{Recipes:[{buy:{id:"minecraft:emerald",Count:1b},sell:{id:"minecraft:compass",Count:1b,tag:{LodestoneDimension:"minecraft:overworld",LodestonePos:{X:0,Y:64,Z:0}}}}]}}

Comments 2

We do not have enough information to find the cause of this issue.

Please record a video of this happening and attach it to this report.
If you are on Windows, you can use Windows+Alt+R to open a built-in app for recording game footage.
If you are on Mac (Mojave or later), you can use Shift+Command+5 to open a built-in app for recording your screen.
In case you don't have a program to record videos, we recommend using the free recording software OBS.
In case the resulting video file is too large to be uploaded to the bug tracker directly, please upload it elsewhere (e.g. as unlisted video on YouTube) and link to it here.

This issue is being temporarily closed as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Whatever this was, does not seem to be present in the current snapshots or versions of 1.17. I can no longer replicate this issue. Case closed?

Ohtacaro

(Unassigned)

Unconfirmed

(Unassigned)

1.16.5, 21w15a

Retrieved