HerobrineXia 6 лет назад
Родитель
Сommit
596e0e21a3

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

@@ -1,5 +1,7 @@
 #玩家失败
 function mini:hotpm/pm_lost
+# 告知玩家
+tellraw @a [{"text":">> ","color":"gold","bold": true},{"selector":"@s","color":"yellow","bold": false},{"text":"爆炸了!","color":"white","bold": false}]
 #记录位置
 execute at @s run summon minecraft:area_effect_cloud ~ ~ ~ {Tags:["pm_boom"]}
 #减少生命

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

@@ -6,6 +6,3 @@ effect clear @s jump_boost
 effect give @s glowing 1000000 0 true
 effect give @s speed 1000000 1 true
 effect give @s jump_boost 1000000 2 true
-
-# 告知玩家
-tellraw @a [{"text":">> ","color":"gold","bold": true},{"selector":"@s","color":"yellow","bold":false},{"text":" 获得了土豆!","color":"white","bold":false}]

+ 4 - 0
data/mini/functions/hotpm/pm_init.mcfunction

@@ -1,5 +1,9 @@
 # 将土豆刷新给离自己最远的人
 execute at @s as @a[sort=furthest,tag=mini_running,tag=!watcher,limit=1] run function mini:hotpm/pm_get
+
+# 告知玩家
+tellraw @a [{"text":">> ","color":"gold","bold": true},{"selector":"@a[tag=pm_hoding]","color":"yellow","bold":false},{"text":" 获得了土豆!","color":"white","bold":false}]
+
 # 强制观战
 execute at @s as @a[gamemode=spectator,distance=..0.1] run spectate @p[tag=pm_hoding]
 

+ 1 - 4
data/mini/functions/hotpm/pm_lost.mcfunction

@@ -4,7 +4,4 @@ effect clear @s glowing
 effect clear @s speed
 effect clear @s jump_boost
 effect give @s speed 3 1 true
-effect give @s jump_boost 2 1 true
-
-# 告知玩家
-tellraw @a [{"text":">> ","color":"gold","bold": true},{"selector":"@s","color":"yellow","bold": false},{"text":"爆炸了!","color":"white","bold": false}]
+effect give @s jump_boost 2 1 true