can't seem to get it to work
these are my original commands:
/execute as @e[nbt={Item:{id:"minecraft:apple"},OnGround:1b}] at @s run summon armor_stand ~ ~-1.7 ~-1 {Invisible:1b,NoGravity:1b,ArmorItems:[{},{},{},{id:"apple",Count:1b}],HandItems:[{},{}],CustomName:"{\"text\":\"item\"}",DisabledSlots:2039583,Pose:{Head:[90f,0f,0f]}}
/execute as @e[nbt={Item:{id:"minecraft:apple"},OnGround:1b}] run kill @s
/execute as @e[name=item] at @s if entity @a[distance=..2,scores={shift=10..}] run give @a[distance=..2,limit=1,scores={shift=10..}] apple
/execute as @e[name=item] at @s if entity @a[distance=..2,scores={shift=10..}] run kill @s
if you don't mind could you fix them?
and could you also try to make it work for the item count
if you don't thanks anyway