Origins: Powerful Powers
» Entity conditions » Glide ratio

Glide ratio

origins-powerful-powers:glide_ratioentity condition

While flying with an elytra: horizontal speed divided by vertical speed. High values mean a flat glide and low values a steep dive. With almost no vertical movement, it's the horizontal speed × 1000.

FieldTypeDefaultDescription
comparisonComparisonrequired
compare_toFloatrequired
  • False when not gliding, whatever the comparison.

Example:

json
{
  "type": "origins:action_over_time",
  "interval": 2,
  "condition": {
    "type": "origins-powerful-powers:glide_ratio",
    "comparison": "<",
    "compare_to": 1.0
  },
  "entity_action": {
    "type": "origins:execute_command",
    "command": "particle minecraft:cloud ~ ~ ~ 0.2 0.2 0.2 0 3"
  }
}

A trail of cloud particles while you dive steeply.

Attribute: glide_ratio (0 when not gliding)