Explorar o código

修改速度与生成频率

LTCatt %!s(int64=6) %!d(string=hai) anos
pai
achega
50d943a187
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      data/mini/functions/zombie/tick20.mcfunction

+ 4 - 2
data/mini/functions/zombie/tick20.mcfunction

@@ -6,14 +6,16 @@ scoreboard players set $random_min mem 0
 scoreboard players set $random_max mem 100
 function lib:random
 scoreboard players operation $random mem += $zombie_luck mem
-execute if score $random mem matches 80.. run scoreboard players remove $zombie_luck mem 1
+execute if score $random mem matches 75.. run scoreboard players remove $zombie_luck mem 1
 
 # 清理恼鬼
 execute if score $random mem matches 50.. run tp @e[type=vex,limit=1,sort=random] ~ -100 ~
 
 # 赋予随机效果
+effect give @e[type=husk,limit=1,sort=random] speed 1 1
 effect give @e[type=husk,limit=1,sort=random] speed 4
-effect give @e[type=zombie,limit=1,sort=random] slowness 4
+effect give @e[type=zombie,limit=2,sort=random] slowness 4 2
+effect give @e[type=zombie,limit=1,sort=random] slowness 2 3
 
 # 召唤怪物
 execute if score $random mem matches -5..5 run function mini:zombie/game/summon_zombie