跳到正文

Loop Lib

Adds easy looping to Minecraft datapacks

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

loop-lib

Adds easy looping for minecraft datapacks!

How to use it?

To create a loop run the ll:create_loop function. It requires the following arguments:

  • id: Type string, the id of the loop
  • loops: Type int, the number of loops to do
  • function: Type string, the fucntion to run every loop
  • args: Type object, any arguments for the function

NOTE The function also gets passed the id of the loop and its current loop index
IMPORTANT The loop index counts down rather than counting up

NOTE For examples check the sample folder inside the datapack, you can also run them to see how they work

常见问题

Loop Lib 支持哪些 Minecraft 版本?

Loop Lib 支持 Minecraft Java 版 1.21.6–1.21.8,共 3 个版本。下载时注意选择和你游戏版本一致的文件。

Loop Lib 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分

SmoothTurtle872 的其他作品

查看全部 →