/execute as @e[type=minecraft:item] at @s run kill @e[type=minecraft:item,y=5,dy=0]
/execute as @e[type=minecraft:area_effect_cloud] at @s run kill @e[type=minecraft:area_effect_cloud,y=5,dy=0]
After running these 2 commands with the setup above, only the apple is killed. What am I doing wrong?
(vanilla, 1.15.2)
![](link)
Also, you should use double@e
sparingly, it does as many checks as the number of entities squared. I'm not sure what you're trying to do, but it looks like it's probably not required.