|
@@ -1,5 +1,5 @@
|
|
|
|
|
|
|
|
-execute as @e[tag=new_phantom] at @s run tp @s ~ 30 ~
|
|
|
|
|
|
|
+execute as @e[tag=new_phantom] at @s run tp @s ~ 33 ~
|
|
|
|
|
|
|
|
# 设置攻击力与随机生命值
|
|
# 设置攻击力与随机生命值
|
|
|
scoreboard players set $random_min mem 1
|
|
scoreboard players set $random_min mem 1
|
|
@@ -8,7 +8,7 @@ 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 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 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
|
|
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.attack_damage base set 3
|
|
|
|
|
|
|
+attribute @e[tag=new_phantom,limit=1] generic.attack_damage base set 4
|
|
|
|
|
|
|
|
# 如果满足条件(在 tick20 中检查),则刷出奖励幻翼
|
|
# 如果满足条件(在 tick20 中检查),则刷出奖励幻翼
|
|
|
execute if score #new_item mem matches 0 run tellraw @a ["\n",{"text": ">> ","color":"aqua","bold": true},{"text": "击杀红色幻翼, 获取奖励物资!\n","color":"aqua"}]
|
|
execute if score #new_item mem matches 0 run tellraw @a ["\n",{"text": ">> ","color":"aqua","bold": true},{"text": "击杀红色幻翼, 获取奖励物资!\n","color":"aqua"}]
|
|
@@ -19,7 +19,8 @@ execute if score #new_item mem matches 0 run scoreboard players set $new_item_cd
|
|
|
# 修改奖励幻翼的属性
|
|
# 修改奖励幻翼的属性
|
|
|
team join red @e[tag=bonus_phantom,tag=new_phantom,limit=1]
|
|
team join red @e[tag=bonus_phantom,tag=new_phantom,limit=1]
|
|
|
effect give @e[tag=bonus_phantom,tag=new_phantom,limit=1] glowing 1000000 0 true
|
|
effect give @e[tag=bonus_phantom,tag=new_phantom,limit=1] glowing 1000000 0 true
|
|
|
-data modify entity @e[tag=bonus_phantom,tag=new_phantom,limit=1] Size set value 4
|
|
|
|
|
|
|
+data merge entity @e[tag=bonus_phantom,tag=new_phantom,limit=1] {Size:5,DeathLootTable:"mini:phantom"}
|
|
|
|
|
+attribute @e[tag=bonus_phantom,tag=new_phantom,limit=1] generic.attack_damage base set 8
|
|
|
attribute @e[tag=bonus_phantom,tag=new_phantom,limit=1] generic.max_health base set 20
|
|
attribute @e[tag=bonus_phantom,tag=new_phantom,limit=1] generic.max_health base set 20
|
|
|
|
|
|
|
|
# 确认属性修改
|
|
# 确认属性修改
|