function get_items{
    LOOP(7,x){
        LOOP(7,z){
            LOOP(3,y){
                loot spawn ~ ~ ~ mine <%-3+x%> <%57+y%> <%-3+z%> netherite_pickaxe{Enchantments:[{id:"minecraft:silk_touch",lvl:1s}]}
            }
        }
    }
    data modify storage loot:ram ids set value ["minecraft:shroomlight"]
    execute as @e[type=item,distance=..0.1] run data modify storage loot:ram ids append from entity @s Item.id
    execute as @e[type=item,distance=..0.1] run{
        data modify entity @s Item.tag.CanPlaceOn set from storage loot:ram ids
        data modify entity @s Item.tag.HideFlags set value 16
        data modify entity @s PickupDelay set value 0
    }
    summon item ~ ~ ~ {PickupDelay:1,Tags:["tool"],Item:{id:"minecraft:netherite_pickaxe",Count:1b}}
    execute as @e[tag=tool,distance=..0.1] run{
        data remove storage loot:ram ids[0]
        data modify entity @s Item.tag.CanDestroy set from storage loot:ram ids
        data modify entity @s Item.tag.HideFlags set value 8
        data modify entity @s PickupDelay set value 0
    }
}