i am making a battle royale minigame. I added team system for it. it works by giving the same score in 'team_number' scoreboard for players in the same team.
every player also have unique player_id (just score in player_id scoreboard). After player dies he goes into a spectator mode and summon a death box (with items he had) [chest_minecart]. This death box copies this player scores (player_id and team_number) to own scoreboards (death_box_team and death_box_player_id). I want to make respawning teammates (something like reboot vans in fortnite or repawn beacons in apex). I can set the timer for player wich dies.
But how to check:
-
If player clicked on death box (tried with advancements but idk how to check other things than just interacting)
-
Player wich interacted with death box has the same score on team_number as chest_minecart on death_box_team
3.Player wich interacted with death box has player_knocked score set to 0 -
How to check if player timer is more than 1.. when teammate tries to grab his card/banner (problem is in connecting a chest_minecart that is clicked with player)
-
How to give a player with same score on player_id as chest_minecart on death_box_player_id, tag or score
I have been trying to do this for half a day and i have no clue how to