mojira.dev
MC-150183

Iron golems produce walking particles for barrier blocks

The Bug

When anything other than iron golems walk on barriers, walk particles don't appear. This makes sense since the block is invisible. What doesn't make sense is the fact that when an iron golem walks on a barrier block, red walk particles appear when I don't think they should.

Steps to Reproduce

  1. Switch into creative mode, give yourself some barriers, and place them down.

    /give @s minecraft:barrier
  2. Summon an iron golem on top of the barrier blocks and wait for it to begin walking.

  3. Take note as to whether or not iron golems produce walking particles when traveling over barrier blocks.

Observed Behavior

Iron golems produce walking particles when traveling over barrier blocks.

Expected Behavior

Iron golems would not produce walking particles when traveling over barrier blocks.

Linked issues

Attachments

Comments 16

Can confirm in 20w51a.

Can confirm in 21w03a.

Can confirm in 21w06a.

Can confirm in 21w07a.

Can confirm in 1.16.5 and 21w08b.

6 more comments

Can confirm in 1.19 and 1.19.1 Pre-release 1.

Can confirm in 1.19.2.

Following on from my code analysis, I've double-checked my proposed fix and I can confidently confirm that it's fully functioning and works as expected, so I've attached two screenshots to this report, one of which shows the current code and the other that shows the fixed code. I feel this information may be quite insightful hence my reasoning for providing it. 🙂

[media][media]

This does not seem to happen anymore as of 1.20-rc1. Can we find the exact fix version (possibly pre-release 3 as per MC-262505)?

This issue was present in 1.20 Pre-release 2, but no longer occurs in versions above or equal to 1.20 Pre-release 3. This issue was fixed in 1.20 Pre-release 3.

jbredwards

(Unassigned)

Confirmed

Low

Particles

barrier, block, invisible-blocks, iron_golem, particles

Minecraft 1.14, Minecraft 1.14.3 Pre-Release 3, 1.15.1, 1.16.2, 20w51a, ..., 1.19, 1.19.1 Pre-release 1, 1.19.2, 1.19.3, 23w05a

1.20 Pre-release 3

Retrieved