execute as @e[type=skeleton,tag=hollow_husk] at @s if score @s hollow_husk_identifier = @a[tag=necromancer_changed_dimension,limit=1] hollow_husk_identifier run tp @s @p[tag=necromancer_changed_dimension,limit=1]
execute as @e[type=zombie,tag=zombie] at @s if score @s zombie_identifier = @a[tag=necromancer_changed_dimension,limit=1] zombie_identifier run tp @s @p[tag=necromancer_changed_dimension,limit=1]
execute as @e[type=skeleton,tag=skeleton] at @s if score @s skeleton_identifier = @a[tag=necromancer_changed_dimension,limit=1] skeleton_identifier run tp @s @p[tag=necromancer_changed_dimension,limit=1]
execute as @e[type=wither_skeleton,tag=wither_skeleton] at @s if score @s wither_skeleton_identifier = @a[tag=necromancer_changed_dimension,limit=1] wither_skeleton_identifier run tp @s @p[tag=necromancer_changed_dimension,limit=1]
execute as @e[type=creeper,tag=creeper] at @s if score @s creeper_identifier = @a[tag=necromancer_changed_dimension,limit=1] creeper_identifier run tp @s @p[tag=necromancer_changed_dimension,limit=1]
execute as @e[type=silverfish,tag=gravemite] at @s if score @s gravemite_identifier = @a[tag=necromancer_changed_dimension,limit=1] gravemite_identifier run tp @s @p[tag=necromancer_changed_dimension,limit=1]
tag @a[tag=necromancer_changed_dimension] remove necromancer_changed_dimension