LTCatt 6 yıl önce
ebeveyn
işleme
db4af9283b

+ 1 - 1
data/mini/functions/phantom/game/summon2.mcfunction

@@ -1,6 +1,6 @@
 
 execute as @e[tag=new_phantom] at @s run tp @s ~ 35 ~
 attribute @e[tag=new_phantom,limit=1] generic.max_health base set 6
-# attribute @e[tag=new_phantom,limit=1] generic.attack_damage base set 1.5
+attribute @e[tag=new_phantom,limit=1] generic.attack_damage base set 1.6
 effect give @e[tag=new_phantom] instant_damage
 tag @e[tag=new_phantom] remove new_phantom

+ 4 - 4
data/mini/functions/phantom/game_init.mcfunction

@@ -20,16 +20,16 @@ setblock 1000 4 6032 air
 setblock 1032 4 6000 air
 setblock 1032 4 6032 air
 
-# 生成奖励物品
-execute positioned 1034.0 27.5 6058.5 run function item:bonus_item/gameparty/auto/white
-execute positioned 1035.0 28.5 6002.5 run function item:bonus_item/gameparty/auto/white
-
 # 清理残余实体
 kill @e[type=arrow]
 kill @e[type=item]
 tp @e[type=phantom] 1000 -100 6000
 kill @e[type=trident]
 
+# 生成奖励物品
+execute positioned 1034.0 27.5 6058.5 run function item:bonus_item/gameparty/auto/white
+execute positioned 1035.0 28.5 6002.5 run function item:bonus_item/gameparty/auto/white
+
 # 伤害管理
 scoreboard players set $remove_resistance mem 1
 team modify player friendlyFire false

+ 1 - 1
data/mini/functions/phantom/player_failed.mcfunction

@@ -2,6 +2,6 @@
 
 gamemode spectator
 tp @s[tag=!debug] 1062.34 27.11 6040.84 461.44 28.30
-tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"selector": "@s","color":"red"}," 被幻翼杀死了!"]
+tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"selector": "@s","color":"red"}," 已死亡!"]
 execute at @s run function lib:sounds/error
 execute unless entity @a[gamemode=adventure] run function mini:main/game_end

+ 3 - 6
data/mini/functions/phantom/tick5.mcfunction

@@ -1,11 +1,8 @@
 
-# 击杀音效
-execute as @a run scoreboard players operation @s temp = @s kill_phantom
-execute as @a run scoreboard players operation @s temp -= @s kill_phantom2
-execute as @a[scores={temp=1..}] at @s run function lib:sounds/levelup
-
-# 击杀提示
+# 击杀音效与提示
 execute as @a run scoreboard players operation @s kill_phantom2 = @s kill_phantom
 execute as @a run scoreboard players operation @s kill_phantom2 %= #const_5 mem
+execute as @a[scores={temp=1..,kill_phantom2=1..}] run function lib:sounds/hit
+execute as @a[scores={temp=1..,kill_phantom2=0}] run function lib:sounds/levelup
 execute as @a[scores={temp=1..,kill_phantom2=0}] run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"selector": "@s","color":"gold"}," 已击杀 ",{"score": { "name": "@s","objective": "kill_phantom"},"color":"gold"}," 只幻翼!"]
 execute as @a run scoreboard players operation @s kill_phantom2 = @s kill_phantom