|
|
@@ -10,13 +10,13 @@ function lib:random
|
|
|
execute if score $random mem matches 40.. run tp @e[type=vex,limit=1,sort=random] ~ -100 ~
|
|
|
|
|
|
# 赋予随机效果
|
|
|
-effect give @e[type=!player,limit=1,sort=random] speed 1 1
|
|
|
-effect give @e[type=!player,limit=1,sort=random] speed 4
|
|
|
-effect give @e[type=zombie,limit=1,sort=random] slowness 3
|
|
|
-effect give @e[type=zombie,limit=1,sort=random] slowness 1 1
|
|
|
+effect give @e[type=!player,type=!piglin,limit=1,sort=random] speed 1 1
|
|
|
+effect give @e[type=!player,type=!piglin,limit=1,sort=random] speed 4
|
|
|
+effect give @e[type=piglin,limit=1,sort=random] slowness 3 0
|
|
|
+effect give @e[type=piglin,limit=1,sort=random] slowness 3 1
|
|
|
|
|
|
# 召唤怪物
|
|
|
-execute if score $countdown mem matches 61..120 if score $random mem matches 0..10 run function mini:zombie/game/summon_zombie
|
|
|
+execute if score $countdown mem matches 61..120 if score $random mem matches 0..10 run function mini:zombie/game/summon_piglin
|
|
|
execute if score $countdown mem matches 1..90 if score $random mem matches 11..20 run function mini:zombie/game/summon_skeleton
|
|
|
execute if score $countdown mem matches ..60 if score $random mem matches 21..30 run function mini:zombie/game/summon_creeper
|
|
|
execute if score $countdown mem matches ..0 if score $random mem matches 31..40 run function mini:zombie/game/summon_evoker
|