This hour, my game closed for no reason and 'downgraded', i think. I created a kill-aura command block because i went on a beta version. I killed some animals, but after a while there's items disappearing in my range(I didn't talk about despawns).
Steps to reproduce:
Get yourself a purple command block (/give @s repeating_command_block)
But first drop items around. Make sure you can't reach them
Place the purple command block (Put always active then "execute @p ~~~ damage @e[type=item,r=3] 1 entity_attack entity @s")
Observed results:
Item entities disappear
Expected results:
Item entities shouldn't disappear to /damage but /kill because they doesn't really have health
Please check if compared to entity_attack item entities can disappear to other damage types.
It entities do have health and they have always taken damage from contact (cactus), fire, lava, and explosions. Items and XP Orbs have 5 health, presumably so that they have time to appear to burn up when being destroyed by lava (see MCPE-128569).
If you want to just kill mobs or monsters around yourself you can use
/execute @p ~~~ damage @e[family = mob, r=3] 1 entity_attack entity @s
or
/execute @p ~~~ damage @e[family = monster, r=3] 1 entity_attack entity @s