TS Modify

TS Modify

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.

KubeJS

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.