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

#summon id9_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,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.45},{base:1000,id:"max_health"},{base:10000,id:"armor"},{base:10000,id:"armor_toughness"},{base:1000,id:"max_health"}],ArmorItems:[{},{},{},{components:{"minecraft:custom_data":{enemy_drop:1b},"minecraft:profile":{id:[I;2131429491,-546682343,-1681000759,251135175],name:"",properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzY2YzllZDA0ZWUzMTM0NDA4Mzg3ZDI2ZTg3ODQ3YjQzMTk1ZDYyNjViNGY2N2Y5YTQyMDI5OTFlZTljNjVjMSJ9fX0="}]}},count:1,id:"minecraft:player_head"}],HandItems:[{},{}],CanPickUpLoot:0b,CustomName:'{"text":"Hungry","color":"white"}',Health:1000.0f,Tags:["id9_mob","enemy","newborn","medium","melee","slime"]}



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

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

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

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