How do I make a delay when using a .mcfunction file? closed

Viewed 2586

I'm trying to make a map like the new Among Us game pooping about but I'm running into a problem.

I cant make a delay between commands.

I tried on my own, but changed to looking up tutorials but their only for Minecraft Java Edition. I tried many things like using the scoreboard command but it uses repeating commands which you cant do in a mcfunction files. I have also tried making a command that sets a delay but I cant use it in a .mcfunction file due to it being a 'custom' command Secondly I don't understand how to code commands anyway.

Can I have some help please?

1 Answers

Use schedule.

To create one:

schedule function <function> <time> [append|replace]

To clear one:

schedule clear <function>
Related