{
    "target": "minecraft:illusioner",
    "attributes": [
        {
            "id": "minecraft:generic.movement_speed",
            "modifier_name": "Speedy",
            "amount": {
                "min": 0.20,
                "max": 0.75
            },
            "operation": "multiply_base"
        },
        {
            "id": "minecraft:generic.max_health",
            "modifier_name": "+20HP",
            "amount": 30,
            "operation": "addition"
        }
    ],
    "events": {
        "on_attacked": [{
            "target": "entity",
            "potion_effects": [
                {
                    "id": "minecraft:speed",
                    "amplifier": 4,
                    "duration": 10
                },
                {
                    "id": "minecraft:levitation",
                    "amplifier": 1,
                    "duration": 6
                },
                {
                    "id": "minecraft:resistance",
                    "amplifier": 2,
                    "duration": 8
                }
            ]
        }
        ]
    }
}