mojira.dev
MC-274225

Items from /give are detected by commands for 1 tick

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:

  1. Create and empty world with no item entities

  2. Place and power a repeating command block with the command "execute as @e[type=item] run say hello"

  3. /give yourself any item

Observed result:
hello is printed once.

Expected result:
hello is not printed at all.

Attachments

Comments 3

i think this is works as intended

Can confirm. This has always been the case though and is almost certainly intended.

I believe this issue relates to MC-120507 as both involve the given item being considered part of the game for one tick.

bolo374

(Unassigned)

Confirmed

Platform

Low

Commands, Items

1.21

Retrieved