|
@@ -1,5 +1,4 @@
|
|
|
-# 随机召唤僵尸
|
|
|
|
|
-effect clear @a hunger
|
|
|
|
|
|
|
+# 随机召唤怪物
|
|
|
|
|
|
|
|
# 生成随机数
|
|
# 生成随机数
|
|
|
scoreboard players set $random_min mem 0
|
|
scoreboard players set $random_min mem 0
|
|
@@ -7,13 +6,14 @@ scoreboard players set $random_max mem 100
|
|
|
function lib:random
|
|
function lib:random
|
|
|
|
|
|
|
|
# 清理恼鬼
|
|
# 清理恼鬼
|
|
|
-execute if score $random mem matches 40.. run tp @e[type=vex,limit=1,sort=random] ~ -100 ~
|
|
|
|
|
|
|
+execute if score $random mem matches 50.. run tp @e[type=vex,limit=1,sort=random] ~ -100 ~
|
|
|
|
|
|
|
|
# 赋予随机效果
|
|
# 赋予随机效果
|
|
|
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 1 1
|
|
|
-effect give @e[type=!player,type=!piglin,limit=1,sort=random] speed 4
|
|
|
|
|
|
|
+effect give @e[type=!player,type=!piglin,limit=1,sort=random] speed 4 0
|
|
|
effect give @e[type=piglin,limit=1,sort=random] slowness 3 0
|
|
effect give @e[type=piglin,limit=1,sort=random] slowness 3 0
|
|
|
effect give @e[type=piglin,limit=1,sort=random] slowness 3 1
|
|
effect give @e[type=piglin,limit=1,sort=random] slowness 3 1
|
|
|
|
|
+effect give @e[type=!player,limit=2,sort=random] resistance 3 1
|
|
|
|
|
|
|
|
# 召唤怪物
|
|
# 召唤怪物
|
|
|
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 61..120 if score $random mem matches 0..10 run function mini:zombie/game/summon_piglin
|