Started by
Aroyki
on
Topic category: Help with Minecraft modding (Java Edition)
A bit of a dumb question. But, I'm asking this to try to prevent players from farming or just accidently getting a boss stuck in a block. How can I check if the entity is suffocating or make them immune? I got a procedure to use if I can check, and I know I can check if blocks in radius are air, but, there is quite a few to check per tick. Any help is greatly appreciated.
(I forgot to say, but, I'm mainly asking because I want the anti-farming procedure to ONLY activate when the mob is suffocating. Right now the mob when near blocks triggers the procedure, which is a bit irritating to fight)
Edited by Aroyki on Wed, 07/20/2022 - 23:57