跳到正文

CC: Tweaked Autorun Datapack

作者:1Zenith1

CC: Tweaked Autorun Datapack - Makes every ComputerCraft computer automatically run any script ending with _autorun on startup or server reboot.

收藏

介绍

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

CC: Tweaked Autorun Datapack

Makes every ComputerCraft computer automatically run any script ending with _autorun on startup or server reboot.

CC: Tweaked

Installation

  1. Download this datapack (the .zip file).
  2. Put it into the datapacks folder of your Minecraft world.
  3. Done. It works on all computers in that world.

To make it work globally for all new worlds, use a mod like Paxi or OpenLoader and place the datapack there.

How to make an autorun script

  1. Open any ComputerCraft computer.
  2. Create a Lua file with a name ending in _autorun.lua. Example: my_server_autorun.lua
  3. Write your code inside.
  4. Save and reboot the computer.

##
That’s it – your script will start automatically every time.

Example use cases:
Keep your server always active.
Keep your miners always active.
Keep your password‑protected redstone door always active.

常见问题

CC: Tweaked Autorun Datapack 支持哪些 Minecraft 版本?

CC: Tweaked Autorun Datapack 支持 Minecraft Java 版 1.20–1.20.1,共 2 个版本。下载时注意选择和你游戏版本一致的文件。

CC: Tweaked Autorun Datapack 怎么安装?

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

评论

登录后评论和评分