tag @s remove RandCustItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_block"}]},nbt={Inventory:[{id:"minecraft:diamond"}]},nbt=!{Inventory:[{id:"minecraft:diamond",Count:1b}]},nbt=!{Inventory:[{id:"minecraft:diamond",Count:2b}]},scores={health=5..}] run tag @s add RandCustItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_block"}]},nbt={Inventory:[{id:"minecraft:diamond",Count:3b}]},scores={health=5..}] run tag @s add RandCustItems
clear @s[tag=RandCustItems] gold_block 1
clear @s[tag=RandCustItems] diamond 3
#do void damage
tag @s[tag=RandCustItems] add DoVoid

execute as @s[tag=RandCustItems] run loot give @s loot minecraft:blooddeals/randomitem
execute as @s[tag=RandCustItems] run scoreboard players set @s KyuVoid -10
execute if entity @s[tag=RandCustItems] run function zzzzdonotuse:misc/activatevoiddamage
#do loot table
tag @s remove RandCustItems
