Conditions
Conditions are checks that return true or false. They are used in ability states, targets, visibility rules and anywhere else a condition is accepted. Every condition that comes with Argon is listed below.
61 listed · Argon 1.1.0
Ability Bar Active
True while this ability sits in a slot of the given argon:ability_bar. Uses the crouch variant of the slot if it has one and the entity is crouching.
Ability Bar Active (Crouch)
True while the entity is crouching and this ability sits in a crouch slot of the given argon:ability_bar.
Ability Enabled Activation
Like the vanilla "Ability enabled" condition, but sticky. Once the ability is seen enabled, it keeps passing for the given time after it stops.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
ability | Ability Reference | The ability to watch for being enabled. | ✓ | / |
duration | Integer, Time String ("40s", "2m", etc.) | How long this stays true after the referenced ability was last seen enabled. | ✓ | / |
Ability Type Enabled Activation
Like the vanilla "Ability type enabled" condition, but sticky. Once any ability of "ability_type" is seen enabled, it keeps passing for the given time after they stop.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
ability_type | Ability Type ID(s) / Tag | The ability type(s) to watch for being enabled. | ✓ | / |
duration | Integer, Time String ("40s", "2m", etc.) | How long this stays true after an ability of a matching type was last seen enabled. | ✓ | / |
Advancement
Checks if the user has a given advancement. Server only, so it is always false on the client. Don't use it in a render_layer's conditions.
Beam Firing
True while a charged Energy Beam is showing a shot, and for "lead" ticks before the next shot of a multi-shot beam. Use it to raise an arm for each shot.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
ability | Ability Reference | The Energy Beam ability that has a "charge" setting. | ✓ | / |
lead | Integer, Time String ("40s", "2m", etc.) | How long before the next shot of a multi-shot beam this turns true. | ✗ | 0 |
duration | Integer, Time String ("40s", "2m", etc.) | If set, only true for this long after each shot instead of the whole time it shows. | ✗ | / |
Biome
Checks if the user is currently standing in one of the specified biomes.
Biome Swap Area
Checks if the user stands inside an active argon:biome_swap area, optionally one made with a specific biome.
Block Below
Checks if the block directly beneath the user's feet matches "blocks". Fluids count as blocks, so "minecraft:water" is true while standing on water, for example with fluid walking.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
blocks | Block ID(s) / Tag | The block(s) to look for, as explicit block IDs, a tag ("#namespace:tag"), or a mix of both. | ✓ | / |
distance | Double | How many blocks below the feet are searched. 0.5 only checks the block the user is standing on, a larger value also passes while hovering above a matching block. | ✗ | 0.5 |
require_ground | Boolean | If true, the user also has to be on the ground (or on a fluid they can walk on). | ✗ | false |
Carriable
True while you look at something palladium:carry could pick up: any other living entity within "range" blocks. Handy for showing a prompt only when there is a target.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
range | Double | How far along the look direction to search, in blocks. Left out, it uses the referenced argon:carry ability's range, or 3 blocks without one. | ✗ | / |
ability | Ability Reference | An argon:carry ability ("namespace:power#ability") to check for. A target only counts if that ability could grab it: clear line of sight, not already carried, allowed by allow_mobs / allow_players. Left out, Palladium's own carry rules apply. | ✗ | / |
Carried
True while the entity is held by someone's "argon:carry" ability (the carrier's side is "argon:carrying"). Works for any living entity that can be carried.
Carrying
True while the entity holds something with argon:carry. Unlike palladium:carrying, which only sees palladium:carry, this works for any living carrier.
Chat Activation
Passes briefly after the player says one of the phrases in chat. Works like a key bind in activation mode, but the key is a spoken incantation. Put it straight in the enabling condition. Inside an "and" it only runs while the conditions before it pass.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
incantation | Identifier | A spell definition from data/ | ✗ | / |
phrases | string[] | Extra fixed phrases that always work, whatever the mastery tier. Letters are compared without case, accents or punctuation, and Greek letters are read as their Latin spelling. | ✗ | [] |
duration | Integer, Time String ("40s", "2m", etc.) | How long it stays true after the phrase is said. | ✗ | 1 |
cooldown | Integer, Time String ("40s", "2m", etc.) | The cooldown the ability gets after a cast. It uses the ability's cooldown component, so cooldown control abilities and the cooldown condition work with it. | ✗ | 0 |
Chat Toggled
Turns on when the player says a start phrase in chat. Stays on until they say a stop phrase or the maximum duration runs out. The cooldown starts when it turns off. Put it straight in the enabling condition.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
incantation | Identifier | A spell definition from data/ | ✗ | / |
phrases | string[] | Extra start phrases that always work, whatever the mastery tier. | ✗ | [] |
stop_phrases | string[] | Extra phrases that turn it off. | ✗ | [] |
cooldown | Integer, Time String ("40s", "2m", etc.) | Cooldown the ability gets once it turns off. | ✗ | 0 |
max_duration | Integer, Time String ("40s", "2m", etc.) | Turns itself off after this long. 0 means it never does. | ✗ | 0 |
Danger Sense Active
Checks if the user has an enabled argon:danger_sense ability that is detecting at least one danger: a nearby hostile mob or a player who recently hurt the user.
Danger Sense Count
Checks how many dangers the user's enabled argon:danger_sense ability is detecting (the largest count if there are several). Useful for triggering an overload once enough threats are around.
Dodge Direction
Checks if the referenced dodge ability is showing its dodge pose and the dodge went mostly in the given direction relative to where the entity faces. Diagonals count as whichever axis is stronger.
Dodging
Checks if the referenced dodge ability is actively showing its dodge pose right now.
Durability
Checks if the item worn or held in the given slot has durability left, as a percentage, between min and max. Fails for an empty slot or an item that can't be damaged.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
slot | mainhandoffhandheadchestlegsfeetbodycurios:headcurios:necklace | Which slot to check, e.g. an armor slot. | ✗ | chest |
min | Double | The minimum remaining durability percentage required (0-100). | ✗ | 0.0 |
max | Double | The maximum remaining durability percentage allowed (0-100). | ✗ | 100.0 |
Falling
Checks if the user is in the air and moving downward, so not on the ground and not rising.
Flight Speed Percent
True while the referenced argon:flight_speed_adjuster dial is within min and max (inclusive). The flight version of argon:movement_speed_percent.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
ability | Ability Reference | The flight speed adjuster ability whose dial to check. | ✓ | / |
min | Integer | The lowest dial value that passes (inclusive). Unset means no lower limit. | ✗ | / |
max | Integer | The highest dial value that passes (inclusive). Unset means no upper limit. | ✗ | / |
Grappling
Checks if the referenced grapple ability (argon:grapple or palladium:grapple) is currently grappled to a block, an entity or either, depending on the mode.
Ground Distance
Checks if the user is on the ground or within max_distance blocks of solid ground directly below.
Has Energy
Checks if the item in the given slot has stored energy between min and max. Infinite and creative energy items always pass.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
slot | mainhandoffhandheadchestlegsfeetbodycurios:headcurios:necklace | Which slot to look for the energy-storing item in. | ✗ | curios:hands |
min | Integer | The minimum stored energy required. | ✗ | 0 |
max | Integer | The maximum stored energy allowed. | ✗ | 2147483647 |
Has Fluid
Checks whether the fluid item in the given slot has a stored fluid amount between min and max.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
slot | mainhandoffhandheadchestlegsfeetbodycurios:headcurios:necklace | Which slot to look for the fluid-storing item in. | ✗ | curios:hands |
min | Integer | The minimum stored fluid amount required. | ✗ | 0 |
max | Integer | The maximum stored fluid amount allowed. | ✗ | 2147483647 |
Has Input
Checks if the user is holding a movement key (forward, back, left or right). Unlike palladium:has_movement_input it also works while a world is loading and in single player's built-in server.
Has Item
Checks if the user has at least one matching item anywhere on them: inventory, worn equipment and Curios slots where they apply.
Has Power
Checks if the user has a matching power. "include" (default) needs at least one present, "exclude" needs all of them absent.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
power | Power ID(s) / Tag | The power(s) to check for, given as explicit power IDs, a tag ("#namespace:tag"), or a mix of both. | ✓ | / |
mode | includeexclude | Whether a matching power must be present ("include") or absent ("exclude"). | ✗ | INCLUDE |
Has Stored Equipment
Checks if the store_equipment ability has anything currently stored under the given ID.
Has Stored Item
Checks if at least one matching item is stored in any slot of the referenced argon:item_storage ability.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
item_storage | String | The argon:item_storage ability whose slots to check, e.g. "fsang:example#my_storage". | ✓ | / |
items | Item ID(s) / Tag | The item(s) to search for among the stored slots, given as explicit item IDs, a tag ("#namespace:tag"), or a mix of both. | ✓ | / |
Has Suit Modification
Checks if the entity wears a complete Palladium suit with the given Tech Table modification installed on every piece. Can be limited to one suit set.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
modification | String | The id of the suit modification (the file name under data/ | ✓ | / |
suit | String | The id of a Palladium suit set the worn suit has to be; any suit when left out. | ✗ | |
slot | mainhandoffhandheadchestlegsfeetbodycurios:headcurios:necklace | Check the item worn or held in this slot instead of a suit (for modules installed on a device item in the Modify tab). | ✗ | chest |
min_level | Integer | For modules that can be installed several times: the lowest level that counts. | ✗ | 1 |
Has Tech Slot Item
True while the item in the given player slot has something in one of its Tech Table Customize slots. "tech_slot" limits it to one slot ID, "items" to certain items or item tags ("#namespace:tag").
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
slot | mainhandoffhandheadchestlegsfeetbodycurios:headcurios:necklace | The player slot holding the customized item. | ✓ | / |
tech_slot | Identifier | Only check the Customize slot with this ID. | ✗ | / |
items | String, String[] | Only count these items or item tags. | ✗ | / |
Health
Checks if the user's current health, as a percentage of their current max health (with max health modifiers), is between min and max (inclusive).
Is Female
True if the wearer picked "Female" in the argon:body customization. A shorthand for palladium:customization_selected, handy for limiting a body overlay to one chestplate.
Item Component
Checks if the item in the given slot has a specific data component set to a specific text value.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
slot | mainhandoffhandheadchestlegsfeetbodycurios:headcurios:necklace | The slot whose item is checked. | ✓ | / |
component | Identifier | The id of the data component to check, e.g. "argon:weapon_mode". | ✓ | / |
value | String | The value the component must currently equal. | ✓ | / |
Jumping
Checks if the user is in the air and moving upward, not standing on the ground or falling.
Karma Alignment
True while the player's alignment is the given one. Use positive, neutral or negative for a whole side, or an alignment id such as hero or mastermind.
Karma Range
True while the player's karma is within the inclusive range. Karma goes from -5000 to 5000 by default. Use a maximum of -501 for "below -500".
Key Press On Block
True while the referenced ability's key is held and you look at a block matching "blocks" within "range". Handy for climbing, which needs both the key and a climbable surface.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
ability | Ability Reference | The ability whose key_bind key-press state to check. | ✓ | / |
blocks | Block ID(s) / Tag | The block(s) the user must be looking at, as explicit block IDs, a tag ("#namespace:tag"), or a mix of both. | ✓ | / |
range | Double | How far, in blocks, the look-direction raycast reaches. | ✓ | / |
Looking At Entity
True while the entity is looking at another entity within range. The entity can be limited to certain types, a single type or a tag. Blocks in the way hide entities behind them unless through_blocks is set.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
entity_types | Entity Type ID(s) / Tag | The entity types that count, as one entity type ID, a tag ("#namespace:tag"), or a list mixing both. Left out, any entity counts. | ✗ | / |
range | Double (0.1 ~ 512.0) | How far along the look direction to search, in blocks. | ✓ | / |
through_blocks | Boolean | If true, entities behind blocks still count. If false, a block in the way hides them. | ✗ | false |
Main Hand
Checks the player's main hand setting (left or right handed), not which hand holds an item. Always false for non-players.
Marked Target
Checks if the entity has a living, unexpired target mark from argon:target_mark.
Movement Speed
True while the entity's actual speed, measured from how far it moved since the previous tick, is within min and max (inclusive), in blocks per second. Works on the client too, so it can drive trails and other visuals.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
min | Double | The lowest speed in blocks per second that passes. | ✗ | 0.0 |
max | Double | The highest speed in blocks per second that passes. Unset means no upper limit. | ✗ | / |
horizontal_only | Boolean | If true, vertical movement is ignored. | ✗ | false |
Movement Speed Percent
True while the referenced movement_speed_adjuster dial is within "min" and "max" (inclusive). Handy for gating a speed tier on the dial being turned up.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
ability | Ability Reference | The movement_speed_adjuster ability whose dial to check. | ✓ | / |
min | Integer | The lowest dial value this still passes for. | ✗ | -2147483648 |
max | Integer | The highest dial value this still passes for. | ✗ | 2147483647 |
Nearby Block
Checks if at least one block matching "blocks" is within "radius" of the user. Scans every block in range on each check.
Nearby Entities
Checks if at least one other entity is within range, optionally only living or only non-living ones, and/or ones that do or don't have specific powers.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
entity_filter | livingnon_livingall | Which kinds of entities count: 'living' for players/mobs, 'non_living' for everything else. | ✗ | ALL |
radius | Double | How far from the entity to search. | ✓ | / |
powers | Power Requirement, Power Requirement[] | Restricts which entities count based on the powers they hold. Each entry lists a "power" (an explicit power id, a power tag ("#namespace:tag"), or a mix of both) and an optional "mode" - "include" (default) requires at least one matching power to be present, "exclude" requires all of them to be absent; an entity only counts if it satisfies every entry. Non-living entities never satisfy an "include" entry. Leave unset (the default) to not filter by power at all. | ✗ | / |
powers (Power Requirement)
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
power | Power ID(s) / Tag | The power or powers the entity has to have. | ✓ | / |
mode | includeexclude | Whether the entity must have the power (include) or must not have it (exclude). | ✗ | include |
Perspective
Checks if the owning player is in first or third person, synced from the client to the server. Defaults to first person and is always false for non-players.
Possessing
Passes while the entity is possessing another entity with an argon:possess ability. Without an ability set, any possess ability the entity has counts.
Power Age
True while the age counted by the referenced argon:time_growth ability, in days, is within min and max (inclusive).
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
ability | Ability Reference | The argon:time_growth ability whose age to check. | ✓ | / |
min | Double | The lowest age in days that passes. | ✗ | 0.0 |
max | Double | The highest age in days that passes. Unset means no upper limit. | ✗ | / |
every | Double | If above 0, only passes for a moment (20 ticks) each time the age reaches another multiple of this many days, for example 1 to react to every new day. | ✗ | 0.0 |
Reacted
Checks if the referenced argon:damage_reaction ability reacted to a hit within the given time, optionally to one specific reaction.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
ability | Ability Reference | The damage reaction ability to check. | ✓ | / |
within | Integer, Time String ("40s", "2m", etc.) | How recently the reaction must have happened. | ✗ | 20 |
reaction | String | Only count the reaction with this id. | ✗ | / |
Recently Attacked
Checks if the entity dealt damage to anything (melee, ranged or from an ability) within the given time.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
within | Integer, Time String ("40s", "2m", etc.) | How recently the entity must have last attacked something for this to pass. | ✓ | / |
or_hurt_by_hostile | Boolean | If true, the condition also passes when a hostile mob damaged the entity within that time. | ✗ | false |
Saturation
Checks if the user's saturation level is at least the given amount. Always false for non-players.
Sky Access
Passes while nothing solid is above the user's head, so they can see the open sky. Combine with a not condition to detect being underground or under a roof.
Targeted By Mob
Checks if at least one mob within range has the user as its AI attack target. Scans nearby mobs' targets rather than a global registry.
Tech Toggle
True while a Tech Table Customize button is switched on for the item in the given player slot.
Throw Event
True for a short time after the entity threw, recalled or caught an item with an argon:throwable_item ability. It works on the client too, so animation controllers can use it to play a throw, recall or catch animation. The arm option restricts it to players whose main arm matches, so left-handed players can get a mirrored animation.
| Key | Type | Description | Required | Fallback |
|---|---|---|---|---|
event | throwrecallcatch | Which event to look for. | ✓ | / |
ticks | Integer | How many ticks the condition stays true after the event. | ✗ | 10 |
arm | anyrightleft | any, right or left: only players with that main arm pass. | ✗ | any |
Time Of Day
Checks if the overworld's time of day is between min and max inclusive. Wraps around midnight if max is smaller than min.
Took Off
True for a short time after an "argon:charged_takeoff" launched the entity. Use it to hand the launch over to a flight ability, e.g. as the enabling of an "argon:force_start_flight".
Wall Crawling Active
Checks if the user has an enabled argon:wall_crawling ability that is attached to a wall or ceiling. Only true while on a surface, not whenever the ability is enabled.
Weather
Passes while the world the entity is in has the given weather. Only the real world weather counts; local storms made by abilities do not change it.
Y Level
Checks if the user is currently at or above a specified Y level.