tag @a[tag=K,limit=1,sort=random] add RandomEventKyu
execute if entity @a[tag=RandomEventKyu,sort=random,limit=1,scores={QHealth=14..}] run loot spawn ~1 ~1 ~ loot minecraft:randomevents/base
execute if entity @a[tag=RandomEventKyu,sort=random,limit=1,scores={QHealth=7..13}] run loot spawn ~1 ~1 ~ loot minecraft:randomevents/7to13
execute if entity @a[tag=RandomEventKyu,sort=random,limit=1,scores={QHealth=1..6}] run loot spawn ~1 ~1 ~ loot minecraft:randomevents/1to6
tag @a remove RandomEventKyu