I am still on this problem of removing the hidden effects from my inventory gui, I have the visible boolean set to false but it is still appearing in the inventory
Here is my code just to test it:
.executes(context -> {
context.getSource().getPlayer().addStatusEffect(new StatusEffectInstance(StatusEffects.REGENERATION, 50, 0, false, false));
return 1;
})));```
And also a video demonstrating it: