Overview of Origins JS for KubeJS
origins_js: namespace prefix. This documentation applies to version 1.21.1.website·Indexed 31 days ago
https://docs.iafenvoy.comDocumentation for IAFEnvoy, featuring guides on Mixin annotations (such as @Inject, @ModifyArg, and @Overwrite), the ModList Dashboard tool including its AI agent system and configuration, and technical references for Minecraft modding modules like Origins and Pendulum.
origins_js: namespace prefix. This documentation applies to version 1.21.1.Codecs for data loading, meaning field names and object shapes match the mod's implementation. Purebred dragon and breath-type registries are automatically synchronized to clients by NeoForge. Note that hybrid dragons are not registry entries; they are generated at runtime from two purebred dragon registry Holders.Condition types are used to filter when powers activate or when actions execute. They are categorized by the target they evaluate:
and, or, not, chance, and constant.Action types execute effects on entities, blocks, or items. They are categorized by their target:
and, chance, choice, delay, if_else, if_else_list, and side.Power types define the abilities granted to an origin and are categorized by their primary function:
/resource command is an experimental tool used to manipulate, retrieve, and perform operations on resource powers and cooldown powers. Because it is experimental, its syntax and behavior are subject to change without warning.minVersion and maxVersion).// Example of using a registered integration type in a JSON field
{
"type": "origins_integration:tail"
}Pendulum exposes its JavaScript API through grouped objects. All API functions are synchronous, meaning they block execution until the corresponding in-game action is completed.
Available API objects include:
mc.player: Handles movement, rotation, interaction, and player state.mc.world: Used for block, entity, and environment queries.mc.inv: Manages inventory and container operations.mc.gui: Handles screen-level GUI interactions.baritone (alias br): Provides pathfinding, mining, farming, and building capabilities (optional).mc (aliases minecraft, game): Provides root utilities for chat, commands, and script control.