Modify Elytra Flight
Modifies whether to allow the entity holding the power to glide.
Type ID: kaya:modify/elytra/flight
Format
| Field | Type | Default | Description |
|---|---|---|---|
allow |
Boolean Provider | Determines whether it should allow the entity to glide. | |
priority |
Integer | 0 |
Determines how instances of this type will be prioritized. |
About priorities
The instances of this type will be sorted in its reversed natural order meaning that instance that has the highest priority value will be chosen.
Example
{
"type": "kaya:modify/elytra/flight",
"allow": {
"type": "kaya:entity_has_item_equipped",
"equipped_condition": {
"type": "kaya:item_matches_ingredient",
"ingredient": "#example:leather_caps",
"item": "equipped_item"
},
"slot": "head",
"entity": "this"
}
}
This example allows the entity holding the power to glide only when they have an item included in the #example:leather_caps (data/example/tags/item/leather_caps.json) equipped to their head slot.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |