跳到正文

KubeJS sync

作者:Nathan22211

Sync your KubeJS scripts to a git (github only at current) repo

收藏

介绍

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

This mod lets you sync KubeJS scripts for your mod or modpack from a git(hub at current) instance to the Minecraft instance. That probably doesn’t need more explaining than that…

It’s not hard to setup. For mods: put under /data/<ns>/config/kubejs_sync/repos.json or kubejs/config/kubejs_sync.json for modpacks.

{
  "id": "fee",
  "github": "your-git-name/repo-name",
  "branch": "main",
  "requires": ["modid1"],
  "enabled": true
}

Then in the git(hub) repo. Have this file structure.

packs/<name>/pack.json   # { "requires": ["mekanism"] } as the contents
packs/<name>/startup_scripts/...
packs/<name>/server_scripts/...

 

Warning!!!: though the mod doesn’t execute files downloaded by it, and KubeJS is sandboxed. This may allow for any file type to be grabbed. If there’s any future exploit allowing for files to execute on download on your system, please be werry when this mod is used/required. I don’t hold responsibility for any malicious use of this mod’s syncing feature under GPLv3.

This mod only grabs files under /packs but at current I haven’t implemented sanity/file type checks

常见问题

KubeJS sync 支持哪些 Minecraft 版本?

KubeJS sync 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

KubeJS sync 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Nathan22211 的其他作品

查看全部 →