适用于 Minecraft 1.20.1, 1.21.1 的 ProbeJS 模组
通过添加 VSCode 支持,极大地增强你的 KubeJS 脚本编写体验。
0. ProbeJS v8.0
欢迎来到未来!由于 TypeScript 经历了一次重大更新,弃用了 ProbeJS 在 v7.7.2 中的类型结构,我们重写了该模组和扩展,以兼容新的 TypeScript 版本(并希望能向后兼容之前的 TypeScript 版本)。
然而,由于 TypeScript Native(tsgo)尚未完全实现,模组中缺少一些功能,当 TypeScript Native 准备就绪后,模组将持续更新以添加缺失的功能。
v8.0 的新内容:
- 兼容 tsgo 的类型声明。TypeScript Native 是用 Go 编写的新 TypeScript 编译器,比原版 TypeScript 快 10 倍,并且使用的内存少得多。我们测试了 tsgo,在 ATM10 上显示物品字面量补全时间不到 500ms,类/事件补全即时完成。
- 一个 GUI,允许你在游戏内轻松配置模组并显示导出进度。此外,由于 tsgo 尚不支持语言插件,它允许你将 require() 转换为 Java.loadClass()。
- (希望)更正确的类型生成。由于类型解析被重写,之前版本中的大多数问题现已修复。
- 对智能体和 LLM 的深度支持。你现在可以让 DeepSeek 或 GPT 等 AI 生成 100% 正确的 KubeJS 代码!
1. 安装
- 获取 VSCode。并安装 Microsoft 的 Typescript (Native Preview) 扩展。
- 安装模组,并安装 ProbeJS VSCode 扩展。
- 在游戏中,使用 /probejs 并点击导出按钮。
- 在 VSCode 中打开 .minecraft 文件夹,你应该能看到代码片段和类型提示正常工作。
- 如果你想刷新生成的类型,请重新导出。如果 VSCode 没有响应文件更改,请重启 VSCode 以强制刷新扩展和语言服务器。
如何安装 ProbeJS
With Millida Launcher
Install Millida Launcher
The launcher is free: download it at millida.net/launcher and sign in with any nickname.
Click “Install” on this page
The launcher opens and installs the mod for Minecraft 1.18.1–1.21.1 on Fabric, Forge or NeoForge automatically.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Fabric, Forge or NeoForge
The loader must match the game version of the mod file, for example Minecraft 1.21.1. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file ProbeJS-8.0.3.jar (3.2 MB) for your game version and loader.
Put it in the mods folder
The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it.
Launch the loader profile
Open “Mods” in the main menu: ProbeJS should be in the list.
Minecraft 1.21.1 runs on Java 21: with a different Java version the game may close right after launch.
版本
含依赖项
| Minecraft | 加载器 | 文件 | 日期 | 操作 |
|---|---|---|---|---|
| 1.21.1 | NeoForge | ProbeJS-8.0.3.jar3.2 MB | ||
| 1.20.1 | NeoForge, Forge | probejs-6.0.1-forge.jar2.3 MB | ||
| 1.20.1 | Fabric | probejs-6.0.1-fabric.jar2.2 MB | ||
| 1.19.2 | Forge | probejs-4.1.5-forge.jar713 KB | ||
| 1.19.2 | Fabric | probejs-4.1.0-fabric.jar709 KB | ||
| 1.18.1 | — | probejs-2.2.0-build.57.jar136 KB | ||
| 1.18.1 | Forge | probejs-1.5.0-build.27.jar99.5 KB |
评价
成为第一个评价 ProbeJS 的人

