Browse Source

修复热土豆传送 Bug

LTCatt 6 năm trước cách đây
mục cha
commit
b06f133038

+ 4 - 2
data/mini/functions/hotpm/player_enter.mcfunction

@@ -16,8 +16,10 @@ tag @s remove pm_damage_dealt
 tag @s remove pm_damage_taken
 
 # 传送玩家
-spreadplayers 1023 3021 5 5 false @s[tag=!watcher,tag=!rejoining,tag=!debug]
-schedule function mini:hotpm/player_enter2 1t replace
+tp @s[tag=!watcher,tag=!rejoining,tag=!debug] 1023 25 3021
+# spreadplayers 1023 3021 5 5 false @s[tag=!watcher,tag=!rejoining,tag=!debug]
+# schedule function mini:hotpm/player_enter2 1t replace
+# execute as @a[tag=!watcher,tag=!rejoining,tag=!debug] at @s run tp @s ~ 25 ~
 
 # 调整模式
 gamemode spectator @s[tag=!debug]

+ 0 - 2
data/mini/functions/hotpm/player_enter2.mcfunction

@@ -1,2 +0,0 @@
-# spreadplayer 后不能立即传送,所以延迟 1tick
-execute as @a[tag=!watcher,tag=!rejoining,tag=!debug] at @s run tp @s ~ 25 ~

+ 2 - 2
data/mini/functions/zombie/tick20.mcfunction

@@ -9,7 +9,7 @@ function lib:random
 execute if score $countdown mem matches ..30 run effect give @e[tag=mini_mob,limit=2,sort=random] speed 2 1
 execute if score $countdown mem matches ..80 run effect give @e[tag=mini_mob,limit=2,sort=random] resistance 2 1
 execute if score $countdown mem matches ..105 run effect give @e[tag=mini_mob,limit=1,sort=random] speed 2 0
-execute if score $countdown mem matches 131..170 run effect give @e[tag=mini_mob,limit=3,sort=random] slowness 2 0
+execute if score $countdown mem matches 131..170 run effect give @e[tag=mini_mob,limit=2,sort=random] slowness 2 0
 
 # 显示提示
 execute if score $countdown mem matches 155 run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"text": "补给物资已经送达!","color":"aqua"}]
@@ -20,7 +20,7 @@ execute if score $countdown mem matches 80 run scoreboard players set $random me
 # execute if score $countdown mem matches 55 run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"text": "补给物资已经送达!","color":"aqua"}]
 
 # 召唤猪灵
-execute if score $random mem matches ..10 if score $countdown mem matches 81.. run function mini:zombie/game/summon_empty
+execute if score $random mem matches ..20 if score $countdown mem matches 81.. run function mini:zombie/game/summon_empty
 execute if score $random mem matches ..20 if score $countdown mem matches ..80 unless entity @e[tag=empty_pig] run function mini:zombie/game/summon_equip
 execute if score $random mem matches ..20 if score $countdown mem matches ..80 as @e[tag=empty_pig,limit=1,sort=random] run function mini:zombie/game/give_equip
 execute if score $random mem matches 21..30 if score $countdown mem matches ..5 unless entity @e[tag=empty_pig] run function mini:zombie/game/summon_equip