mojira.dev
MC-93768

Guardian beam creates air bubbles on land

The bug

When a guardian targets a player or squid on land the beam shows air bubbles.

How to reproduce

  1. Summon a guardian (riding an armor stand) on land using the following command:

    /summon minecraft:armor_stand ~ ~ ~ {Passengers:[{id:"minecraft:guardian"}]}
  2. Switch to survival mode /gamemode survival
    ❌ When the guardian attacks, air bubble particles appear in its beam

Expected behavior

Because the guardian is already on land, the particles from its beam should not include air bubbles.

The reason

The following is based on decompiled version of Minecraft 26.3 using https://mcsrc.dev.

The affected method is net.minecraft.world.entity.monster.Guardian#aiStep(). If the Guardian has a target, air bubbles are shown in the direction of the target, regardless of whether the Guardian is actually in water.

Note: That method also generates air bubbles behind the Guardian when it is moving, but that has a check for whether the Guardian is in water.

Attachments

Comments 31

Confirmed for 1.13-pre8

21 more comments

Can confirm in 1.19.

Can confirm in 1.19.2.

Given the resolution of MC-312014 and MC-312015 this probably counts as a feature request.

@muzikbike, I don’t think those reports are related. They are both about players (or generally entities?) intersecting with water, and where to render particles.

This report here does not involve water at all; the Guarding is on dry land but nonetheless generates air bubbles for its beam.

Marcono1234

(Unassigned)

Confirmed

Gameplay

Low

Rendering

air, beam, bubble, guardian

Minecraft 15w49b, Minecraft 1.9, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, , 1.20.3 Release Candidate 1, 1.20.4, 1.21.5, 1.21.7 Release Candidate 2, 1.21.8

Retrieved