跳到正文

Cotton Scripting API

作者:LemmaEOF

JSR-223 compliant scripting in Minecraft 1.14

收藏

介绍

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

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 的其他作品

查看全部 →