Skip to content
SomeRandomNoobKekeke edited this page Mar 27, 2026 · 3 revisions

So, mod does 3 things:

  • It adds some commands to control js engine from barotrauma console
  • It scans all enabled mods for "JS" folder, when it finds one it runs all js script in "JS/Autorun" folder with module resolver pointing to "JS" folder
  • It accepts debugger connections

Basically you can interact with any C# objects and types and patch the game with Harmony

Check Example mod

It uses ClearScript so also read its docs, api refs may contains rare sneaky js/c# examples, and if you're completely lost you can try digging in its tests

Clone this wiki locally