← Back to Command Directory ← Back to Home

/function

Runs a function from a data pack.

Syntax

/function <name>
/function <name> <tag>

Parameters

NameRequiredDescription
nameYesFunction identifier.
tagNoFunction tag to run.

Examples

/function mypack:setup
/function #minecraft:tick

Notes

Version Differences

Java-only in current editions.

Related Commands