{
    "name":"§dEntropic Bloom",
	"description":"§fUsing the Energy of the Void, you can focus on a single point in your view and cause an explosion.§r §e[Spectator Outlines]",
    "type": "origins:active_self",
    "entity_action": {
        "type": "origins:if_else",
        "condition": {
            "type":"origins:resource",
            "resource":"voidwalker:void_energy_resource",
            "comparison":">=",
            "compare_to":30
        },
        "if_action": {
            "type": "origins:and",
            "actions": [
                {
                    "type": "origins:change_resource",
                    "resource": "voidwalker:void_energy_resource",
                    "change": -30,
                    "operation": "add"
                },
                {    
                    "type": "origins:raycast",
                    "distance": 16.00,
                    "block": true,
                    "entity": true,
                    "shape_type": "visual",
                    "fluid_handling": "any",
                    "bientity_action": {
                        "type": "origins:target_action",
                        "action": {
                            "type": "origins:explode",
                            "power": 4,
                            "destruction_type": "break",
                            "damage_self": true,
                            "create_fire": false
                        }
                    },
                    "entity_distance": 16.00,
                    "block_action": {
                        "type": "origins:explode",
                        "power": 4,
                        "destruction_type": "break",
                        "create_fire": false
                    },
                    "block_distance":16.00,
                    "before_action": {
                        "type": "origins:swing_hand",
                        "hand": "MAIN_HAND"
                    },
                    "command_at_hit": "summon firework_rocket ~ ~ ~ {Silent:1b,LifeTime:0,FireworksItem:{id:\"firework_rocket\",Count:1,tag:{Fireworks:{Explosions:[{Type:4,Colors:[I;8459653,0],FadeColors:[I;0]}]}}}}",
                    "command_step":1.00,
                    "command_along_ray_only_on_hit":false
                }
            ]
        },
        "else_action": {
            "type": "origins:and",
            "actions": [
                {
                    "type":"origins:damage",
                    "amount":4,
                    "damage_type":"minecraft:magic"
                },
                {    
                    "type": "origins:raycast",
                    "distance": 16.00,
                    "block": true,
                    "entity": true,
                    "shape_type": "visual",
                    "fluid_handling": "any",
                    "bientity_action": {
                        "type": "origins:target_action",
                        "action": {
                            "type": "origins:explode",
                            "power": 4,
                            "destruction_type": "break",
                            "damage_self": true,
                            "create_fire": false
                        }
                    },
                    "entity_distance": 16.00,
                    "block_action": {
                        "type": "origins:explode",
                        "power": 4,
                        "destruction_type": "break",
                        "create_fire": false
                    },
                    "block_distance":16.00,
                    "before_action": {
                        "type": "origins:swing_hand",
                        "hand": "MAIN_HAND"
                    },
                    "command_at_hit": "summon firework_rocket ~ ~ ~ {Silent:1b,LifeTime:0,FireworksItem:{id:\"firework_rocket\",Count:1,tag:{Fireworks:{Explosions:[{Type:4,Colors:[I;8459653,0],FadeColors:[I;0]}]}}}}",
                    "command_step":1.00,
                    "command_along_ray_only_on_hit":false
                }
            ]
        }
    },
    "cooldown": 100,
    "hud_render": {
        "should_render": true,
        "sprite_location": "origins:textures/gui/community/huang/resource_bar_02.png",
        "bar_index": 5
    },
    "key": {
        "key": "key.spectatorOutlines",
        "continuous": false
    }
}