Hi, i'm wondering if there is a way to keep a villager in place. I think the NBT noAI does this, but it doesn't allow the villager to look around or make sounds. I want to make it so the villager is exactly the same except it just can't move. I could use barriers, but for what i'm doing, I only want to do it as a last resort. Does anyone know how to do this with commands?
Rollback Post to RevisionRollBack
Monster Control: the adventure map for minecraft java edition. A map that has been in production for 3 and a half years.
The Meaning of Life, the Universe, and Everything.
I'm not completely sure, but if you give a villager a effect of slowness, like /effect @e [type=Villager] 255 99999 or the other way around, it will make the villager extremly slow, dont know if the villager doesn't walk around though
Another fun thing you can do is simply set a repeat and always active command block to /testfor to check that villager's coordinates with radius that defines only one block, and a second command block which should be powered by the previous command block. Set this second command block to /tp so that it teleports that villager onto that spot. well you actually need an inverter between these blocks so that when the villager leaves the radius, command block remits the signal, inverter emits the signal and powers the second command block.
REFER TO THE IMAGE!!!
Sorry for the diagram, I'm kinda eccentric with these things!!!