Started by
BryAstro
on
Topic category: Help with Minecraft modding (Java Edition)
Version 2021.1 (1.12.2 Generator)
Basically I want to make a mob that is immune to certain effects (i know how to make it immune to fire/drowning/potions/wither etc.)
But what I mean is it being immune to only one or two effects, I want it to be immune to e.g. poison, but no other potion effect.
Edited by BryAstro on Thu, 12/21/2023 - 00:32
Something like this
I have not tested it but it should work
This doesn't work for some things, as it deals damage once then gets removed since this procedure has a delay with respect to the poison applying its damage.
Instead, if you're not afraid to code, you may want to try this: click the Edit Code button on the left with your Entity element selected, then go to <YourEntity>Entity.java, then scroll a bit down and below any brackets (just not inside any functions) paste the @Override thing there and the import stuff at the very top of everything in the file. Save and lock code. Make sure to do everything else about the entity before you make this change (if you're wondering, this is how Minecraft handles poison on spiders).
Wait it's wrong and I can't edit it?? Get rid of the word "return" there
I dont understand how this is solved also where da heck do i find the AND block ive looked everywhere
It is in the logic tab, the block says = in the middle, but if you click on to it's options, it should say AND.