execute if score @s emk-item matches 1 run function emk:kart/item/gold_1 execute if score @s emk-item matches 2 run function emk:kart/item/gold_2 execute if score @s emk-item matches 3 run function emk:kart/item/gold_3 execute if score @s emk-item matches 4 positioned ^ ^ ^-1 run function emk:kart/item/slime_1 execute if score @s emk-item matches 5 positioned ^ ^ ^-1 run function emk:kart/item/slime_2 execute if score @s emk-item matches 6 positioned ^ ^ ^-1 run function emk:kart/item/slime_3 execute if score @s emk-item matches 7 run function emk:kart/item/turtle_1 execute if score @s emk-item matches 10 run function emk:kart/item/star execute if score @s emk-item matches 11 run function emk:kart/item/missile execute if score @s emk-item matches 12 run function emk:kart/item/lightning execute if score @s emk-item matches 0 run replaceitem entity @p[tag=emk-sel] weapon.offhand minecraft:air scoreboard players set @p[tag=emk-sel] emk-use 0