#How to check if a potion effect is harmful
6 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

check for every harmful effect may be?
All MobEffects have a function called isBeneficial()
You can get Collection<MobEffectInstance> through EntityLiving#getActiveEffects()
Do note that MobEffect != MobEffectInstance
Iterating over that collection will in turn give you Holder<MobEffect>
You can use https://lexxie.dev/ to make sense of base game & neoforge classes etc
A small repository of Forge/Fabric JavaDocs for quick and easy use.
Thank you, I’ll give it a try.