1
How do I teleport people based off of their death?
I have been trying to create a map but I cannot figure out the redstone. So basically I need to know how to teleport someone based off of their deathCount in 1.9, but nothing I have tried has work! Please help!
Create an account or sign in to comment.
5
1
Just use /spawnpoint <selector> <x> <y> <z>.
if you want to make multiple levels e.g. lives use a dummy score or tag the player
if you want to make multiple levels e.g. lives use a dummy score or tag the player
1
You can hock this up on a repeating command block and add chain command blocks to it, this will be faster and grand you better performance overall.
1
once:
/scoreboard objectives add Death deathCount
/scoreboard objectives add Health health
On a clock:
/tp @a[score_Death_min=1,score_Health_min=1] # # #
/scoreboard players set @a[score_Death_min=1,score_Health_min=1] Death 0
This way it will teleport you AFTER you respawn....
Then it will reset your score to 0, so you can trigger it again when you die. (It goes automatically to 1)
/scoreboard objectives add Death deathCount
/scoreboard objectives add Health health
On a clock:
/tp @a[score_Death_min=1,score_Health_min=1] # # #
/scoreboard players set @a[score_Death_min=1,score_Health_min=1] Death 0
This way it will teleport you AFTER you respawn....
Then it will reset your score to 0, so you can trigger it again when you die. (It goes automatically to 1)
1
Can I use a different type of command block in 1.9 instead of a clock?
1
What you would do is testfor their death count, then have a comparator be activated if it reaches a certain amount. then the comparator activates another command block teleporting the person to the desired area.
So lets say they have 5 deaths, with that you want to tp them too 1 1 1 in the world.
you setup a command block to run constantly testing for the players death count of 5 then when someone hits that number they are teleported. This video will help you. https://www.youtube.com/watch?v=jsP6QjuAVng
So lets say they have 5 deaths, with that you want to tp them too 1 1 1 in the world.
you setup a command block to run constantly testing for the players death count of 5 then when someone hits that number they are teleported. This video will help you. https://www.youtube.com/watch?v=jsP6QjuAVng