execute if score #big_strength_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["big_strength_shard","rnd_shard_drop","unspellable"]}
execute if score #big_attack_speed_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["big_attack_speed_shard","rnd_shard_drop","unspellable"]}
execute if score #big_mana_cost_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["big_mana_cost_shard","rnd_shard_drop","unspellable"]}
execute if score #big_speed_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["big_speed_shard","rnd_shard_drop","unspellable"]}
execute if score #medium_flow_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["medium_flow_shard","rnd_shard_drop","unspellable"]}
execute if score #medium_soul_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["medium_soul_shard","rnd_shard_drop","unspellable"]}
execute if score #big_health_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["big_health_shard","rnd_shard_drop","unspellable"]}
execute if score #big_protection_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["big_protection_shard","rnd_shard_drop","unspellable"]}
execute if score #big_mana_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["big_mana_shard","rnd_shard_drop","unspellable"]}
execute if score #big_luck_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["big_luck_shard","rnd_shard_drop","unspellable"]}
execute if score #big_pure_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["big_pure_shard","rnd_shard_drop","unspellable"]}
execute if score #small_flow_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_flow_shard","rnd_shard_drop","unspellable"]}
execute if score #small_flow_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_flow_shard","rnd_shard_drop","unspellable"]}
execute if score #small_soul_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_soul_shard","rnd_shard_drop","unspellable"]}
execute if score #small_soul_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_soul_shard","rnd_shard_drop","unspellable"]}
execute if score #medium_strength_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["medium_strength_shard","rnd_shard_drop","unspellable"]}
execute if score #medium_attack_speed_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["medium_attack_speed_shard","rnd_shard_drop","unspellable"]}
execute if score #medium_mana_cost_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["medium_mana_cost_shard","rnd_shard_drop","unspellable"]}
execute if score #medium_speed_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["medium_speed_shard","rnd_shard_drop","unspellable"]}
execute if score #medium_health_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["medium_health_shard","rnd_shard_drop","unspellable"]}
execute if score #medium_protection_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["medium_protection_shard","rnd_shard_drop","unspellable"]}
execute if score #medium_mana_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["medium_mana_shard","rnd_shard_drop","unspellable"]}
execute if score #medium_luck_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["medium_luck_shard","rnd_shard_drop","unspellable"]}
execute if score #medium_pure_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["medium_pure_shard","rnd_shard_drop","unspellable"]}
execute if score #spinning_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["spinning_shard","rnd_shard_drop","unspellable"]}
execute if score #small_strength_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_strength_shard","rnd_shard_drop","unspellable"]}
execute if score #small_strength_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_strength_shard","rnd_shard_drop","unspellable"]}
execute if score #small_attack_speed_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_attack_speed_shard","rnd_shard_drop","unspellable"]}
execute if score #small_attack_speed_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_attack_speed_shard","rnd_shard_drop","unspellable"]}
execute if score #small_mana_cost_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_mana_cost_shard","rnd_shard_drop","unspellable"]}
execute if score #small_mana_cost_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_mana_cost_shard","rnd_shard_drop","unspellable"]}
execute if score #small_speed_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_speed_shard","rnd_shard_drop","unspellable"]}
execute if score #small_speed_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_speed_shard","rnd_shard_drop","unspellable"]}
execute if score #small_health_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_health_shard","rnd_shard_drop","unspellable"]}
execute if score #small_health_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_health_shard","rnd_shard_drop","unspellable"]}
execute if score #small_protection_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_protection_shard","rnd_shard_drop","unspellable"]}
execute if score #small_protection_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_protection_shard","rnd_shard_drop","unspellable"]}
execute if score #small_mana_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_mana_shard","rnd_shard_drop","unspellable"]}
execute if score #small_mana_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_mana_shard","rnd_shard_drop","unspellable"]}
execute if score #small_luck_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_luck_shard","rnd_shard_drop","unspellable"]}
execute if score #small_luck_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_luck_shard","rnd_shard_drop","unspellable"]}
execute if score #small_pure_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_pure_shard","rnd_shard_drop","unspellable"]}
execute if score #small_pure_shard shop matches 1 run summon marker ~ ~ ~ {Tags:["small_pure_shard","rnd_shard_drop","unspellable"]}

execute as @e[tag=rnd_shard_drop,limit=1,sort=random] run function items_py:rnd_shard_drop/sort

kill @e[tag=rnd_shard_drop]

tag @e[type=item,nbt={Item:{tag:{type:"shard"}}},tag=!no_timeout,sort=nearest,limit=1] add no_timeout
