{
    "name": "Groundpound",
	"description": "Propels you downward whilst in the air, creating a small shockwave that knocks enemies upwards. 1 second of invulnerability whilst active, allowing you to cancel fall-damage.",
	"type": "origins:multiple",
    "go_down": {
        "type": "origins:active_self",
        "entity_action": {
            "type": "origins:and",
            "actions": [
                {
                    "type": "origins:add_velocity",
                    "space": "world",
                    "y": -1
                },
                {
                    "type": "origins:change_resource",
                    "resource": "*:*_on_ground",
                    "change": -1
                }
            ]
        },
        "hud_render": {
            "should_render": false
        },
        "key": {
            "key": "key.origins.primary_active"
        },
        "cooldown": 100,
        "condition": {
            "type": "origins:on_block",
            "inverted": true
        }
    },
    "on_ground": {
        "type": "origins:resource",
        "min": 0,
        "max": 1,
        "start_value": 1,
        "hud_render": {
            "should_render": false
        },
        "max_action": {
            "type": "origins:and",
            "actions": [
                {
                    "type": "origins:spawn_particles",
                    "particle": {
                        "type": "minecraft:dust",
                        "params": "1 1 1 2"
                    },
                    "count": 16,
                    "speed": 0.0,
                    "force": false,
                    "spread": {
                        "x": 3.0,
                        "y": 0.0,
                        "z": 3.0
                    }
                },
                {
                    "type": "origins:play_sound",
                    "sound": "minecraft:block.anvil.land",
                    "volume": 0.2,
                    "pitch": 1.5
                },
                {
                    "type": "origins:play_sound",
                    "sound": "minecraft:entity.zombie.attack_iron_door",
                    "volume": 0.7,
                    "pitch": 2
                },
                {
                    "type": "origins:area_of_effect",
                    "radius": 6,
                    "bientity_action": {
                        "type": "origins:and",
                        "actions": [
                            {
                                "type": "origins:target_action",
                                "action": {
                                    "type": "origins:damage",
                                    "amount": 2,
                                    "source": {
                                        "name": "thrown.item"
                                    }
                                }
                            },
                            {
                                "type": "origins:add_velocity",
                                "z": 0.8,
                                "y": 0.8,
                                "set": true,
                                "space": "world"
                            }
                        ]
                    }
                }
            ]
        }
    },
    "touching_ground": {
        "type": "origins:action_over_time",
        "interval": 1,
        "entity_action": {
            "type": "origins:change_resource",
            "resource": "*:*_on_ground",
            "change": 1
        },
        "condition": {
            "type": "origins:on_block"
        }
    }
}