1

[URGENT] Hide And Seek Map Role Switching Is Broken

2very icey's Avatar 2very icey1/23/17 4:39 pm
1 emeralds 311 2
1/23/2017 7:03 pm
Greystalk's Avatar Greystalk
Hello,
My Hide And Seek map is supposedly being played by PopularMMOS today...and I have just noticed a HUGE issue, the automated role swapping system seems to be broken, as I can't swap the teams...to do the teams themselves I am using tags on the players, I want to know how I would detect when a player with the tag of Hider dies...In case this is important: I already have a system to actually perform the swap...basically I do as follows:

  • 1. Give the player a temporary tag(/scoreboard players tag @p[tag=Seeker] add SeekerD)
  • 2. kill @e[tag=Hider]
  • 3./scoreboard players tag @p[tag=SeekerD] add Hider
  • 4./scoreboard players tag @p[tag=SeekerD] remove SeekerD
  • 5./scoreboard players reset @a deaths
  • 6.tp @a 23 4 17


This is the same for when the hider dies, however Anywhere it says "Seeker" it will say hider, and anywhere it said hider, it will say seeker
To sum it up, I need to detect when the player dies, and if the now dead player was the hider or the seeker...
Posted by 2very icey's Avatar
2very icey
Level 12 : Journeyman Mage
1

Create an account or sign in to comment.

2

1
01/23/2017 7:03 pm
Level 45 : Master Ranger
Greystalk
Greystalk's Avatar
set up a scoreboard objective like this

/scoreboard objectives add death stat.deaths

Then whenever a player dies, their score will increase by one. Then all you have to do is set up an execute command to do what you need.

/execute @a[tag=whatever,score_death_min=1] ~ ~ ~ /etc

Just don't forget to reset the score like this

/scoreboard players set @a[score_death_min=1] death 0
1
01/23/2017 5:23 pm
Level 12 : Journeyman Mage
2very icey
2very icey's Avatar
PLEASE
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome