{
    "name":"High Riser",
    "description":"Being a winged creature, you are drawn to places above the clouds.",
    "badges": [
        {
            "type": "origins:tooltip",
            "sprite": "minecraft:textures/mob_effect/levitation.png",
            "text": "Above heights of 150 you gain Speed, whilst below depths of 60 you gain Hunger."
        }
    ],
    "type": "apoli:action_over_time",
    "interval": 1,
    "entity_action": {
        "type": "apoli:if_else_list",
        "actions": [
            {
                "condition": {
                    "type": "apoli:in_block",
                    "block_condition": {
                        "type": "apoli:height",
                        "comparison": ">",
                        "compare_to": 150
                    }
                },
                "action": {
                    "type": "apoli:apply_effect",
                    "effect": {
                        "effect": "minecraft:speed",
                        "show_icon": true,
                        "show_particles": false,
                        "duration": 100
                    }
                }
            },
            {
                "condition": {
                    "type": "apoli:in_block",
                    "block_condition": {
                        "type": "apoli:height",
                        "comparison": "<",
                        "compare_to": 60
                    }
                },
                "action": {
                    "type": "apoli:apply_effect",
                    "effect": {
                        "effect": "minecraft:hunger",
                        "show_icon": true,
                        "show_particles": false,
                        "duration": 100
                    }
                }
            }
        ]
    }

}