mojira.dev
MCPE-145830

Piglins standing on partial block and surrounded by blocks, or inside a block, will not pick up gold ingots

(Use

[media]

to quickly reproduce this bug.)

Steps to reproduce

  1. Place a partial-height block (carpet, bottom slab, trapdoor, unlit campfire, bed, etc.) or a block that has an open inside (hopper, composter, cauldron).

  2. On all 4 sides of the partial-height block, at the same Y-level or at Y + 1 or Y +2, place blocks with collision that would prevent the piglin from moving. (In the case of a bed the blocks must be place around one end or the other of the bed, leaving a spot where a piglin could stand and be surround on all 4 sides by blocks.)

  3. Toss a gold ingot to the the piglin.

Expected result

The piglin picks up the ingot and barters.

Observed result

The piglin does not pick up the ingot or barter.


after this update piglins in my bartering farm would not pick up gold ingots when standing on carpet or if they had fallen inside a hopper.  i locked the hoppers to ensure the hopper was not grabbing it before the piglin.  once i nudged the piglin onto the hopper's edge (top of a full block) he picks up gold every time.

Linked issues

Attachments

Comments 5

Possibly the same issue that was reported at MCPE-80612 and MCPE-88573, but those reports are not well described and have not been updated in a long time.

The issue here seems to be related to the piglin's ability to pathfind. The behavior, "minecraft:behavior.pickup_items", has parameters for how far an entity should move to pick up items. I would guess it is written in such a way that pathfinding to the item must "succeed" before the pickup occurs, even if the entity does not actually have to change position to reach the item.

My friends are complaining about our piglin bartering farm not working and I nearly demolished the farm until i saw this bug. Hope this bug gets fixed soon

Also applies to piglins standing in the same space as a vertical trapdoor at their head height. For example, the setup shown in the screenshot attached to MCPE-147615, which separates piglins into cells with trapdoors. See https://bugs.mojang.com/secure/attachment/455843/Captura%20de%20pantalla%20%28581%29.png

Affects version 1.18, just tested it.

An easy workaround for those trying to make bartering farms.

Instead of having your piglins in 1x1 cels, give them 2x1 cells with 2 hopers underneath them. It seems they don’t need to pathfind to the ingot but just can’t be restricted to one block. Once they have an additional space to move to it works fine. You can still use a dispenser but I turned mine sideways to fire longways into the space at the piglins headheight.  Sorry about the formatting of this comment, this whole webpage is almost impossible to use in Safari iOS.

Steve

(Unassigned)

660953

Confirmed

Multiple

1.17.40, 1.17.41 Hotfix, 1.18.0, 1.18.2 Hotfix, 1.18.30

Retrieved