How to recreate Limited Life in Minecraft(BEDROCK)
/clear @a bedrock 0 1Today i will show you how to make the commands from the series "Limited life" The commands contain having a set amount of time until you get kicked from the server and can gain time from eliminating others.
COMMANDS:
/scoreboard objectives add Kills dummy Kills
/scoreboard objectives add TimeLeft dummy
/scoreboard players add @a Kills 0
/scoreboard objectives setdisplay sidebar TimeLeft
/scoreboard players add @a TimeLeft 0
/scoreboard players set @a TimeLeft 28880
/scoreboard players remove @a TimeLeft 1
/give @p bedrock 1 0 {"item_lock":{"mode":"lock_in_inventory"}}
/clear @a bedrock 0 1
/execute at @e[type=item, name="Bedrock"] run scoreboard players add @p[r=50] Kills 1
/execute at @e[type=item,name=Bedrock] run scoreboard players add @p[r=50, scores={Kills=1}] TimeLeft 1200
/execute at @e[type=item,name=Bedrock] run scoreboard players remove @p[r=50, scores={Kills=1}] Kills 1
/kill @e[type=item,name=bedrock]
/execute as @e[scores={TimeLeft=0}] run tp ~ ~ ~
/kick @p RanOutOfTime