Jump to content

NaNasuuAkiaa

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by NaNasuuAkiaa

  1. Then how can I do this? I'm still learning java and this gets a bit out of my hands
  2. So, instead of trying to get the statictics from the player itself, i need to ask the server for them? Update before posting: So first i need a packet handler, then I need to send the packet with the packet handler to obtain the stats from the server? Second update: This is the entire packet handler I did: import net.minecraft.resources.ResourceLocation; import net.minecraftforge.network.NetworkRegistry; import net.minecraftforge.network.simple.SimpleChannel; public class utilitiesforthestreamPacketHandler { private static final String PROTOCOL_VERSION = "1"; public static final SimpleChannel INSTANCE = NetworkRegistry.newSimpleChannel( new ResourceLocation("utilitiesforthestream", "main"), () -> PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals); }
  3. im sorry but i dont know how to write a nerwork packet. Also tried doing my research but I didn't find anything I understood. Also, ServerPlayer.getStats() does not exist, I'm guessing that it is because i dont have that network packet thing. I just started in java so I dont know if its a general thing or not Thank you
  4. I belive title is pretty self explanatory about the main idea. In detail, I'm looking to extract a value like total broken stones and then render it on screen. I got the rendering text on screen part but I can't manage to find a way to access the stats. It's on a singleplayer world. I've also tried looking at the wiki of net.minecraft.stats but couldn't find anything because i don't really comprehend most of the text that I read. One last thing that I tried is asking in the moddedmc discord but a partner told me to press escape then press statictics so you know.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.