#How to make a timer

1 messages · Page 1 of 1 (latest)

hidden veldt
#

Is there a way to make a timer using scoreboard, and using functions, so no command blocks(I'm trying to make an addon) if you know a way,pls share

gloomy fog
crimson venture
#

@hidden veldt

#

Dm me

alpine cloud
#

scoreboard players add exampletimer timer 1

execute if score exampletimer timer matches 100.. run function blahblahblah

execute if score exampletimer timer matches 100.. run scoreboard players set exampletimer timer 0

#

that last one could be put in the function that you want it to do

#

to be more optimized

hidden veldt
#

K

hidden veldt
hidden veldt
gloomy fog
hidden veldt
#

I see

soft totem
#

functions are just like if you had a bunch of chain command blocks in a line, running one by one from top to bottom

#

you can do (pretty much) everything you can do with command blocks in functions except for comparators

hidden veldt
soft totem
#
{
  "values": [ "name_of_function" ]
}

and you can add more than one like this:

{
  "values": [ "name_of_function", "other_function", "whoo" ]
}
hidden veldt
#

So

#

That's should work?

alpine cloud
#

that's why I swapped to bridge

hidden veldt
#

Hmm