Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

NaNasuuAkiaa

Members
  • Joined

  • Last visited

  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. NaNasuuAkiaa joined the community
  5. 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.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.