跳到正文

TS Modify

作者:pingsu_88666

TS Modify is a utility mod for Minecraft Forge 1.20.1 and KubeJS. It lets KubeJS scripts use TypeScript, automatically transpiling them into Rhino-compatible JavaScript at runtime, with module imports, and script compilation caching.

收藏

介绍

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

TS Modify adds TypeScript support to KubeJS on Minecraft Forge 1.20.1.

  Write KubeJS scripts with TypeScript syntax, including types, interfaces, enums, and modern language features. TS Modify automatically transpiles supported .ts, .tsx, .mts, and .cts files into Rhino-compatible JavaScript when KubeJS loads them.

  It also provides module import/export support for relative scripts and shared_scripts, keeps server and client module contexts separate, and caches compiled Rhino scripts to speed up unchanged script reloads.

常见问题

TS Modify 支持哪些 Minecraft 版本?

TS Modify 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

TS Modify 怎么安装?

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

评论

登录后评论和评分

pingsu_88666 的其他作品

查看全部 →