Origins: Powerful Powers
» Bi-entity conditions » Is observed by

Is observed by

origins-powerful-powers:is_observed_bybi-entity condition

True when the target is looking toward the actor: the actor is within max_distance blocks of the target, and inside the target's field of view.

FieldTypeDefaultDescription
fov_degreesFloat60.0Width of the target's view cone, in degrees. The actor counts as seen when it's within half of this angle of where the target is looking.
max_distanceFloat32.0The farthest the actor can be, in blocks.
  • Only direction and distance are checked, so an actor behind a wall counts as observed. For line of sight, add Origins' origins:can_see in an origins:and.
  • The angle is between the target's look direction (including pitch) and the line from the target to the actor.

Example: a backstab.

json
{
  "type": "origins:modify_damage_dealt",
  "bientity_condition": {
    "type": "origins-powerful-powers:is_observed_by",
    "fov_degrees": 120,
    "inverted": true
  },
  "modifier": {
    "operation": "multiply_total_multiplicative",
    "value": 0.5
  }
}

In modify_damage_dealt, the actor is you and the target is the entity you hit. With "inverted": true, hits on anything looking away from you (outside a 120° cone) deal 50% more damage.