Piglins inspecting gold ingots aren't persistent
Piglins can pick up items, and will have persistence of 1b, which means they leave mobcap and do not despawn. However, inspecting an item does give them persistence 1b, meaning they do not leave mobcap and they will despawn.
This does not apply to items other items such as swords which the piglin picks up, wherein the persistence is set to 1b.
How to reproduce:
use "/data get entity " on the piglin. It has persistence 0b. Give it gold, and the persistence will be 0b.
Created Issue:
Piglins inspecting gold ingots can despawn
Piglins can pick up items, and will have persistence of 1b, which means they leave mobcap and do not despawn. However, inspecting an item does give them persistence 1b, meaning they do not leave mobcap and they will despawn.
This does not apply to items other than gold ingots.
How to reproduce:
use "/data get entity " on the piglin. It has persistence 0b. Give it gold, and the persistence will be 0b. Give it a golden sword and it will be 1b.
Piglins can pick up items, and will have persistence of 1b, which means they leave mobcap and do not despawn. However, inspecting an item does give them persistence 1b, meaning they do not leave mobcap and they will despawn.
This does not apply to items other than gold ingots which the piglin picks up.
How to reproduce:
use "/data get entity " on the piglin. It has persistence 0b. Give it gold, and the persistence will be 0b. Give it a golden sword and it will be 1b.
Piglins can pick up items, and will have persistence of 1b, which means they leave mobcap and do not despawn. However, inspecting an item does give them persistence 1b, meaning they do not leave mobcap and they will despawn.
This does not apply to items other
than gold ingots which the piglin picks up.How to reproduce:
use "/data get entity " on the piglin. It has persistence 0b. Give it gold, and the persistence will be 0b. Give it a golden sword and it will be 1b.Piglins can pick up items, and will have persistence of 1b, which means they leave mobcap and do not despawn. However, inspecting an item does give them persistence 1b, meaning they do not leave mobcap and they will despawn.
This does not apply to items other such as swords which the piglin picks up.
How to reproduce:
use "/data get entity " on the piglin. It has persistence 0b. Give it gold, and the persistence will be 0b. Give it a golden sword and it will be 1b.
Piglins can pick up items, and will have persistence of 1b, which means they leave mobcap and do not despawn. However, inspecting an item does give them persistence 1b, meaning they do not leave mobcap and they will despawn.
This does not apply to items other such as swords which the piglin picks up and inspects.
How to reproduce:
use "/data get entity " on the piglin. It has persistence 0b. Give it gold, and the persistence will be 0b. Give it a golden sword and it will be 1b.
Piglins can pick up items, and will have persistence of 1b, which means they leave mobcap and do not despawn. However, inspecting an item does give them persistence 1b, meaning they do not leave mobcap and they will despawn.
This does not apply to items other such as swords which the piglin picks up and inspects.
How to reproduce:
use "/data get entity " on the piglin. It has persistence 0b. Give it gold, and the persistence will be 0b.Give it a golden sword and it will be 1b.Piglins can pick up items, and will have persistence of 1b, which means they leave mobcap and do not despawn. However, inspecting an item does give them persistence 1b, meaning they do not leave mobcap and they will despawn.
This does not apply to items other such as swords which the piglin picks up and inspects to equip, from the point of picking up.
How to reproduce:
use "/data get entity " on the piglin. It has persistence 0b. Give it gold, and the persistence will be 0b.
Piglins can pick up items, and will have persistence of 1b, which means they leave mobcap and do not despawn. However, inspecting an item does give them persistence 1b, meaning they do not leave mobcap and they will despawn.
This does not apply to items other such as swords which the piglin picks up
and inspects to equip, from the point of picking up.How to reproduce:
use "/data get entity " on the piglin. It has persistence 0b. Give it gold, and the persistence will be 0b.Piglins can pick up items, and will have persistence of 1b, which means they leave mobcap and do not despawn. However, inspecting an item does give them persistence 1b, meaning they do not leave mobcap and they will despawn.
This does not apply to items other items such as swords which the piglin picks up.
How to reproduce:
use "/data get entity " on the piglin. It has persistence 0b. Give it gold, and the persistence will be 0b.
Piglins can pick up items, and will have persistence of 1b, which means they leave mobcap and do not despawn. However, inspecting an item does give them persistence 1b, meaning they do not leave mobcap and they will despawn.
This does not apply to items other items such as swords which the piglin picks up, wherein the persistence is set to 1b.
How to reproduce:
use "/data get entity " on the piglin. It has persistence 0b. Give it gold, and the persistence will be 0b.

