how can i add a timer?

Started by Nthextellar on

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:
  • MCreator plugins:
  • Comments:
how can i add a timer?

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 05:42, 27. Mar 2022
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.