## Runs after doing a check for a mob cap
## @s = player

scoreboard objectives add TotalEndermen dummy objective.endermen_total

#scoreboard objectives setdisplay sidebar TotalEndermen

scoreboard players set ..vc TotalEndermen 0
execute as @e[type=enderman,family=main_island] run scoreboard players add ..vc TotalEndermen 1

scoreboard players set ..bc TotalEndermen 0
execute as @e[type=ldz:ender_beast] run scoreboard players add ..bc TotalEndermen 1

scoreboard players set ..mc TotalEndermen 0
execute as @e[type=ldz:ender_mystic] run scoreboard players add ..mc TotalEndermen 1

scoreboard players set ..sc TotalEndermen 0
execute as @e[type=ldz:ender_scourge] run scoreboard players add ..sc TotalEndermen 1

scoreboard players set ..wc TotalEndermen 0
execute as @e[type=ldz:ender_wraith] run scoreboard players add ..wc TotalEndermen 1