mojira.dev
MC-179949

You cannot edit the inventories of piglins by using '/item replace'

It is not possible to edit piglin inventories with /item replace (just the hand and armour slots). This is inconsistent, as you CAN edit the inventories of villagers (villagers have villager.x slots counted from 0 to 7.), donkeys, llamas and even wandering traders and pillagers! Piglins' are not accessible in the same manner however.

Linked issues

Attachments

Comments 6

I can confirm for 1.16.3

This issue is specially critical as removing items from the inventory using /data remove, merge, or modify doesn't seam to work. 

Can confirm in the latest pre-release for 1.20.5.

In the latest snapshot, the repro case seems to work without an issue if you use `armor.chest` instead, this also works with other slots like `armor.legs` etc.

Is there something I'm missing here?

I've restored the description present at the time of triage, as I think the newer description was based on a misunderstanding of the original issue.

This issue is about the piglin's Inventory tag, rather than equipment. More details can be found in the duplicate report.

Ozone

[Mod] Jingy

etanaratsastaja

Community Consensus

Platform

Important

Commands

piglin

20w17a, 20w18a, 20w19a, 20w20a, 20w21a, ..., 1.18.1, 22w03a, 1.20.5 Pre-Release 1, 1.20.6, 24w21b

26.1 Snapshot 1

Retrieved