#Removing Effects from the inventory GUI

5 messages · Page 1 of 1 (latest)

silent parcel
#

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:
stuck oasis
#

The visible parameter might mean particles? You could check usages, especially the effect command.

silent parcel
#

I checked and in the base game there does not appear to be a way to give yourself an effect that does not appear in the inventory

#

So I am now thinking that a mixin for the AbstractInventoryScreen class may be in order

#

If anyone could confirm that that would be awesome