mojira.dev
MCPE-229954

Tying a Lead to a Fence while holding a Fence ties the Lead and then places a ghost Fence block

When we tie a lead to a mob and try to tie the lead to the fence while we have a fence, the lead is tied to the fence first and then the fence is placed.

Steps to Reproduce:

  1. Obtain any type of fence, a lead, and any leashable mob.

  2. Place a single fence.

  3. Spawn one mob.

  4. Attach a lead to the mob.

  5. Select a fence in your hotbar.

  6. While holding the fence, attach the leashed mob to the already placed fence.

Observed Results:
When attaching the leashed mob to the first fence while holding a fence in the hotbar, an additional fence is placed at the same time. This fence is a ghost block, as you can walk through it, and breaking it produces no particles.

Expected Results:
When attaching a leashed mob to a fence while holding another fence, no additional fence should be placed.

Linked issues

Attachments

Comments 1

Can confirm in 26.0.28 Android

Steps to reproduce

  1. Take any fences, any leash based mobs and leads

  2. Place a one fence and summon any mobs only one

  3. leash the mob and select the fence in hotbar then attach to first fence is already placed

Observed result: Leashed mobs attaching to first fence while holding a player's fence can be place by another fence together

Expected behavior: When a leashed mob attaching to first fence while holding a player’s fence, It shouldn’t be place together

YuHüKe

(Unassigned)

1549880

Confirmed

Multiple

1.21.130.22 Preview, 1.21.130.20 Preview, 1.21.114 Hotfix, 26.0.29 Preview

Retrieved