{
    "type": "origins:multiple",
    "cooldown": {
        "type": "origins:cooldown",
        "cooldown": 6000,
        "hud_render": {
        "should_render": true,
        "sprite_location": "origins:textures/gui/community/huang/resource_bar_01.png",
        "bar_index": 6
        }
    },
    "revive": {
        "type": "origins:prevent_death",
          "entity_action": {
            "type": "origins:and",
            "actions": [
                {
                    "type": "origins:clear_effect"
                },
                {
                    "type": "origins:apply_effect",
                    "effects": [
                        {
                            "effect": "minecraft:regeneration",
                            "amplifier": 1,
                            "duration": 300
                        },
                        {
                            "effect": "minecraft:fire_resistance",
                            "duration": 300
                        },
                        {
                            "effect": "minecraft:absorption",
                            "amplifier": 1,
                            "duration": 300
                        },
                        {
                            "effect": "minecraft:resistance",
                            "amplifier": 1,
                            "duration": 300
                        }
                    ]
                },
                {
                    "type": "origins:trigger_cooldown",
                    "power": "*:*_cooldown"
                }
            ]
        },
        "condition": {
            "type": "origins:resource",
            "resource": "*:*_cooldown",
            "comparison": "==",
            "compare_to": 0
        }
    },
	"name": "Second Chance",
	"description": "When you're supposed to die you have a totem-like effect (long cooldown)"
}
