The Bug
The phantom mob keeps getting attracted to trees and flies into them, turns around, and repeats.
Steps to Reproduce
Build the setup as shown in the attachment below. setup.png
Set the time to "night" and summon a phantom on top of the diamond block.
Watch closely as it comes into contact with the polished granite walls.
Take note as to whether or not phantoms can get stuck and sometimes spin when attempting to avoid blocks.
Observed Behavior
Phantoms can get stuck and sometimes spin when attempting to avoid blocks.
Expected Behavior
Phantoms would not get stuck and would not sometimes spin when attempting to avoid blocks.
Linked issues
is duplicated by 3
relates to 1
Attachments
Comments 28
Can confirm for 19w37a, but the wording of this report is kinda off. It's not really about trees specifically, this can happen with any block. Their path finding is just pretty crude so they get stuck on a lot of things.
Can confirm previous comment seems to be the case. Also when flying upwards they end up stuck in blocks too and do not attempt to readjust. In 22w05a.
Can confirm in 1.18.2 and 22w19a. It might be worth clarifying that phantoms aren't getting stuck in blocks but rather on the edges of them. The current title is slightly misleading as it suggests the phantom suffocates inside blocks.
Confirmed for 1.13.1, phantoms get stuck and distracted easily when in a dark forest.