Commands/function

Runs a function.


 * Syntax


 * Java Edition


 * Arguments


 * function


 * Must be of the format.


 * Result


 * Fails if the argument is not specified correctly.


 * If successful, runs a function through the entity or commandblock which ran the /function command.


 * Examples


 * To run a function located at 'data/functions/custom/example/test.mcfunction':
 * To run a function if there is a sheep within a radius of 2 blocks:
 * To run a function unless the executor is a player:


 * See also


 * Tag – To run a function every tick.