Function tag (Java Edition)

A function tag is a group of functions. They can be called in the /function command with #<resource location>, which runs all the functions specified in the tag in the order of their first appearance in a tag. If a function is referenced multiple times in a tag and its sub-tags, it is run once.

Moreover, functions tagged in the minecraft:tick tag run every tick at the start of the tick and functions tagged in minecraft:load run once at the start of the tick after a server (re)load.

List of tags

This is a list of all function tags used directly by Minecraft. They are in the minecraft namespace. Adding a function to these tags has a direct effect.

load

Functions in this tag run when the world loads, or after a reload.

  • [NBT List / JSON Array] #minecraft:load (0 values)
    • Empty in vanilla.

tick

Functions in this tag run at the beginning of every tick.

  • [NBT List / JSON Array] #minecraft:tick (0 values)
    • Empty in vanilla.

History

Java Edition
1.1317w49bFunctions can now be tagged.
Functions tagged in #tick now run every tick in the beginning of the tick.
18w01aFunctions tagged in #load now run once after a (re)load.
1.14.1Pre-Release 1Functions in a tag are now executed in the order they are listed.
1.19.322w46aFunctions in the #load tag now run before functions in the #tick tag.
1.2124w21aMoved folder tags/functions to tags/function.

Navigation