Advertisement
Combreal

TrackTimeMinecraftScoreBoard.txt

May 20th, 2023
1,687
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /gamerule commandBlockOutput false
  2. /scoreboard objectives add TicksPlayed minecraft.custom:minecraft.play_time
  3. /scoreboard objectives add MinutesPlayed dummy MinutesPlayed
  4. /scoreboard objectives add MinutesPlayedTmp dummy
  5. /scoreboard objectives add DivideNumber dummy
  6. /scoreboard players set #TicksPerMinute DivideNumber 1200
  7.  
  8.  * Repeat/Unconditional/Always Active
  9. /execute as @a run scoreboard players operation @p MinutesPlayedTmp = @p TicksPlayed
  10.  * Chain/Unconditional/Always Active
  11. /scoreboard players operation @a MinutesPlayedTmp /= #TicksPerMinute DivideNumber
  12. /execute as @a run scoreboard players operation @p MinutesPlayed = @p MinutesPlayedTmp
  13.  
  14. /scoreboard objectives setdisplay list MinutesPlayed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement