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.
| Field | Type | Default | Description |
|---|---|---|---|
comparison | Comparison | required | |
compare_to | Integer | required | 0 to 15 |
Example: light-sensitive.
{
"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