scoreboard players add @a[tag=PlayerBImbue] BImbueTimer 1
#kill @e[type=item,tag=BloodImbueMe]
execute at @a[tag=PlayerBImbue,scores={BImbueTimer=5}] run execute as @e[type=minecraft:armor_stand,tag=BloodImbue,sort=nearest] run execute at @s positioned ~ ~5000 ~ run data modify entity @s HandItems[1] set from entity @e[type=item,limit=1,sort=nearest,tag=BloodImbueMe] Item
execute at @a[tag=PlayerBImbue,scores={BImbueTimer=5}] run execute as @e[type=minecraft:armor_stand,tag=BloodImbue,sort=nearest] run execute at @s positioned ~ ~5000 ~ run kill @e[type=item,tag=BloodImbueMe,sort=nearest,distance=..2]
#execute at @a[tag=PlayerBImbue,scores={BImbueTimer=5}] run execute as @e[type=minecraft:armor_stand,tag=BloodImbue,limit=1,sort=nearest] run execute at @s run particle minecraft:damage_indicator ~ ~1 ~ 0 0 0 0.01 1 force

execute at @a[tag=PlayerBImbue,scores={BImbueTimer=5..25}] run execute as @e[type=minecraft:armor_stand,tag=BloodImbue,limit=1,sort=nearest] run execute at @s run tp @s ^ ^ ^.08 ~ ~-1.6
execute at @a[tag=PlayerBImbue,scores={BImbueTimer=5..25}] run execute as @e[type=minecraft:armor_stand,tag=BloodImbue,limit=1,sort=nearest] run execute at @s run tp @s ^ ^ ^.08 ~ ~-1.6
execute at @a[tag=PlayerBImbue,scores={BImbueTimer=26..28}] run execute as @e[type=minecraft:armor_stand,tag=BloodImbue,limit=1,sort=nearest] run execute at @s run tp @s ^ ^ ^.04 ~ ~-0.8

execute at @a[tag=PlayerBImbue,scores={BImbueTimer=40..41}] run execute as @e[type=minecraft:armor_stand,tag=BloodImbue,limit=1,sort=nearest] run function zzzzdonotuse:spell/bloodimbue3
execute at @a[tag=PlayerBImbue,scores={BImbueTimer=42..43}] run execute as @e[type=minecraft:armor_stand,tag=BloodImbue,limit=1,sort=nearest] run function zzzzdonotuse:spell/bloodimbue3
execute at @a[tag=PlayerBImbue,scores={BImbueTimer=42..43}] run execute as @e[type=minecraft:armor_stand,tag=BloodImbue,limit=1,sort=nearest] run function zzzzdonotuse:spell/bloodimbue3
execute at @a[tag=PlayerBImbue,scores={BImbueTimer=44}] run execute as @e[type=minecraft:armor_stand,tag=BloodImbue,limit=1,sort=nearest] run function zzzzdonotuse:spell/bloodimbue4




execute at @a[tag=PlayerBImbue,scores={BImbueTimer=49}] run summon minecraft:item ~ ~ ~ {Tags:["BloodImbueMe2","ItemSave","SaveItem"],Item:{id:"minecraft:structure_void",Count:1b},PickupDelay:50,Age:1999s,NoGravity:1,Health:500s}
execute as @a[tag=PlayerBImbue,scores={BImbueTimer=49}] run execute at @s positioned ~ ~ ~ run data modify entity @e[type=item,limit=1,sort=nearest,tag=BloodImbueMe2,distance=..2] Item set from entity @e[type=minecraft:armor_stand,tag=BloodImbue,limit=1,sort=nearest] HandItems[1]
execute at @a[tag=PlayerBImbue,scores={BImbueTimer=49}] run execute as @e[type=item,distance=..2,limit=1,tag=BloodImbueMe2] run execute as @s run function zzzzdonotuse:spell/imbuemodify/imbueitem
execute at @a[tag=PlayerBImbue,scores={BImbueTimer=49}] run kill @e[type=minecraft:armor_stand,tag=BloodImbue,limit=1,sort=nearest]

execute as @a[tag=PlayerBImbue,scores={BImbueTimer=49}] run scoreboard players set @s KyuVoid -40
execute as @a[tag=PlayerBImbue,scores={BImbueTimer=49}] run tag @s add DoVoid
execute at @a[tag=PlayerBImbue,scores={BImbueTimer=49}] run function zzzzdonotuse:misc/activatevoiddamage
execute as @a[tag=PlayerBImbue,scores={BImbueTimer=49}] run scoreboard players remove @e[name=DayQ] KyuImbueCheck 1
execute as @a[tag=PlayerBImbue,scores={BImbueTimer=49}] run tag @s remove PlayerBImbue
execute as @a[tag=PlayerBImbue,scores={BImbueTimer=49}] run scoreboard players set @s BImbueTimer 0

execute unless entity @e[name=DayQ,type=armor_stand,scores={KyuImbueCheck=1..}] run data merge block ~ ~ ~ {auto:0b}