how can i add a timer?

Started by Nthextellar on Tue, 12/01/2020 - 16:09

Topic category: Help with MCreator software

Last seen on 09:06, 16. Dec 2020
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
how can i add a timer?
Tue, 12/01/2020 - 16:09

can you tell me if there's a way to make a timer and after the timer goes to 0, a certain event starts to happen?

thanks!, and sorry if my english is trash

Last seen on 15:17, 8. Sep 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You can use NBT tags only…
Tue, 12/01/2020 - 16:42

You can use NBT tags only put this:

Set NBT number tag [yourtag] to get NBT number tag [yourtag] + 1

if get NBT number tag = (your value)

 

Under that put the thing you want to do, this works with ticks so the value you put isn't in seconds. Don't forget if you are using a block put tile entity on it.