mojira.dev
MC-153831

Babies of tamed trader llamas despawn

What I expected to happen:

  1. I breed 2 wanderer llamas tamed by me

  2. I get a baby trader llama

  3. The baby llama should eventually grow up and I would be able to use them when I return from another objective I was doing in the world

What happens:

  1. I breed 2 wanderer llamas tamed by me

  2. I get a baby trader llamas

  3. ❌ By the time I return the baby trader llamas are gone

  • Using /data get entity on a bred baby trader llama I was able to see that they were not assigned an owner and that their despawn delay was still ticking. With other tamable mobs like wolves I automatically get an owned pet when I breed 2 of the (e.g. cats or dogs).

Potential fixes suggested:

  • Baby trader llamas should automatically get an owner tag from one of the parents.

  • Have tradder llamas only despawn when DespawnDelay reaches 1, and any bred trader llama baby should have it set to 0. That way the despawn delay will never tick down to the baby llamas, while naturally spawned ones would still despawn as intended.

Code Analysis

The Code Analysis with a potential fix can be seen in MC-168188 thanks to @unknown

Linked issues

Comments 8

This happens in 1.14.4, I tried naming the baby llama or another untamed trader llama but they despawn

I think I'm seeing this, too. Running 19w46b here.

I was breeding trader llamas, and I'm sure I left some llama babies behind, but when I returned from some other errand there were no newly grown-ups (which I could easily have recognized because I make it a habit of equipping all adults with carpets according to their stats), nor any llama babies.

You can update your ticket yourself.

also can confirm. I've done this twice and they were surrounded by fences, the trader llama babies just despawn after a while.

At least in 1.16.3, they do last long enough to grow up, and if you tame them soon enough, they won't despawn.

 

In a 1.20.1 world, I bred some adult tamed trader llamas together and got 3 baby trader llamas. They disappeared and I was puzzled, so I nametagged my next round of babies. I came back later and they had grown up  (still named). I assumed I was safe so I didn't try to tame them at that time. Later on I found that none of the nametagged trader llamas were there anymore and the exact count of untagged tamed trader llamas were still there in the fence.

Ozone

(Unassigned)

Community Consensus

Gameplay

Normal

Mob behaviour

Minecraft 1.14.3 Pre-Release 1, 1.14.4, 19w46b, 1.15.2, 20w06a, ..., 1.18.1, 22w03a, 1.18.2, 1.19 Pre-release 1, 1.21.4

Retrieved