TrainCarts icon indicating copy to clipboard operation
TrainCarts copied to clipboard

Hostile entity with name tag despawn

Open Vlader97 opened this issue 4 years ago • 9 comments

BkCommonLib version: 1.15.2-v3
TrainCarts version: 1.15.2-v2-611
Paper version: 1.15.2-165

Problem or bug:

Hostile entities with name tag despawn in minecart.

Expected behaviour:

Not despawn.

Steps to reproduce:

  1. Run clean server with this plugins in default config.
  2. Use name tag on hostile entity (zombie, creeper, etc.).
  3. Push entity to minecart.
  4. Go 500 blocks away from the minecart.
  5. Go back to entity.

Vlader97 avatar Apr 09 '20 12:04 Vlader97

Hostile mobs don't despawn from minecarts in vanilla Minecraft right? Yep sounds like a bug, either no mobs should despawn, i.e. they come back when the cart does, or they follow vanilla convention to not despawn when named.

bbayu123 avatar Apr 09 '20 12:04 bbayu123

Oh sorry, it is not a bug in your plugin. I reproduce same bug in vanilla.

Is it possible to fix it in your plugin?

Vlader97 avatar Apr 10 '20 11:04 Vlader97

strange that this exists in vanilla. Is this something that is also reported on the mojang bug tracker or is this 'expected behavior'? I would think nametagged entities should never despawn, whether in a minecart or not.

bergerkiller avatar Apr 10 '20 11:04 bergerkiller

I mean, the logic is understandable, unnamed entities despawn, along with every single passenger, so unnamed minecarts despawn, ignoring whether the passenger is named or not.

bbayu123 avatar Apr 13 '20 13:04 bbayu123

A month has passed, I assume the word is not patchable or don't want to patch?

bbayu123 avatar May 09 '20 16:05 bbayu123

Since a workaround exists (nametags) I don't think it is really needed to patch this, since people that want entities in minecarts deliberately would already set a tag to begin with

bergerkiller avatar May 09 '20 16:05 bergerkiller

No, listen, hostile mobs despawn even with nametags.

bbayu123 avatar May 09 '20 16:05 bbayu123

Those that are inside minecarts despawn with the cart and don't come back.

bbayu123 avatar May 09 '20 16:05 bbayu123

Ohhh...well yeah that sounds kinda serious. Especially if they despawn with the minecart. Can leave this open then, as I know people have mobs in trains as a decorative thing too.

bergerkiller avatar May 09 '20 16:05 bergerkiller