Entity conditions
OPP's 40 general entity conditions. They go anywhere Origins accepts an entity condition: a power's condition, origins:and/or, if_else, a target_condition, and so on.
Most of them compare a number, the same way Origins' own number conditions do:
| Field | Type | Default | Description |
|---|---|---|---|
comparison | Comparison | required | How to compare the value with compare_to: "<", "<=", ">", ">=", "==" or "!=" |
compare_to | Integer, Float or Double (see each entry) | required | The value to compare with |
Every entry below also lists its attribute (page 7), when it has one. Voice chat conditions are on page 13, and expression / with_variables on pages 8 and 9.
is_downed (below) is an optional integration: it needs Hardcore Revival installed, and is false without it.
"Tracked" marks a value OPP records while the game runs. It lives on the server, resets on restart, and reads as 0 on the client (page 1).
At a glance
| Group | Conditions |
|---|---|
| Combat | attack_cooldown_progress, critical_hit_eligible, last_attack_reach, hurt_time, invulnerable_ticks, recent_damage_taken, recent_damage_blocked, last_damage_amount, last_damage_type, recent_knockback, last_hit_was_crit, last_damage_was_crit, is_blocking |
| Movement | velocity, look_angle, is_jumping, time_airborne, sprint_ticks, crouch_depth, glide_ratio, friction, is_moving_loudly, submersion_depth |
| Body | exhaustion, time_since_last_meal, xp_progress, stat, is_sleeping |
| World | light_at_eyes, biome_temperature, moon_phase, regional_difficulty, distance_to_nearest_player, redstone_power |
| Powers | has_power_tag |
| Mobs and other entities | has_attack_target, projectile_age |
| Fake entities | fake_entity, documented with the other fake entity types on page 6 |
| Items | item_on_cooldown |
| Vibrations | vibration_on_cooldown |
| Integrations | is_downed |
Combat
- Attack cooldown progress
- Critical hit eligible
- Last attack reach
- Hurt time
- Invulnerable ticks
- Recent damage taken
- Recent damage blocked
- Last damage amount
- Last damage type
- Recent knockback
- Last hit was crit
- Last damage was crit
- Is blocking
Movement
- Velocity
- Look angle
- Is jumping
- Time airborne
- Sprint ticks
- Crouch depth
- Glide ratio
- Is moving loudly
- Friction
- Submersion depth
Body
World
- Light at eyes
- Biome temperature
- Moon phase
- Regional difficulty
- Distance to nearest player
- Has power tag
- Redstone power