mojira.dev
MC-299295

Squid and bats despawn when teleported to a distant forceloaded chunk

Steps to reproduce the issue:

  • Forceload a distant chunk (something out of render and simulation distance): /forceload add ~10000 ~10000 ~10000 ~10000

  • Spawn a squid, glow squid, or bat: /summon minecraft:bat ~ ~ ~ {Tags:["test_bat"]}

  • Give it a name using a name tag

  • Teleport the entity to the forceloaded chunk: /tp @n[type=minecraft:bat, tag=test_bat] ~10000 ~ ~10000

  • Teleport it back or go to the location: /tp @n[type=minecraft:bat, tag=test_bat] ~ ~ ~

Expected Result:

  • The entity does not despawn

Actual Result:

  • The entity despawns

Note that this does not happen with any other mob, just the 3 listed above.

Attachments

Comments 3

Please provide the commands needed to reproduce this issue.

I could not reproduce this issue. After teleporting the bat to the force loaded chunks and back, the bat remained:

[media]

maybejake

(Unassigned)

Unconfirmed

(Unassigned)

1.21.7

Retrieved