aqupa 4 лет назад
Родитель
Сommit
9373cca61b

+ 1 - 0
data/mini/functions/main/player_death.mcfunction

@@ -1,5 +1,6 @@
 # 玩家死亡后触发
 execute if score $mini_type mem matches 5 run function mini:phantom/player_failed
 execute if score $mini_type mem matches 201 run function mini:ass/player_death
+execute if score $mini_type mem matches 202 run function mini:rgb/player_death
 execute if score $mini_type mem matches 101 run function mini:diamond/player_death
 execute if score $mini_type mem matches 102 run function mini:trade/player_death

+ 8 - 0
data/mini/functions/rgb/player_death.mcfunction

@@ -0,0 +1,8 @@
+# 玩家死亡时由玩家自己触发
+
+tag @s remove mini_running
+gamemode spectator
+effect give @s night_vision 999999 0 true
+tp @s[team=!debugging] 1032.34 27.11 8032.84 461.44 28.30
+execute as @a at @s run function lib:sounds/error
+function mini:main/player_failed

+ 7 - 0
data/mini/functions/rgb/tick20.mcfunction

@@ -0,0 +1,7 @@
+# 切换计分板显示
+scoreboard players add $scb_switch rgb_sys 1
+execute if score $scb_switch rgb_sys matches 6.. run scoreboard players set $scb_switch rgb_sy 0
+
+execute if score $scb_switch rgb_sys matches 0..1 run scoreboard objectives setdisplay sidebar rgb_R
+execute if score $scb_switch rgb_sys matches 2..3 run scoreboard objectives setdisplay sidebar rgb_R
+execute if score $scb_switch rgb_sys matches 4..5 run scoreboard objectives setdisplay sidebar rgb_R