Hello all,
In my mod I have it so that when pressing a key under special circumstances the player gets a potion effect, or rather a lot of effects.
I've been searching for methods to add Potion Effects without the annoying GUI-Display (which shifts your Inventory over to the right) for quite a long time, but I haven't found anything good yet.
I tried removing the effects as soon as you open the Inventory, but it has a tiny very annoying delay, I tried doing it with ".performEffect", which doesn't work for all potions, and I tried replicating the effects of the potions, but there are some (like Night-vision) that are pretty hard to do.
I know where the Inventory Render gets called (InventoryEffectRenderer.displayDebuffEffects), but I can't hinder minecraft from doing it…
Now my question, is there any good way to add potion effects without the display in the Inventory?
Thanks,
Max