Look angle
origins-powerful-powers:look_angleentity condition
Where the entity is looking.
| Field | Type | Default | Description |
|---|---|---|---|
component | String | required | pitch (up/down) or yaw (left/right) |
comparison | Comparison | required | |
compare_to | Float | required | degrees |
- Pitch:
−90is straight up,0level,90straight down. - Yaw:
0faces south (+Z),90west,±180north,−90east.
Example: stargazer.
{
"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