-
Bug
-
Resolution: Fixed
-
1.20.2 Pre-release 1
-
None
-
Confirmed
-
Entities, Networking
-
Very Important
-
Platform
The bug
If you start playing a singleplayer world, sometimes nearby mobs are invisible. You can hear the mob's sounds and you can hit the mob with snowballs, but you can't hit the mob with a sword. Using F3 + B does not display the mob's hitbox. Querying the mob's active_effects NBT with commands shows that it does not currently have any effects, so it does not have the invisibility effect, even though we can't see the mob. Often the mobs are only briefly invisible and then become visible again, but sometimes they remain invisible indefinitely.
To reproduce
I was not able to reproduce this at all in 1.20.1. In 1.20.2 pre-release 1, in most worlds I could only manage to reproduce the situation where the mobs are only briefly invisible. However, in one specific world, I noticed that a snow golem remained invisible indefinitely if it was invisible when you joined the world.
- Download the attached world: invisible_snow_golem.zip
- Join the world in singleplayer.
- If the snow golem is visible, repeatedly exit the world and re-join it until the snow golem is invisible. Anecdotally, the snow golem seems to be invisible approximately 50% of the time when this world is joined.
- Observe that the snow golem remains invisible no matter how long you wait.
- Use the below command to verify that the snow golem does not have the invisibility effect:
/data get entity @e[type=minecraft:snow_golem,limit=1,sort=nearest] active_effects
Result: Found no elements matching active_effects
- Switch to spectator mode.
- Use the below command to spectate the snow golem:
/spectate @e[type=minecraft:snow_golem,limit=1,sort=nearest]
- Observe that you see a glitchy, flashing view of the sky and some other mobs.
Expected behavior
All mobs are always visible unless they have the invisibility effect.
Observed behavior
Sometimes mobs are invisible for no reason.
Video
Warning: This video contains rapid movement that resembles flashing. Consider not watching if you have a medical condition that makes you sensitive to flashing.
invisible_snow_golem.mp4
- is duplicated by
-
MC-265259 Mobs may turn invisible when dying and respawning
- Resolved