I am trying to get active potion effects from an entity. I have tried: getActivePotionEffect(), getActivePotionEffects() and isPotionActive but they just give null or false. I put MobEffects.Poison and Potion.getPotionByID(19). Am I missing something? And I have looked in minecraft code as well.
What I do is: gradlew setupDevWorkspace setupDevWorkspace eclipse, all at once and open eclipse, set workspace dir in the eclipse folder of your forge mdk folder. After that, you can start minecraft. (Using GradleStart as main class already setup for you).
I wanted to get stuff from entities and by doing this I could, but when I was looking at the Ender Drogen it crashed the game, i found out that a part of Entity like the ender dragon and can not be cast to EntityLiving.
Soo, how do a figure out if a the entity is part or not part?
The code I was using:(EntityLiving)Minecraft.getMinecraft().objectMouseOver.entityHit
I am making a mod and I am using another mod but my mod don't need the other mod, it just adds some more things to my mod, now the question, how do I say to forge that I want the other mod to be inited before my mod, if the other mod exists?