minerace/data/emk/functions/kart/box_item.mcfunction

10 lines
1.0 KiB
Mcfunction

execute store result score @s emk-item run loot insert 1000 0 0 loot emk:itembox
execute if score @s emk-item matches 1 run replaceitem entity @p[tag=emk-sel] container.2 minecraft:gold_ingot
execute if score @s emk-item matches 3 run replaceitem entity @p[tag=emk-sel] container.2 minecraft:gold_ingot 3
execute if score @s emk-item matches 4 run replaceitem entity @p[tag=emk-sel] container.2 minecraft:slime_block
execute if score @s emk-item matches 6 run replaceitem entity @p[tag=emk-sel] container.2 minecraft:slime_block 3
execute if score @s emk-item matches 7 run replaceitem entity @p[tag=emk-sel] container.2 minecraft:scute
execute if score @s emk-item matches 10 run replaceitem entity @p[tag=emk-sel] container.2 minecraft:nether_star
execute if score @s emk-item matches 11 run replaceitem entity @p[tag=emk-sel] container.2 minecraft:tnt
execute if score @s emk-item matches 12 run replaceitem entity @p[tag=emk-sel] container.2 minecraft:blaze_rod
playsound minecraft:entity.item.pickup ambient @p[tag=emk-sel]