How to teleport after you've killed a villager?

How to teleport after you've killed a villager? - From above of plates with remains of various dishes left after festive dinner on table with cutlery and flowers

How to teleport after you kill a villager?

I am now making a map called 'The Lost Friends', and there is a challenge called 'Kill the Cute Villager to Win' but I want to teleport the player after he kills him.



Best Answer

You can track when a player kills a villager using the stat.killEntity.Villager objective-type:

/scoreboard objectives add KilledVillager stat.killEntity.Villager

And you'd run the following on a clock in order to teleport the player and then reset their score so that they aren't constantly teleported:

/tp @a[score_KilledVillager_min=1] X Y Z
/scoreboard players reset @a[score_KilledVillager_min=1] KilledVillager



Pictures about "How to teleport after you've killed a villager?"

How to teleport after you've killed a villager? - Dead Woman lying underneath a Car
How to teleport after you've killed a villager? - Unrecognizable Woman Sitting at Table after Chemical Experiment
How to teleport after you've killed a villager? - View of a Village in a Forest



Is there a way to teleport villagers?

Thanks to cheat console commands, Minecraft players can teleport just about any being in the game. To move mobs like animals, enemies, and villagers, the "/tp @e" or teleport entity command can be used to whisk them away to a designated location.

What happens if you kill villagers in Minecraft?

Villagers are attracted to pumpkins and doors, so put one down, then build a deep hole around it (as deep as you can). Then sit back and watch as the villagers fall to their doom! Kill the Iron Golem. Put a bunch of TNT around him and make it explode!



How To Teleport Back to YOUR 1v1 Map After You Fall OFF - Season 3 (Fortnite creative Tutorial)




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Rachel Claire, cottonbro, Ron Lach, Nejc Soklič