LTCatt 6 anni fa
parent
commit
d2a2fcd4cf

+ 1 - 0
data/mini/functions/main/tick5.mcfunction

@@ -3,6 +3,7 @@
 execute if score $mini_type mem matches 1 run function mini:parkour/tick5
 execute if score $mini_type mem matches 2 run function mini:tntrun/tick5
 execute if score $mini_type mem matches 3 run function mini:hotpm/tick5
+execute if score $mini_type mem matches 6 run function mini:phantom/tick5
 
 # 同步生命值
 scoreboard players reset * temp

+ 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.5
 effect give @e[tag=new_phantom] instant_damage
 tag @e[tag=new_phantom] remove new_phantom

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

@@ -12,4 +12,4 @@ execute as @e[type=trident,tag=!fixed_trident] run function mini:phantom/game/fi
 
 # 删除掉在地上的三叉戟
 kill @e[type=trident,nbt={inGround:1b}]
-kill @e[type=item,nbt={Item:{id:"minecraft:trident",tag:{GameItem:1b}}}]
+kill @e[type=item,nbt={Item:{id:"minecraft:trident",tag:{GameItem:1b}}}]

+ 0 - 11
data/mini/functions/phantom/tick20.mcfunction

@@ -12,14 +12,3 @@ execute if score $countdown mem matches ..10 as @a at @s run function lib:sounds
 execute if score $countdown mem matches 10 run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"text": "太阳即将升起!","color":"aqua"}]
 # 0s:游戏结束
 execute if score $countdown mem matches 0 run function mini:main/game_end
-
-# 击杀音效
-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/hit
-
-# 击杀提示
-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=0}] run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"selector": "@s","color":"gold"}," 已击杀 ",{"score": { "name": "@s","objective": "kill_phantom"}}," 只幻翼!"]
-execute as @a run scoreboard players operation @s kill_phantom2 = @s kill_phantom

+ 11 - 0
data/mini/functions/phantom/tick5.mcfunction

@@ -0,0 +1,11 @@
+
+# 击杀音效
+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=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