NetJS (KubeJS Addon) logo

NetJS (KubeJS Addon)

Mod

by KostromDan

Addon for KubeJS for very limited safe network interaction.

Type

Mod

CurseForge Downloads

134,991

CurseForge ID

888356

Last Updated

Apr 13, 2026

Description

Description:
Addon for KubeJS for very limited safe network interaction.
Adds NetJSWrapper named NetJS which you can use anywhere in your scripts.
The mod itself does nothing.
Features:

// async, accessing the network will be a separate thread, the game will continue to run, and the callback will be called when the result is received.

  • NetJS.getPasteBin('3zCF8MM6', result => {})
  • NetJS.getGists('3f1cd831af032e52238ef161bdd715b3', result => {})
    // linear, not recomended, because will stop main client/server thread utill result is received.
  • NetJS.getPasteBin('3zCF8MM6', false, result => {})
  • NetJS.getGists('3f1cd831af032e52238ef161bdd715b3', false, result => {})

Usage:

https://github.com/KostromDan/NetJS/branches

Similar Mods

Included in Modpacks

External Resources