#How to display the HUD in the same for all players

17 messages · Page 1 of 1 (latest)

forest blade
#

I am creating a mod and I have a problem - HUD is rendering only for one player, but I need to render it for all players the same(Sorry if there are mistakes. I dont speaking english usual)

limpid topaz
#

show your code

forest blade
#

It's mod for my friends, and code isn't the best

limpid topaz
#

does other players have the mod?

forest blade
#

yes

#

i need when one player use, all see HUD

limpid topaz
#

also this is wrong. you're registering a hud renderer callback every time the item is used

#

you'll need packets for that. otherwise how would one player know what the other player did?

forest blade
#

Oh. Okay. I will study that. Are there any guides about that?

limpid topaz
#

you need to fix your rendering too

forest blade
#

Okay

limpid topaz
#

don't register callbacks on each use

forest blade
#

Thank you

#

I didn't see this pade on fabric docs. I guess it's new. Anyway, thanks.