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
nameResource IDErforderlichNamespace location of the function (e.g. namespace:function_name).
Praktische Beispiele
/function arena:start_matchExecutes the commands defined in the "start_match" function within the "arena" datapack.
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.