ProbeJS Legacy

⭐ — (0 endorsements) 📥 70,756 downloads 📌 v6.2.0 📅 1/29/2026
🟡 Updated this year

By ZZZank · forge

⬇ Download Mod Source: Modrinth ↗ 📅 Updated: 5/31/2026 📅 Created: 1/29/2026
⚠️ Install Order · 2 steps
1🛠️ Forge — Minecraft Forge (mod loader) Download ↗
2🛠️ Fabric — Fabric Loader Download ↗

Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.

🔍 Analysis

  • 👍 0.0% endorsement rate
  • 🏆 #95 of 386 forge mods in this game by downloads

📋 About This Mod

# ProbeJS Legacy is an unofficial continuation of ProbeJS for KubeJS versions abandoned by official ProbeJS. ## Usage 1. You need to install ProbeJS Legacy, obviously. 2. Enter a singleplayer world. Use `/probejs dump` to export datas gathered by ProbeJS Legacy. For first-time users, this will be done automatically when you join the world. 3. Open your game instance folder using VSCode. 4. Enjoy! Note0: type `@item` or `@block_tag` to see snippets generated. Note1: game instance folder is where you can see the `kubejs` folder directly. Note2: Other IDEs with support for TypeScript typing (.d.ts) should also work. ## New Features (Compared to ProbeJS) - Simulated `Internal` - ProbeJS Legacy will now generate a `Internal` namespace, allowing users to migrate from ProbeJS 6 or ProbeJS Legacy 3 easily. - Example: `Internal.ItemStack` and `Internal.ItemStack_` - Better Param Naming - Param names that conflict with TypeScript will now be renamed in a better way. - Param names in Method/Constructor, if in `arg123` format, will be renamed to a new name generated from its type. Example: ```typescript "mayUseItemAt"(arg0: $BlockPos$$Type, arg1: $Direction$$Type, arg2: $ItemStack$$Type): boolean ``` will be renamed to ```typescript "mayUseItemAt"(blockPos0: $BlockPos$$Type, direction1: $Direction$$Type, itemStack2: $ItemStack$$Type): boolean ``` - Better `$Class<T>` - ProbeJS will transform `$Class<T>` into `typeof T`, but ignoring many conditions where this should not be done. ProbeJS Legacy makes it more correct. - Some basic classes, for example `java.lang.String` and `java.lang.Character`. can now be dumped. - The `T` in `$Class<T>` is now actually usable for type hint. - better `instanceof` - ProbeJS Legacy can now properly support `obj instanceof $SomeClass`, where `$SomeClass` is a class loaded via `java(...)` or `Java.loadClass(...)`. Example: ```js const $BoatItem = java("some.path.to.BoatItem") let item = Item.of("boat").item; // here the type of `item` is `$Item` if (item instanceof $BoatItem) { // here the type of `item` can be inferred to `$BoatItem` } ``` - Field Beaning - Some fields will be transformed into getter+setter, in order to provide better support for TypeWrapper - Consider a `obj` with a field like this: `block: $Block`, and `obj.block = "minecraft:stone"` is a valid syntax in KubeJS. This had no typing support before, but now ProbeJS Legacy can support it properly. - Typing files sharing - By extracting common parts in dumped classes, the total typing files size can be much smaller than before. - Another benefits is that TS server can now reuse common typings between 3 script types, improving IDE performance. - Better comment formatting - blank lines at the front/back will now be ignored - comments will be formatted as one line if there's only one valid line - Side only methods (marked by `@OnlyIn`) will have comments telling you that it's server-only or client-only. - `xxx.d.ts` file with too many modules in it will now be split into smaller files automatically, providing better IDE performance - Method/Field in declaration files are now naturally sorted. - `gloabl` resolving: values you put into `global` can be resolved now. Configure resolving depth via `'global' Resolving Depth` config. - And many internal changes. This Readme will certainly be too long if I write them all down. ## Collecting data ### KubeJS Event For 1.16.5, ProbeJS Legacy will record all posted event. If you're unable to find some common events, try triggering it before dumping data. Example: `block.place` event is triggered by placing a block. For 1.20.1, all registered KJS events will be dumped automatically, no need for triggering. ### Forge Event ProbeJS Legacy will record all Forge events, regardless of whether they have been posted or not. This behaviour can be altered via `Class Scanner` config. ### Java Classes ProbeJS Legacy will use multiple approaches for collecting Java classes. These classes will be recorded: - Classes loaded manually, aka those loaded via `java(...)` or `Java.loadClass(...)` - Classes referenced by JS bindings, for example `AABB` and `Text`. - Classes references by known classes, for example `Item.class` referenced by `ItemStack.class`. - Registry objects, for example `BoatItem` for vanilla boats. By default this will skip non-vanilla objects, and can be altered via `Registry Object Filter` config. - Classes from certain mods. See `Mods with forced Full Scanning` config. - Classes read from cache file. The cache file is saved to `<your instance folder>/.probe/classes.txt`. - Classes found by class scanner. See `Class Scanner` config. ## Why Initially, all I want to do is just find some sort of doc or helper for KubeJS script writing, so that I won't need to feel such pain in the arse when developing Enlightend6Expert((https://www.cursef

# ProbeJS Legacy

is an unofficial continuation of ProbeJS for KubeJS versions abandoned by official ProbeJS.

1. You need to install ProbeJS Legacy, obviously. 2. Enter a singleplayer world. Use `/probejs dump` to export datas gathered by ProbeJS Legacy. For first-time users, this will be done automatically when you join the world. 3. Open your game instance folder using VSCode. 4. Enjoy!

Note0: type `@item` or `@block_tag` to see snippets generated.

Note1: game instance folder is where you can see the `kubejs` folder directly.

Note2: Other IDEs with support for TypeScript typing (.d.ts) should also work.

## New Features

(Compared to ProbeJS)

  • Simulated `Internal`
  • - ProbeJS Legacy will now generate a `Internal` namespace, allowing users to migrate from ProbeJS 6 or ProbeJS Legacy 3 easily.
  • - Example: `Internal. ItemStack` and `Internal. ItemStack_`
  • Better Param Naming
  • - Param names that conflict with TypeScript will now be renamed in a better way.
  • - Param names in Method/Constructor, if in `arg123` format, will be renamed to a new name generated from its type.

```typescript "mayUseItemAt"(arg0: $BlockPos$$Type, arg1: $Direction$$Type, arg2: $ItemStack$$Type): boolean ``` will be renamed to

```typescript "mayUseItemAt"(blockPos0: $BlockPos$$Type, direction1: $Direction$$Type, itemStack2: $ItemStack$$Type): boolean ```

  • Better `$Class`
  • - ProbeJS will transform `$Class` into `typeof T`, but ignoring many conditions where this should not be done. ProbeJS Legacy makes it more correct.
  • - Some basic classes, for example `java.lang. String` and `java.lang. Character`. can now be dumped.
  • - The `T` in `$Class` is now actually usable for type hint.
  • better `instanceof`
  • - ProbeJS Legacy can now properly support `obj instanceof $SomeClass`, where `$SomeClass` is a class loaded via `java(...)` or `Java.loadClass(...)`.

```js const $BoatItem = java("some.path.to. BoatItem")

let item = Item.of("boat").item; // here the type of `item` is `$Item` if (item instanceof $BoatItem) { // here the type of `item` can be inferred to `$BoatItem` } ```

  • Field Beaning
  • - Some fields will be transformed into getter+setter, in order to provide better support for TypeWrapper
  • - Consider a `obj` with a field like this: `block: $Block`, and `obj.block = "minecraft:stone"` is a valid syntax in KubeJS. This had no typing support before, but now ProbeJS Legacy can support it properly.
  • Typing files sharing
  • - By extracting common parts in dumped classes, the total typing files size can be much smaller than before.
  • - Another benefits is that TS server can now reuse common typings between 3 script types, improving IDE performance.
  • Better comment formatting
  • - blank lines at the front/back will now be ignored
  • - comments will be formatted as one line if there's only one valid line

- Side only methods (marked by `@OnlyIn`) will have comments telling you that it's server-only or client-only.

- `xxx.d.ts` file with too many modules in it will now be split into smaller files automatically, providing better IDE performance

- Method/Field in declaration files are now naturally sorted.

- `gloabl` resolving: values you put into `global` can be resolved now. Configure resolving depth via `'global' Resolving Depth` config.

- And many internal changes. This Readme will certainly be too long if I write them all down.

## Collecting data

### KubeJS Event

For 1. 16. 5, ProbeJS Legacy will record all posted event. If you're unable to find some common events, try triggering it before dumping data. Example: `block.place` event is triggered by placing a block.

For 1. 20. 1, all registered KJS events will be dumped automatically, no need for triggering.

### Forge Event

ProbeJS Legacy will record all Forge events, regardless of whether they have been posted or not. This behaviour can be altered via `Class Scanner` config.

### Java Classes

ProbeJS Legacy will use multiple approaches for collecting Java classes.

These classes will be recorded: - Classes loaded manually, aka those loaded via `java(...)` or `Java.loadClass(...)` - Classes referenced by JS bindings, for example `AABB` and `Text`. - Classes references by known classes, for example `Item.class` referenced by `ItemStack.class`. - Registry objects, for example `BoatItem` for vanilla boats. By default this will skip non-vanilla objects, and can be altered via `Registry Object Filter` config. - Classes from certain mods. See `Mods with forced Full Scanning` config. - Classes read from cache file. The cache file is saved to `/.probe/classes.txt`. - Classes found by class scanner. See `Class Scanner` config.

Initially, all I want to do is just find some sort of doc or helper for KubeJS script writing, so that I won't need to feel such pain in the arse when developing Enlightend6Expert((https://www.cursef

🤖 AI-enhanced — based on mod data

📊 Mod Details

Game
Minecraft Mods
Author
ZZZank
Version
6.2.0
Downloads
70,756
Endorsements
0
Category
forge
Created
1/29/2026
Updated
5/31/2026
Game Versions
1.20.1
Tags
library, utility

🔧 How to Install Minecraft Mods Mods

Download from Modrinth. Use Prism Launcher or drop into your mods folder.

📖 Full step-by-step install guide for Minecraft Mods →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.

❓ Frequently Asked Questions

Which Minecraft Mods versions does ProbeJS Legacy support?

The author lists 1.20.1. Other versions may work but are untested by the author.

What is the latest version of ProbeJS Legacy?

Version 6.2.0, published 2026-05-31 with 70,756 downloads recorded at the source.

Keep browsing — more Minecraft Mods mods await

📋 All Minecraft Mods Mods 🏆 Top 25 📂 More forge 👤 More by ZZZank 🔎 Similar Mods 🌐 Best forge (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods