Origins JS (1.20.1)
warning
This document is for 1.20.1, for 1.21.1, see the 1.21 docs.
Origins JS is a KubeJS addon that lets you register custom Actions, Conditions, and Powers from JavaScript, and directly manipulate entity origins at runtime.
Quick Links
- Installation — prerequisites, setup, script locations
- API Reference — complete method reference
- Examples — practical, copy-pasteable recipes
What You Can Do
| Capability | How |
|---|---|
| Custom entity / block / item actions | OriginsJS.registerEntityAction(...) etc. |
| Custom conditions (entity, biome, damage, fluid…) | OriginsJS.registerEntityCondition(...) etc. |
| Fully scripted powers with tick / toggle / grant | OriginsJS.powerBuilder(...) |
| Change origins at runtime | holder.setOrigin(...) |
| Grant / revoke powers on the fly | holder.grantPower(...) |
Target Version
Minecraft 1.20.1 · Origins 1.20.1 (Fabric or Forge) · KubeJS 2001.6.5