명령어 참조
Minecraft /function Command
developer자바 에디션베드락 에디션
단일 게임 틱에서 명령어 시퀀스를 포함하는 함수 파일(.mcfunction)을 실행합니다.
버전 호환성
자바 에디션:1.21.4 (1.13+)
베드락 에디션:1.21.60
명령어 문법
모든 에디션
/function <name>인수 설명
nameResource ID필수Namespace location of the function (e.g. namespace:function_name).
실용적인 예시
/function arena:start_matchExecutes the commands defined in the "start_match" function within the "arena" datapack.
중요 참고사항
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.