minetest.after

Description
This calls a function after time seconds. It can also be used to add a function to the end of the queue of functions becoming executed by minetest. is optional; to pass multiple parameters, pass a table.

after(1, funct after(1, (funct […] → the second function becomes executed > 1s after the first one

after(1, funct […] after(2, (funct […]

→ the second function becomes executed ca. 1s after the first one

Parameters
1: Time that has to pass for the function to be ran

2: Function

3: Optional - parameters to the function, use a list for multiple