## ZS_Round ZS_Rounds_config: type: yaml data debug: false config: stats: zombies: health: 20 speed: 0.5 spawns: start: zombies: amount: 5 round: 1 rounds: zombies: amount: 2 # Rounds # Round 1: # 5 Zombies # Round 2: # 7 Zombies # 1 Skeleton ZS_Rounds_SpawnRound: type: task definitions: ArenaName|round script: ## Zombies - announce "<&c>Runde :" - define type zombies - define start .amount]> - define multiplied .round]>]> - define amount .amount]>].add_int[]> - run ZS_SpawnZombies context:|| instantly # ZS_Spawn_Tank: # ZS_Spawn_Fast: # ZS_Spawn_Skeleton: # ZS_Spawn_Wither: # ZS_Spawn_Spider: # ZS_Spawn_CaveSpider: ZS_SpawnZombies: type: task definitions: ArenaName|Amount| script: - announce "<&7> <&8>Zombier er spawned!" - define locs .SpawnLocs]> - repeat { - define Randomloc - inject ZS_Spawn_Zombie } ZS_Spawn_Zombie: type: task definitions: Randomloc| script: - define speed - define health - define Players - define Nearby - spawn e@zombie[max_health=;health=;speed=] persistent save:created # - follow followers: lead:1.0 max:2.0 - attack target: # - define locs ].distance[10]> # # ].distance[<#.#>]> # - foreach { # # - run ZS_Spawn_Walk context:| # } # - walk auto_range radius:500 # - spawn e@zombie[max_health=2;health=2;speed=0.5;equipment=leather_boots|air|air|air] # ZS_Spawn_Walk: # type: task # definitions: entity|locs # script: # - wait 5t # - walk ]>