فهرست منبع

修复效果和音效 Bug

LTCatt 6 سال پیش
والد
کامیت
0ac34b6bcf

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

@@ -1,8 +1,6 @@
-#as holder
-#加tag
+# 玩家获得土豆时执行
 tag @s add pm_hoding
 
-#效果
 effect give @s glowing 1000000 0 true
 effect give @s speed 1000000 1 true
 effect give @s jump_boost 1000000 2 true

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

@@ -1,8 +1,8 @@
-#as holder
-#加tag
+# 玩家失去土豆时执行
 tag @s remove pm_hoding
 
-#效果
 effect clear @s glowing
+effect clear @s speed
+effect clear @s jump_boost
 effect give @s speed 2 1 true
-effect give @s jump_boost 2 1 true
+effect give @s jump_boost 2 2 true

+ 1 - 1
data/mini/functions/hotpm/tick20.mcfunction

@@ -2,7 +2,7 @@
 execute if score $countdown mem matches 1.. run title @a actionbar [{"text":"土豆爆炸: ","color":"red","bold": true},{"score": { "name": "$countdown","objective": "mem"}}]
 
 # 给持有者播放音效
-playsound minecraft:entity.creeper.primed player @a[tag=pm_hoding]
+execute as @a[tag=pm_hoding] at @s run playsound minecraft:entity.creeper.primed player @s
 
 # 爆炸
 execute if score $countdown mem matches 0 as @a[tag=pm_hoding] run function mini:hotpm/pm_boom