Origins: Powerful Powers
» Entity conditions » Light at eyes

Light at eyes

origins-powerful-powers:light_at_eyesentity condition

The light level at the entity's eye height, 0 to 15: the brighter of block light and sky light, with sky light dimmed at night and in rain.

FieldTypeDefaultDescription
comparisonComparisonrequired
compare_toIntegerrequired0 to 15

Example: light-sensitive.

json
{
  "type": "origins:action_over_time",
  "interval": 20,
  "condition": {
    "type": "origins-powerful-powers:light_at_eyes",
    "comparison": ">=",
    "compare_to": 12
  },
  "entity_action": {
    "type": "origins:apply_effect",
    "effect": {
      "effect": "minecraft:weakness",
      "duration": 30,
      "amplifier": 0
    }
  }
}

Bright light weakens you.

Attribute: light_at_eyes