How to create friend or foe series in Minecraft(BEDROCK)

Channel:
Subscribers:
1,440
Published on ● Video Link: https://www.youtube.com/watch?v=BlMvDLptboo



Category:
Guide
Duration: 3:08
83 views
2


Today i will show you how to make it so a player has 10 lives once dying all 10 they will be kicked from the server.
COMMANDS:
/scoreboard objectives add deaths dummy Deaths
/scoreboard objectives setdisplay sidebar deaths

scoreboard players add @a[l=0,lm=0] deaths 1
xp 1l @a[l=0]

/tp @p[scores={deaths=10}] ~ 2 ~
/kick @p
OR
/tp @p[scores={deaths=10}] ~ 2 ~
/game mode adventure @p
/effect @p invisibility 1000 100 true
/effect @p regeneration 100000 200 true