DancingSnow0517 / ProbeJS

Supercharging your modpack experience.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ProbeJS

A data dumper and typing generator for the KubeJS functions, constants and classes.

Great thanks to @DAmNRelentless, @LatvianModder and @yesterday17 for invaluable suggestions during the development!

For things not dumped, or maybe if you want to add some more comments to class, methods or fields, you can add static documents to override auto-generated typing!

ProbeJS also has builtin documents to support some other mods' recipes, but it's not completed, if you want to add something to the document, maybe you can send a PR too!

Current progress of mod documents:

  • Minecraft (Completed)
  • Create (Completed)
  • Integrated Dynamics (Completed)
  • ArsNouveau (Completed)
  • ArtisanWorktables (Completed)
  • Botania (Builtin in KubeJS Botania)
  • Cucumber (Completed)
  • DankStorage (Completed)
  • ExtendedCrafting (Completed)
  • Mekanism (Completed)
  • Immersive Engineering (Completed)
  • Thermal Expansion (Completed)
  • Others (Please PR)

For the detailed information about documents, please refer to the wiki page.

1. Installation

  1. Get VSCode.
  2. Install the mod.
  3. In game, use /probejs dump and wait for the typings to be generated.
  4. Open the .minecraft folder in VSCode, you should see snippets and typing functioning.
  5. Use /probejs dump in case of you want to refresh the generated typing. If VSCode is not responding to file changes, press F1 and execute TypeScript: Restart TS server to force a refresh in Code.

2. Event Dump

  1. Use /probejs dump after events of interests are fired.
  2. After the typing generation is finished, check the change in IDE.

3. Showcase

Auto-completion snippets for Items, Blocks, Fluids, Entities and Tags:

image

Auto-completion, type-hinting for most of the functions and classes:

image

About

Supercharging your modpack experience.

License:GNU General Public License v3.0


Languages

Language:Java 99.8%Language:JavaScript 0.1%Language:TypeScript 0.1%