Origins: Powerful Powers
» Entity conditions » Look angle

Look angle

origins-powerful-powers:look_angleentity condition

Where the entity is looking.

FieldTypeDefaultDescription
componentStringrequiredpitch (up/down) or yaw (left/right)
comparisonComparisonrequired
compare_toFloatrequireddegrees
  • Pitch: −90 is straight up, 0 level, 90 straight down.
  • Yaw: 0 faces south (+Z), 90 west, ±180 north, −90 east.

Example: stargazer.

json
{
  "type": "origins:action_over_time",
  "interval": 40,
  "condition": {
    "type": "origins:and",
    "conditions": [
      {
        "type": "origins-powerful-powers:look_angle",
        "component": "pitch",
        "comparison": "<=",
        "compare_to": -70
      },
      {
        "type": "origins:daytime",
        "inverted": true
      },
      {
        "type": "origins:exposed_to_sky"
      }
    ]
  },
  "entity_action": {
    "type": "origins:apply_effect",
    "effect": {
      "effect": "minecraft:regeneration",
      "duration": 50,
      "amplifier": 0
    }
  }
}

Looking up at the open night sky regenerates you.

Attributes: look_pitch, look_yaw