Hey so I managed to ignore hurt events on both the Player and the Entity
let disallowPreAftermathPlayerHurtAftermathMob=true
if(disallowPreAftermathPlayerHurtAftermathMob){
EntityEvents.hurt(event => {
const { entity, source } = event;
if (!aftermathExlusiveMobs.includes(entity.type)) return
if (source.player != null) {
if(!source.player.stages.has('witherKilled')){
event.cancel();
}
}
})
}
let disallowPostAftermathMobsHurtPlayer=true
if(disallowPostAftermathMobsHurtPlayer){
EntityEvents.hurt(event => {
const { entity, source } = event;
if (!entity.isPlayer()) return
if (aftermathExlusiveMobs.includes(source.actual.type)) {
if(!entity.stages.has('witherKilled')){
event.cancel();
}
}
})
}
But I have no clue if its easily possible to make the mobs literally ignore the player, dont target him