Zum Hauptinhalt springen
MC COMMANDS logoMC COMMANDS
Befehlsreferenz

Minecraft /function Command

developerJava EditionBedrock Edition

Führt eine Funktionsdatei (.mcfunction) aus, die eine Befehlssequenz in einem einzigen Game-Tick enthält.

Versionskompatibilität

Java Edition:1.21.4 (1.13+)
Bedrock Edition:1.21.60

Befehlssyntax

Beide Editionen/function <name>

Argumente Erklärt

Praktische Beispiele

/function arena:start_match

Executes the commands defined in the "start_match" function within the "arena" datapack.

Advertisement

Wichtige Hinweise

Functions are the foundation of custom game loops, mini-games, and map setups. Since they run on the server side in a single tick, they are significantly more efficient than long chains of command blocks.

Advertisement