#How to force sneaking state when in GUI?

15 messages · Page 1 of 1 (latest)

trail pike
#

My wildly uninformed approach was to send a sneak packet when a gui is opened, but this does not work. I predict a mixin is required to prevent vanilla from overriding this packet. How does a mixin work? What should I know before attempting this? Thank you in advance :)

#

should clarify, sneaking should only occur if the player was sneaking when the gui was opened.

void sable
#

this is a vanilla feature in 1.21.8 and below

#

probably look at what changed with the sticky key binds

trail pike
#

Wdym

#

Ik it’s possible with toggle sneak but this mod is to specifically avoid using that

void sable
#

well yeah look how that works

trail pike
#

I’m new to fabric dev, is the source available somewhere?

void sable
trail pike
#

😃 😃 😃 😃

#

Thanks!

true spindle
#

actually fire idea 🔥
to keep the player sneaking even without toggle sneak

trail pike
#

There’s one for 1.21+ but I lowk cannot find it on my phone rn