#
# 		Data pack by IJAMinecraft
# 		@ ijaminecraft.com
# 		@ youtube.com/user/IJAMinecraft
#

function ija-one-block:generated/randomizer/ija-a4-mobamount-1-2
execute as @s at @s run summon minecraft:vindicator ~ ~1.6 ~ {"Tags":["ija-a4-newmob"]}
execute as @s[scores={ija-a4-mobamount=2..}] at @s run summon minecraft:vindicator ~ ~1.6 ~ {"Tags":["ija-a4-newmob"]}
execute as @e[tag=ija-a4-newmob,distance=..30] at @s if entity @e[tag=ija-a4-lang-de] run data merge entity @s {"CustomName":"{\"text\":\"Monster Wächter\",\"color\":\"dark_red\"}","CustomNameVisible":1}
execute as @e[tag=ija-a4-newmob,distance=..30] at @s if entity @e[tag=ija-a4-lang-en] run data merge entity @s {"CustomName":"{\"text\":\"Monster Guard\",\"color\":\"dark_red\"}","CustomNameVisible":1}
scoreboard players set @e[tag=ija-a4-newmob] ija-a4-pm-life 9000
execute as @e[tag=ija-a4-newmob] at @s run function ija-one-block:effects/party-mob-spawn
tag @e[tag=ija-a4-newmob] remove ija-a4-newmob