mojira.dev
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.

Related issues

Attachments

Comments

migrated
[media][media][media]
migrated

WAI that is the point of debugging. You can set reducedDebugInfo to true if cheating is a concern.

chumbanotz

The reason I reported this is because of MC-4069.

Arisa Bot

An attachment with a disallowed file extension has been removed from this ticket.

Executable files and documents are not allowed as attachments.
Please attach crash reports, log files and screenshots as they are instead of pasting them into a document.
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit

Avoma

Can confirm that this is an issue. Also affects 1.16.5.

migrated

If this bug is fixed, will it still be possible to hit invisible entities with melee attacks (fists, swords, etc.)?

chumbanotz

It will still be possible to hit invisible entities, the name of the entity simply won't show on the debug screen.

chumbanotz

(Unassigned)

Confirmed

Debug, UI

debug-screen, entity, invisible, targeted-entity

1.16.5, 21w07a, 21w08b, 21w10a, 21w11a, ..., 1.19.4, 23w14a, 1.20.4, 1.21.1, 24w34a

Retrieved