HomeJavaModsProbeJS Legacy
ProbeJS Legacy

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)

Example:

"mayUseItemAt"(arg0: $BlockPos$$Type, arg1: $Direction$$Type, arg2: $ItemStack$$Type): boolean

will be renamed to

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

Example:

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`
}

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:

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.curseforge.com/minecraft/modpacks/enlightened-6-expert) .
But after some research, I realized that 1.16.5, despite being one of the hottest modded versions, didn't even have a proper KubeJS helper mod.
So there it is, a ProbeJS fork for 1.16.5.
This is my first Java project and first Minecraft Mod project, and to be honest, ProbeJS is too tough for a coding noob like me. Thankfully I made it.

This project is licensed under LGPLv3, the same as the original ProbeJS.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more