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.

Ladymorepork

Members
  • Joined

  • Last visited

  1. Thanks. I am pretty sure I just went on an adventure through the history of code for players sats today....... I also just realized I was coding in for 1.12 instead of my set up for 1.18.2 , its been one of those days.
  2. Ladymorepork joined the community
  3. I am trying to make a mod that you can trade time you have played from the time played stats for loot bags or in game currency. This will be for a server. I am struggling to get the a players Statistics for minecraft:play_time or PLAY_TIME or stat.playOneMinute. I am just so confused and I have been looking for hours of what code to use. i tried to use this : playertime = ((EntityPlayer)entity).func_147099_x().writeStat(StatList.minutesPlayedStat); func_147099_x(). is a deprecated API I think. I also tried importing and using the net.minecraft.entity.player.ServerPlayerEntity class getStats() but that results in an error saying that it cant find it. i know i would also need a way to update the player's time played stats but just a command might work.

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.