Entity Scheduler
/schedule but with entity context
Quick challenge
How far can you run before the mobs catch you?
Minecraft check
Confirm your run
Complete the quick check to get your code.
Entity Scheduler
/schedule but with entity context. So the scheduled function runs at (and at) the specified entity.
*Beware of performance if used too much at once since it's executing all scheduled functions as at the specified entity*
Example
```mcfunction
Vanilla
schedule function example:function 20t ``` The above vanilla function (with no entity context) becomes this ```mcfunction
scheduler
function scheduler:args/set_entity with entity @r function scheduler:args/set {function: "example_function", ticks: 20} function scheduler:schedule with storage scheduler:args ```
A entity scheduled function can also be cleared via an entity or the function name ```mcfunction
clears via an entity
function scheduler:clear_entity with entity @r
clears via the function name
function scheduler:clear_function {function: "example_function"} ```