Minecraft Data Packs / Quality of Life

Simple timer to use in your minigame

  • check_circle Functions
  • 2,121 views, 5 today
  • 371 downloads, 0 today
  • 3
  • 2
  • 1
Duchacek's Avatar Duchacek
Level 17 : Journeyman System
1
This datapack adds a simple timer to Minecraft, which you can use in your minigame or event. Here's how to use the datapack:
  • /function timer:show: Toggles visibility of the timer.
  • /scoreboard players set Timer IsVisible 0/1: Shows or hides the timer.
  • /function timer:play: Toggles the countdown.
  • /scoreboard players set Timer IsRunning 0/1: Starts or stops the countdown.
  • /function timer:reset: Sets the timer to 1 hour.

If you want to set the timer to another value, use the following commands:
  • /scoreboard players set Timer hour [number]
  • /scoreboard players set Timer min [number]
  • /scoreboard players set Timer sec [number]

You can overwrite the file of a reset function to set the timer to a different value or create multiple preset functions to make the datapack more pleasant to use.

I hope this datapack will be helpful to you,
Duchacek
CompatibilityMinecraft 1.13
toMinecraft 1.20
Tags

Create an account or sign in to comment.

2
12/10/2023 4:33 pmhistory
Level 13 : Journeyman Miner
AlphaMC_
AlphaMC_'s Avatar
Thanks dude this came in clutch for my minigame. Imma post it soon.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome