介绍
This project requires Fabric.
Cotton Scripting allows you to run scripting languages from data packs. This means you can use JavaScript, Python, Lua, Ruby, and more to program server-side experiences similar to vanilla functions.
Disclaimer: Currently, the environment for scripting is “bring your own interpreter”. Cotton Scripting does not add any interpreters on its own, but JavaScript support is natively included in Java, and support for other languages can be added through add-on mods. Multiple interpreter add-ons are planned for release soon.
To add a script, put it in a datapack in the “data/<namespace>/scripts” folder. Run a /reload on the server side and it will be ready to call. Use the /script command as an op or from a command block to run a script.
For more detailed information, please view the wiki.
常见问题
Cotton Scripting API 支持哪些 Minecraft 版本?
Cotton Scripting API 支持 Minecraft Java 版 1.14–1.14.1,共 2 个版本。下载时注意选择和你游戏版本一致的文件。
Cotton Scripting API 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 模组加载器,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
LemmaEOF 的其他作品
查看全部 →Ears
几乎适用于所有版本的更多皮肤自定义选项,以及对 1.9 之前版本的皮肤回移植与修复。
Better Boilers
半自由形式的多方块蒸汽锅炉
LibCapableData (LibCD)
改进 Fabric 和 1.14 的数据处理能力
Iron Bundles
适用于 Fabric 和 1.17 的大容量收纳袋
评论
登录后评论和评分