Schedule Blocks
Schedule blocks allow you to quickly create and call a new function within a schedule command.
schedule <delay> [replace|append] {
<...>
}
If you leave out replace or append, the schedule block uses append.
Examples
Schedule Function
example.mcb
function a {
schedule 1t {
say Hello World!
}
}
example:a.mcfunction
schedule function example:zzz/0 1t append
example:zzz/0.mcfunction
say Hello World!
Function References
schedule function and schedule clear accept the same function references as function, including ./, ../, * and ^ references. Add # before a reference to schedule or clear a function tag.
Examples
Relative References
example.mcb
function a {
schedule function ./b 1t
schedule clear ./b
schedule clear #./my_tag
}
example:a.mcfunction
schedule function example:b 1t replace
schedule clear example:b
schedule clear #example:my_tag