소스 검색

完成幻翼的调整

龙腾猫跃 3 년 전
부모
커밋
7695110780

+ 1 - 1
data/mini/functions/main/player_death.mcfunction

@@ -1,5 +1,5 @@
 # 玩家死亡后触发
-execute if score $mini_type mem matches 5 run function mini:phantom/player_failed
+execute if score $mini_type mem matches 5 run function mini:phantom/player_death
 execute if score $mini_type mem matches 201 run function mini:ass/player_death
 execute if score $mini_type mem matches 101 run function mini:iron/player_death
 execute if score $mini_type mem matches 102 run function mini:trade/player_death

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

@@ -2,12 +2,7 @@
 execute as @e[tag=new_phantom] at @s run tp @s ~ 33 ~
 
 # 设置攻击力与随机生命值
-scoreboard players set $random_min mem 1
-scoreboard players set $random_max mem 3
-function lib:random
-execute if score $random mem matches 1 run attribute @e[tag=new_phantom,limit=1] generic.max_health base set 2
-execute if score $random mem matches 2 run attribute @e[tag=new_phantom,limit=1] generic.max_health base set 3
-execute if score $random mem matches 3 run attribute @e[tag=new_phantom,limit=1] generic.max_health base set 4
+attribute @e[tag=new_phantom,limit=1] generic.max_health base set 2
 attribute @e[tag=new_phantom,limit=1] generic.attack_damage base set 4
 
 # 如果满足条件(在 tick20 中检查),则刷出奖励幻翼

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

@@ -5,4 +5,4 @@ tp @e[type=phantom] 1000 -100 6000
 
 # 生成奖励物品
 execute positioned 1032.5 22.1 6008.0 run function item:bonus_item/gameparty/auto/low2
-execute positioned 1032.0 21.1 6053.0 run function item:bonus_item/gameparty/auto/low2
+execute positioned 1032.0 21.1 6054.0 run function item:bonus_item/gameparty/auto/low2

+ 6 - 0
data/mini/functions/phantom/player_death.mcfunction

@@ -0,0 +1,6 @@
+# 玩家死亡时由玩家自己触发
+spreadplayers 1030 6031 3 3 under 18 false @s[team=playing]
+tellraw @s ["",{"text": ">> ","color":"red","bold": true},{"text": "死亡惩罚: 失明 10 秒","color":"red"}]
+effect give @s blindness 10 0
+effect give @s resistance 3 4 true
+execute as @a at @s run function lib:sounds/error

+ 0 - 7
data/mini/functions/phantom/player_failed.mcfunction

@@ -1,7 +0,0 @@
-# 玩家死亡时由玩家自己触发
-tag @s remove mini_running
-gamemode spectator
-tp @s[team=!debugging] 1062.34 27.11 6040.84 461.44 28.30
-# tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"selector": "@s","color":"red"}," 已死亡!"]
-execute as @a at @s run function lib:sounds/error
-execute unless entity @a[tag=mini_running] run function mini:main/game_end