mojira.dev
MC-271279

Aquatic creatures spawned using buckets do not have the persistent tag

Placing creatures via Bucket of <name> doesn't properly give them the persistent tag, leading to them quickly despawning. This was tested in 1.20.4 and 1.20.6 and affected both versions. 

The fish didn't spawn with the persistent tag regardless of survival or creative, or whether placing the animal into water that was already there. It doesn't matter whether the item was obtained from the creative inventory, or was an empty bucket that later picked up a fish. It affects buckets of cod, salmon, tropical fish, pufferfish, axolotl, and tadpole.

Steps to reproduce:

  1. Place a bucket of <creature>.

  2. Run /data get entity @e[limit=1,sort=nearest,type=!player]

  3. Note that the tag "PersistenceRequired" is equal to `0b` instead of `1b` as it should be. (The tag "FromBucket" is `1b`, as intended.)

 

Attachments

Comments 1

I cannot reproduce bucketed fish despawning

Lightningtow

(Unassigned)

Unconfirmed

(Unassigned)

1.20.6

Retrieved