execute unless entity @n[distance=..3,tag=creeper,tag=!volatile_creeper,type=creeper] run title @s actionbar {"color":"red", "text": "No valid summons nearby!"}
execute unless entity @n[distance=..3,tag=creeper,tag=!volatile_creeper,type=creeper] run playsound entity.arrow.hit_player master @s ~ ~ ~ 1 0.5
execute unless entity @n[distance=..3,tag=creeper,tag=!volatile_creeper,type=creeper] run give @s minecraft:gunpowder[minecraft:custom_name='{"italic":false,"text":"[ Volatile Powder ]"}',minecraft:lore=['{"color":"gray","italic":false,"text":"[","extra":[{"color":"dark_green","bold":false,"italic":false,"keybind":"key.use"},{"color":"gray","italic":false,"text":"] on a Creeper summon to evolve it into a Volatile Creeper."}]}','""','{"color":"gray","italic":false,"text":"Upgrades:"}','{"color":"#d79e2b","italic":false,"text":"[ STAT ] ","extra":[{"color":"blue","bold":false,"italic":false,"text":"+0.1 Movement Speed"}]}','{"color":"#9620b6","italic":false,"text":"[ SKILL ] ","extra":[{"color":"gray","bold":false,"italic":false,"text":"Absorbing this entity will remotely detonate it, explosion power depends on the entity."}]}','{"color":"#b62020","italic":false,"text":"[ ON-DEATH ] ","extra":[{"color":"gray","bold":false,"italic":false,"text":"Detonate on death, explosion power depends on the entity."}]}','""','{"color":"gray","italic":false,"text":"Does not remove the charged effect on Creepers."}'],minecraft:rarity=uncommon,minecraft:enchantment_glint_override=true,minecraft:custom_data={necromancer_volatile_powder:1b,necromancer_upgrade:1b},minecraft:consumable={consume_seconds:0,animation:none,sound:"minecraft:entity.firework_rocket.large_blast",has_consume_particles:false},minecraft:item_model="minecraft:gunpowder"] 1

execute if entity @n[distance=..3,tag=creeper,tag=!volatile_creeper,type=creeper] run tag @n[distance=..3,tag=creeper,tag=!volatile_creeper,type=creeper] add new_volatile_creeper
execute as @n[distance=..3,tag=new_volatile_creeper,type=creeper] at @s run attribute @s movement_speed modifier add volatile_powder_movement_speed 0.1 add_value
execute as @n[distance=..3,tag=new_volatile_creeper,type=creeper] at @s run data merge entity @s {CustomName:'"[ Volatile Creeper ]"'}
execute as @n[distance=..3,tag=new_volatile_creeper,type=creeper] at @s run particle dust_plume ~ ~1 ~ 0.5 0.5 0.5 0 25 normal
execute as @n[distance=..3,tag=new_volatile_creeper,type=creeper] at @s run particle explosion ~ ~1 ~ 0.5 0.5 0.5 0 5 normal
execute as @n[distance=..3,tag=new_volatile_creeper,type=creeper] at @s run tag @s add volatile_creeper
execute as @n[distance=..3,tag=new_volatile_creeper,type=creeper] at @s run tag @s remove new_volatile_creeper