? 什么是 Funky?
Funky 是一个体积非常小的模组,它添加了两个新命令,允许你无需数据包即可运行 .mcfunction 文件(或命令语法中的任何其他文件),并可选择要运行的具体文件。
❓ 那么我该如何使用它呢?
第一步。? 创建一个包含命令的文件。
这一步很简单。打开你喜欢的文本编辑器,比如我用的是记事本 :),然后开始输入命令(不需要斜杠)或者直接复制粘贴它们。
say hi
summon villager
kill @e[type=minecraft:villager]
say bye
如果你已经有了一个 .mcfunction 文件,其语法完全相同。
第二步。? 保存该文件。
这一步也非常简单。点击保存按钮,并将其保存到 Minecraft 目录中新建的一个文件夹中。确保这个新建的文件夹名为 "funky"。文件的默认名称应为 "funky" 且不带扩展名,不过在游戏中你可以更改实际运行的文件名。
如果你已经有一个 .mcfunction 文件,请确保将其放在 "funky" 文件夹中进行播放。
第三步。? 启动 Minecraft。
我也不知道怎么说,就像平常一样加入一个世界即可。确保你拥有管理员权限(等级 4),因为你需要这些权限才能使用此模组中的命令。
第四步。⌨️ 运行命令。
你可能想要运行的第一个命令是 /funky.filename <your-new-file-name>。将 <your-new-file-name> 替换为你保存命令文件时所用的名称(如果你没有将其保存为 "funky")。
要实际执行命令,请输入 /funky.exec,命令就会运行!
注意:请确保将 /gamerule maxCommandChainLength 设置为较高的数值,否则所有命令可能无法全部运行!
注意:命令在未加载的区块中不会运行(这与数据包中的函数不同)
如果发现任何重大错误或者在使用模组时遇到问题,请留言评论!
? What is Funky?
Funky is a very small mod that adds in 2 new commands that allow you to run .mcfunction files (or any other file in the command syntax) without the need of a datapack and to choose between which one to run.
❓ Well how do I use it?
Step 1. ? Create a file with commands in it.
This step is straightforward. Open up your favorite text editor, mine is notepad :), and start typing in commands (without the slash) or copy and paste them.
say hi
summon villager
kill @e[type=minecraft:villager]
say bye
If you already have a .mcfunction, it is the exact same syntax.
Step 2. ? Save the file.
This one is also very simple. Click the save button and save it in a new folder in the Minecraft directory. Make sure the new folder is called "funky". The default name for the file should be "funky" with no extension, HOWEVER, in game, you can change which file will be ran.
If you already have a .mcfunction file, make sure to play it in the "funky" folder.
Step 3. ? Play Minecraft.
I don't know, just like, join a world. Make sure you have owner permissions (level 4), as you need them to use the commands in this mod.
Step 4. ⌨️ Run the commands.
The first command you MIGHT want to run is /funky.filename <your-new-file-name>. Replace <your-new-file-name> with whatever you saved your file with the commands as (if you didn't save it as "funky").
To actually use you the command, do /funky.exec and the command will run!
Note: Make sure to have /gamerule maxCommandChainLength set to a high number or else all the commands may not run!
Note: The commands will not run in unloaded chunks (unlike functions in datapacks)
If there are any massive bugs or you are running into trouble with the mod, please leave a comment!
评论 0
登录后参与评分
还没有评论,来抢沙发吧