##ID 1
#remove points
scoreboard players remove .points_temp arena 1
scoreboard players remove .points arena 1

#summon id11_mob x and y are random values
#$execute as @e[sort=random,limit=1,tag=enemies_spawnpoint] at @s run 
summon zombie ~ ~1 ~ {PersistenceRequired:1b,Silent:1b,attributes:[{id:"minecraft:step_height",base:1},{id:"minecraft:follow_range",base:50},{id:"minecraft:attack_damage",base:0},{id:"minecraft:knockback_resistance",base:1000},{id:"minecraft:movement_speed",base:0.30},{base:1000,id:"max_health"},{base:10000,id:"armor"},{base:10000,id:"armor_toughness"},{base:1000,id:"max_health"}],HandItems:[{},{id:"minecraft:snowball",count:1}],ArmorItems:[{},{},{id:"minecraft:leather_chestplate",count:1,components:{"minecraft:dyed_color":{rgb:65793,show_in_tooltip:false}}},{components:{"minecraft:custom_data":{enemy_drop:1b},"minecraft:profile":{id:[I;2131429491,-546682343,-1681000759,251135175],name:"",properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjZiN2FhMWQzYWZmNWI5ZWY2YzE4YTkxMjk4M2Q2OWIyZTFmZmU2MjM4N2E0NGQxZjQ1YTcyNGJmNjM1ZTAzNSJ9fX0="}]}},count:1,id:"minecraft:player_head"}],CanPickUpLoot:0b,CustomName:'{"text":"Pengun","color":"white"}',Health:1000.0f,Tags:["id11_mob","enemy","newborn","medium","ranged","penguin"]}


#set id for stuff
scoreboard players set @e[type=zombie,tag=id11_mob,tag=newborn,limit=1] id 11

##set level, health and id for newborn enemy
#set health
scoreboard players set @e[type=zombie,tag=id11_mob,tag=newborn,limit=1] health_max 150
scoreboard players add @e[type=zombie,tag=id11_mob,tag=newborn,limit=1] health 150

execute as @e[type=zombie,tag=id11_mob,tag=newborn] run function main:game/mobs/spawn/scores

#enemy is not newborn now
tag @e[type=zombie,tag=id11_mob,tag=newborn,limit=1] remove newborn