怎么在网易租赁服做一个复活保护?[防死亡刷屏,无bug,可多人同用]
先创建计分板:scoreboard objectives add sw1
scoreboard objectives add sw2
scoreboard objectives add sw3
后面的命令:
循环:execute @a【scores={sw2=1..}】 ~~~ scoreboard players set @s fh 14
连锁有条件:execute @a【scores={sw2=1..}】 ~~~ scoreboard players remove @s sw2 1
连锁无条件:effect @a【scores={fh=1..}】 resistance 1 255 true循环scoreboard players set @a【scores={sw1=!2}】 sw1 1
连锁无条件scoreboard players set @e【type=player】 sw1 0
连锁无条件scoreboard players add @a【scores={sw1=1}】 sw2 1
连锁无条件scoreboard players set @a【scores={sw1=1}】 sw1 2循环:execute @a【scores={fh=0..}】 ~~~ scoreboard players remove @s fh 1
连锁无条件:scoreboard players reset @a【scores={fh=0}】 fh/title @a【scores={fh=12}】 actionbar
§c§l复活保护
§e▎§r▎▎▎▎▎▎▎▎▎▎▎
/title @a【scores={fh=11}】 actionbar
§c§l复活保护
§e▎▎§r▎▎▎▎▎▎▎▎▎▎
/title @a【scores={fh=10}】 actionbar
§c§l复活保护
§e▎▎▎§r▎▎▎▎▎▎▎▎▎
/title @a【scores={fh=9}】 actionbar
§c§l复活保护
§e▎▎▎▎§r▎▎▎▎▎▎▎▎
/title @a【scores={fh=8}】 actionbar
§c§l复活保护
§e▎▎▎▎▎§r▎▎▎▎▎▎▎
/title @a【scores={fh=7}】 actionbar
§c§l复活保护
§e▎▎▎▎▎▎§r▎▎▎▎▎▎
/title @a【scores={fh=6}】 actionbar
§c§l复活保护
§e▎▎▎▎▎▎▎§r▎▎▎▎▎
/title @a【scores={fh=5}】 actionbar
§c§l复活保护
§e▎▎▎▎▎▎▎▎§r▎▎▎▎
/title @a【scores={fh=4}】 actionbar
§c§l复活保护
§e▎▎▎▎▎▎▎▎▎§r▎▎▎
/title @a【scores={fh=3}】 actionbar
§c§l复活保护
§e▎▎▎▎▎▎▎▎▎▎§r▎▎
/title @a【scores={fh=2}】 actionbar
§c§l复活保护
§e▎▎▎▎▎▎▎▎▎▎▎§r▎
/title @a【scores={fh=1}】 actionbar
§b§l复活保护
§a▎▎▎▎▎▎▎▎▎▎▎▎

