Started by
tntapplecraft YT
on
Topic category: Advanced modding
what is the code required to check if the target entity is a boss mob? I already figured out the IsNonBoss part but I'm stuck on actually utilising it. please help me I'm making a custom enchantment that does extra damage to all bosses and I don't want to manually specify all the bosses in the procedure. that would be a hassle because every time I try to make a new boss I would have to add it to the list.
I tried if (LivingEntity.IsNonBoss = false) {do some damage} but it's not working
So that should work, have you done any prints etc.
And can post code so I can test?
I figured out that part, but I'm making an enchantment that checks if the provided entity is a boss. That part is already defined in the mob maker.