Hi ! I tried many things but I can't figure out how to do it.
I'm making a map with 4 teams, and I'd like to create a respawn cage, to make the players wait a few seconds before respawning.
I tried many things with objective stat.deaths which reset itself but I can't figure out how to reset it for only one player. If there are two players in the cage, they both got their objective set to 0.
How would you do that ? I can select players with coordinates and team, but I want them to be in the same respawn cage and wait for the same time.
The Meaning of Life, the Universe, and Everything.
Join Date:
9/2/2014
Posts:
54
Member Details
Ohhh Tricky one, loving it. SO!
First you make an Objective that counts the players' deaths. Don't use Stats its pointless, use "deathCount" instead(same thing).
Now, put a Clock that tests when a player has 1+ deathCount. And teleport him to the "CAGE"
Add 2 more Dummy objective with the name Time and Wait.
Put near the cage:
-1 Clock that BEFORE their death count goes to 0, makes their Wait score to 1.
-1 Clock that sets their death count to 0.
/scoreboard players set @a[x,y,z,r,score_deaths_min=1] deaths 0
[!] Change X,Y,Z with the cords of the cage and put R as a radius of the middles of the cage(depends on the size)
-
-1 Clock that adds every 1 Second +1 Score at the Objective "Time" of all players with score of Wait=1
/scoreboard players add @a[score_Wait_min=1] Time 1
And finnaly, put a teleport command that triggers some other commands
/tp @p[score_Time_min=60] X Y Z
(TRIGGERS WITH COMPARATOR)
/scoreboard players set @p[score_Time_min=60] Wait 0
/scoreboard players set @p[score_Time_min=60] Time 0
[!] Change X Y Z with the cords of yours.
[!] Change the Number 60 to the time you want (in seconds)
A bit complicated i know, but works just fine, Add some /setblock commands to make sure it doesnt get stuck(which can happen in very rare circumstances)
Hi ! I tried many things but I can't figure out how to do it.
I'm making a map with 4 teams, and I'd like to create a respawn cage, to make the players wait a few seconds before respawning.
I tried many things with objective stat.deaths which reset itself but I can't figure out how to reset it for only one player. If there are two players in the cage, they both got their objective set to 0.
How would you do that ? I can select players with coordinates and team, but I want them to be in the same respawn cage and wait for the same time.
Thanks for your help !
" When I eat, it is the food that is scared "
-Ron Swanson, my Hero <3-
Ohhh Tricky one, loving it. SO!
First you make an Objective that counts the players' deaths. Don't use Stats its pointless, use "deathCount" instead(same thing).
Now, put a Clock that tests when a player has 1+ deathCount. And teleport him to the "CAGE"
Add 2 more Dummy objective with the name Time and Wait.
Put near the cage:
-1 Clock that BEFORE their death count goes to 0, makes their Wait score to 1.
-1 Clock that sets their death count to 0.
/scoreboard players set @a[x,y,z,r,score_deaths_min=1] deaths 0
[!] Change X,Y,Z with the cords of the cage and put R as a radius of the middles of the cage(depends on the size)
-
-1 Clock that adds every 1 Second +1 Score at the Objective "Time" of all players with score of Wait=1
/scoreboard players add @a[score_Wait_min=1] Time 1
And finnaly, put a teleport command that triggers some other commands
/tp @p[score_Time_min=60] X Y Z
(TRIGGERS WITH COMPARATOR)
/scoreboard players set @p[score_Time_min=60] Wait 0
/scoreboard players set @p[score_Time_min=60] Time 0
[!] Change X Y Z with the cords of yours.
[!] Change the Number 60 to the time you want (in seconds)
A bit complicated i know, but works just fine, Add some /setblock commands to make sure it doesnt get stuck(which can happen in very rare circumstances)
I wish i was helpful :I