The item spawned by a /give command can be detected by commands for a single server tick after the command is run
Steps to reproduce:
Create and empty world with no item entities
Place and power a repeating command block with the command "execute as @e[type=item] run say hello"
/give yourself any item
Observed result:hello
is printed once.
Expected result:hello
is not printed at all.
Attachments
Comments 3
I believe this issue relates to MC-120507 as both involve the given item being considered part of the game for one tick.
i think this is works as intended