LTCatt 6 лет назад
Родитель
Сommit
4dac882e40

+ 1 - 4
data/mini/functions/phantom/game/summon.mcfunction

@@ -1,7 +1,4 @@
 # 召唤幻翼
 
 summon phantom 1030 255 6030 {Tags:["new_phantom"]}
-spreadplayers 1030 6030 20 20 false @e[tag=new_phantom]
-execute as @e[tag=new_phantom] at @s run tp @s ~ 35 ~
-attribute @e[tag=new_phantom,limit=1] generic.max_health base set 8
-tag @e[tag=new_phantom] remove new_phantom
+schedule function mini:phantom/game/summon2 1t replace

+ 5 - 0
data/mini/functions/phantom/game/summon2.mcfunction

@@ -0,0 +1,5 @@
+
+spreadplayers 1030 6030 20 20 false @e[tag=new_phantom]
+execute as @e[tag=new_phantom] at @s run tp @s ~ 35 ~
+attribute @e[tag=new_phantom,limit=1] generic.max_health base set 8
+tag @e[tag=new_phantom] remove new_phantom