.MCFUNCTION 文件扩展名

Minecraft Function

开发者 Mojang
受欢迎程度
4.3  |  101 
 

什么是 MCFUNCTION 文件?

An MCFUNCTION file is a Minecraft function, which contains a list of Minecraft commands. After adding an MCFUNCTION file to the game, players can quickly execute the commands the file contains. For example, executing an MCFUNCTION file may allow a player to say a pre-written statement in chat, teleport, or automatically move blocks.

更多信息

在 Microsoft Visual Studio Code 中打开的 .mcfunction 文件截图
在 Microsoft Visual Studio Code 中打开的 MCFUNCTION 文件

Minecraft is a popular block-based construction and exploration game. Two versions of the game exist: the original Java Edition and the later Bedrock Edition.

In both versions, players can use MCFUNCTION files to add new game functions, which they can execute in the chat window by typing /function and selecting the appropriate MCFUNCTION file. Functions contain a list of one or more commands, all of which are executed when the player executes the function. For example, a function can be used to execute multiple fill commands, quickly filling a specific region with sets of pre-specified blocks.

Players write and edit MCFUNCTION files in text editors, such as Microsoft Visual Studio Code, Microsoft Notepad or Apple TextEdit. They then import them into Minecraft, using slightly different methods in each edition.

如何打开 MCFUNCTION 文件

You can open an MCFUNCTION file and edit the commands it contains with Microsoft Visual Studio Code (multiplatform) or any other text editor. If you're using Visual Studio Code, installing the Data-pack Helper Plus extension provides helpful MCFUNCTION-related features, such as syntax highlighting.

How to import an MCFUNCTION file into Minecraft

To import an MCFUNCTION file into Minecraft Java Edition, you must place it in a data pack's functions sub-directory:

~/​.minecraft/​saves/​[WORLD_NAME]/​datapacks/​[DATA_PACK_NAME]/​data/​[DATAPACK_ID]/​functions

(This path may be different in some versions of Minecraft Java Edition.)

You'll then be able to use the function your MCFUNCTION contains in the associated world.

To import an MCFUNCTION file into Minecraft Bedrock Edition, you must place it into a behavior pack's functions directory. Then, you must import that behavior pack into Minecraft Bedrock Edition.

使用File Viewer Plus打开 400 多种文件格式。免费下载

可打开或引用 MCFUNCTION 文件的程序

分类: 游戏
更新时间: 2023-04-13

验证者 FileInfo.com

FileInfo.com 团队 独立研究了本页面列出的 Minecraft Function 文件格式和 Mac, Windows, Linux, Android, and iOS 应用。 我们的目标是达到 100% 的准确率,并且仅发布我们已验证过的文件类型信息。

如果您想为此页面提出新增或更新建议,请告诉我们