mojira.dev
MC-117398

Boats, lava and water buckets and lily pads can be placed through entities

The bug

Boats, lava and water buckets and lily pads (all methods calling Item.rayTrace(World, EntityPlayer, boolean)) can be used / placed through entities meaning you do not have the block you are placing them on focused.

This is inconsistent with normal block placement and additionally creates unexpected behavior because right clicking your pet to make it sit while holding a lava bucket will place the lava under your pet.

How to reproduce

  1. Spawn for example a cow in front of some blocks

  2. Right click the cow with a lava bucket
    → ❌ Lava is placed behind the cow

Linked issues

Attachments

Comments 19

Sonicwave

Confirmed (also in 1.12-pre4). Might relate to MC-4381 (which was resolved as intended for some reason).

migrated

Affects 19w46b & 1.14.4.

This bug could kill mobs and players as well as burn down structures accidentally by using lava buckets, which may lead to frustrating situations for players.

I would increase the Mojang Priority value because of this, although I don't know the technical difficulties of fixing this bug.

migrated

Affects 1.15-pre1.

Example of accident when playing: 

[media]
Avoma

Can confirm in 20w48a.

Avoma

Can confirm in 21w03a.

9 more comments
Avoma

Can confirm in 1.18.1.

Avoma

Can confirm in 1.18.2.

Avoma

Can confirm in 1.19.

Avoma

Can confirm in 1.19.2.

himazinn_Japan

Can confirm 1.21.4 Pre-release 3.

marcono1234

(Unassigned)

Confirmed

Gameplay

Low

Items

boat, entity, interact, lava, lava_bucket, lily_pad, water, water_bucket

Minecraft 1.11.2, Minecraft 1.12 Pre-Release 2, Minecraft 1.12 Pre-Release 4, Minecraft 1.12.2, Minecraft 17w45b, ..., 1.19.3, 23w05a, 1.20.1, 1.20.4, 1.21.4 Pre-Release 3

Retrieved