====== minecraft:run_function ====== The ''minecraft:run_function'' action type runs a [[mc>Function|function]]. The action is unsuccessful if the function does not exist, otherwise it returns the function's success result. This means that the [[mc>Commands/return|return]] command can be used to influence the result of this action. The function uses [[mc>Permission_level|permission level]] 2. ===== Fields ===== ^ Name ^ Description ^ Type ^ Default Value ^ | ''function'' | The function to call. | A resource location referencing the function | | | ''context'' | The context to use for applying the item modifier. | An [[actions:action_contexts#parameter_sets|action context parameter set]] | | ===== Example ===== { "type": "minecraft:run_function", "function": "example:my_function", "context": { "entity": "this", "position": "this" } }