meteor-client icon indicating copy to clipboard operation
meteor-client copied to clipboard

Add prototype of a custom stat hud element

Open maxsupermanhd opened this issue 3 years ago • 4 comments

TODO:

  • Figure why Stats.CUSTOM.getOrCreateStat hits a null pointer even when identifier is correct (help wanted)

maxsupermanhd avatar May 13 '22 00:05 maxsupermanhd

Send statistic requests (no idea how to do that, help wanted)

Looking at wiki.vg, Client Status packet might be what you want. In fabric its called net.minecraft.network.packet.c2s.play.ClientStatusC2SPacket

C10udburst avatar May 13 '22 06:05 C10udburst

Send statistic requests (no idea how to do that, help wanted)

Looking at wiki.vg, Client Status packet might be what you want. In fabric its called net.minecraft.network.packet.c2s.play.ClientStatusC2SPacket

Yes, but from what method/class do I send it? HudElement is not a module or something, it does not have onTick...

maxsupermanhd avatar May 13 '22 13:05 maxsupermanhd

it has an update method and you can just make it fetch it every like 5 seconds or something

gigglingbed avatar May 13 '22 13:05 gigglingbed

Yes, how to update it is actually not a problem, I figured how to do that now. Real problem is how to select statistic that you want to display, really have no idea how to implement it.

maxsupermanhd avatar May 13 '22 16:05 maxsupermanhd

With the most recent changes to the hud and starscript, unfortunatley this has been broken and made redundant.

Wide-Cat avatar Aug 25 '22 10:08 Wide-Cat