Shopkeepers

Shopkeepers

2M Downloads

Is there a way of tping shopkeepers using commands?

Guggge opened this issue ยท 4 comments

commented

Im trying to move a villager with commands using skript but i cant manage to find the right command to tp the villager.

commented

There a ticket open for this, but I might reject it: #938

May I ask what your use case is for this exactly?

commented

we found another way of doing it but we where trying to make like a wandering market of some sort where we would tp the shopkeeper around with commands so the wagon could move with it but we found another way.

commented

we found another way of doing it but we where trying to make like a wandering market of some sort where we would tp the shopkeeper around with commands so the wagon could move with it but we found another way.

How did you end up solving this in your case?
Be aware that the plugin has some internal assumptions about the mob not moving into other chunks without it being aware of this, because the plugin reacts to chunk loading and unloading events to spawn and despawn the shop mobs (it keeps an internal mapping of which chunks contain which shopkeepers). So simply teleporting the mobs without the plugin being aware of this will likely break stuff. When you use the "move" option inside the editor everything works correctly because the plugins also updates its internal mapping.

Maybe using Citizen shopkeepers could be an option, since the Shopkeepers plugin reacts to respective NPC teleport events and updates its internal mapping accordingly.

commented

we added another entity that we can tp and when we click on the entity they open shopkeeper command runs. And the real shop keeper is just hidden under the map

we didnt want to use citizens because thats just another plugin and we wanted a fix with the plugins we already had