MoLang Queries
Queries Argon adds for MoLang expressions, for example in animations and values.
| Query | Returns | Description |
|---|---|---|
argon.dodge_direction_forward | Number | How much of the current Dodge points forward, from -1 (backward) to 1, or 0 when not dodging. |
argon.dodge_direction_side | Number | How much of the current Dodge points sideways, from -1 to 1, or 0 when not dodging. |
argon.facing_block(distance) | Boolean | Whether a block is within the given distance along the entity's line of sight.
|
argon.item_energy(slot) | Number | The energy stored in the item in the given slot, or 0 if there is none.
|
argon.item_energy_level(slot, start, step, min_level, max_level) | Number | The stored energy of the item in a slot as a level: min_level at or below start, then one more level for every step of energy, up to max_level.
|
argon.swing_arm_left | Boolean | Whether the entity's left arm is swinging, counting offhand swings. |
argon.swing_arm_right | Boolean | Whether the entity's right arm is swinging, counting offhand swings (unlike palladium.attack_on_right_arm, which only follows the main hand). |
argon.swing_arm_yaw | Number | The body twist of the current swing in degrees, doubled like the vanilla arm yaw and signed for whichever arm is swinging, main hand or offhand. |
argon.wall_crawl_roll | Number | The roll, in degrees, of the body on the surface Wall Crawling is attached to, following where the entity looks. 0 when not on a surface. |