execute if entity @s[tag=medium_strength_shard] as @p[gamemode=!spectator] run function items_py:give/shard/all/medium_strength_shard
tag @s remove medium_strength_shard
execute if entity @s[tag=medium_attack_speed_shard] as @p[gamemode=!spectator] run function items_py:give/shard/all/medium_attack_speed_shard
tag @s remove medium_attack_speed_shard
execute if entity @s[tag=medium_mana_cost_shard] as @p[gamemode=!spectator] run function items_py:give/shard/all/medium_mana_cost_shard
tag @s remove medium_mana_cost_shard
execute if entity @s[tag=medium_speed_shard] as @p[gamemode=!spectator] run function items_py:give/shard/all/medium_speed_shard
tag @s remove medium_speed_shard
