Răsfoiți Sursa

总是不受火焰伤害;将传送到屏障改为空中

LTCatt 6 ani în urmă
părinte
comite
cca8787f4c

+ 1 - 0
data/ltw/functions/state/0/state_enter.mcfunction

@@ -8,6 +8,7 @@ scoreboard objectives setdisplay list
 
 # 关闭伤害
 gamerule fallDamage false
+gamerule fireDamage false
 
 # 清理加载区域
 forceload remove all

+ 0 - 4
data/mini/functions/colormatch/game/start_new_round.mcfunction

@@ -11,10 +11,6 @@ scoreboard players operation $countdown_fast mem = $color_match_time mem
 # 重置分数
 scoreboard players set $color_match_type mem 0
 
-# 将玩家拉下屏障
-execute as @a[tag=color_match_fall] at @s run tp @s ~ 23 ~
-tag @a[tag=color_match_fall] remove color_match_fall
-
 # 告知玩家
 execute as @a at @s run function lib:sounds/hit
 # tellraw @a [{"text":">> ","color":"gold","bold": true},{"text":"新的一轮开始了!","color":"white","bold": false}]

+ 0 - 7
data/mini/functions/colormatch/game_end.mcfunction

@@ -1,9 +1,2 @@
 # 当前游戏结束时触发
 forceload remove 1001 4000 1075 4025
-
-# 移除tag
-tag @a remove color_match_fall
-
-# 开启伤害
-gamerule fallDamage true
-gamerule fireDamage true

+ 0 - 3
data/mini/functions/colormatch/player_enter.mcfunction

@@ -2,9 +2,6 @@
 gamemode creative
 title @s clear
 
-# 重置tag
-tag @s remove color_match_fall
-
 # 状态效果
 effect clear @s
 effect give @s saturation 1000000 0 true

+ 2 - 3
data/mini/functions/colormatch/player_lose_heart.mcfunction

@@ -4,6 +4,5 @@ tellraw @a [{"text":">> ","color":"gold","bold": true},{"selector":"@s","color":
 # 失去一颗心
 function mini:main/player_lose_heart
 
-# 给予本轮无敌
-execute if entity @s[tag=mini_running] run tp @s ~ 35 ~
-execute if entity @s[tag=mini_running] run tag @s add color_match_fall
+# 拉回来
+execute if entity @s[tag=mini_running] run tp @s ~ 17 ~

+ 0 - 3
data/mini/functions/hotpm/game_end.mcfunction

@@ -1,5 +1,2 @@
 # 结束热土豆
 forceload remove 1000 3000 1100 3100
-
-# 开启伤害
-gamerule fallDamage true

+ 1 - 0
data/mini/functions/hotpm/game_init.mcfunction

@@ -3,6 +3,7 @@ forceload add 1000 3000 1100 3100
 
 # 关闭伤害
 gamerule fallDamage false
+gamerule fireDamage false
 
 # 生成地图
 

+ 0 - 3
data/mini/functions/parkour/game_end.mcfunction

@@ -1,5 +1,2 @@
 # 结束跑酷
 forceload remove 1000 1000 1050 1050
-
-# 开启伤害
-gamerule fallDamage true

+ 1 - 0
data/mini/functions/parkour/game_init.mcfunction

@@ -7,3 +7,4 @@ setblock 1000 11 1000 minecraft:redstone_block
 
 # 关闭伤害
 gamerule fallDamage false
+gamerule fireDamage false

+ 0 - 4
data/mini/functions/tntrun/game_end.mcfunction

@@ -4,9 +4,5 @@ forceload remove 1000 2000 1050 2050
 # 清理残余实体
 kill @e[tag=tntrun_block]
 
-# 开启伤害
-gamerule fallDamage true
-gamerule fireDamage true
-
 # 清理玩家标签
 tag @a remove tntrun_pc