Origins JS
Origins JS is a KubeJS add-on that allows you to register custom actions, conditions, and powers using JavaScript. All custom types use the origins_js: namespace prefix.
Sections
- API Reference — Full method reference for HolderWrapper, Static Shortcuts, and JS type registrations
- Examples — Usage examples for managing origins/powers, custom actions, conditions, and JS powers
Type Mappings
Origins JS wraps the standard Origins types. See the main documentation for details on each:
| JS Registration | JSON type | Docs |
|---|---|---|
registerEntityAction | origins_js:js_entity_action | Entity Action Types |
registerBlockAction | origins_js:js_block_action | Block Action Types |
registerItemAction | origins_js:js_item_action | Item Action Types |
registerBiEntityAction | origins_js:js_bientity_action | Bi-entity Action Types |
registerEntityCondition | origins_js:js_entity_condition | Entity Condition Types |
registerBlockCondition | origins_js:js_block_condition | Block Condition Types |
registerItemCondition | origins_js:js_item_condition | Item Condition Types |
registerBiEntityCondition | origins_js:js_bientity_condition | Bi-entity Condition Types |
registerBiomeCondition | origins_js:js_biome_condition | Biome Condition Types |
registerDamageCondition | origins_js:js_damage_condition | Damage Condition Types |
registerFluidCondition | origins_js:js_fluid_condition | Fluid Condition Types |
powerBuilder(id) | origins_js:js_power | Power Types |