Mojira Archive
MC-216057

Invisible entities can be targeted on the debug screen

The Bug:

When a player looks at an entity, the debug screen displays the name of the entity on the right side. A living entity with the invisibility effect or an item frame with the NBT tag 'Invisible' set to true still appears on the debug screen if a player is in range.

Steps to Reproduce:

  1. Summon an invisible villager at your position by using the command provided below.
    /summon minecraft:villager ~ ~ ~ {NoAI:1b,active_effects:[{duration:-1,amplifier:0b,id:"minecraft:invisibility"}]}
  2. Enable the F3 debug screen by hitting the F3 key.
  3. Step back and look at the invisible villager.
  4. Look at the right-hand side of the debug screen and take note of how this menu indicates if you're targeting the invisible villager.