mojira.dev
MCPE-171728

Despawn component not functional for custom mobs

Custom mobs do not seem to despawn from any distance with the "despawn" component, I also noticed this occurs with other popular addons.

This is the code included in the JSON behavior file, in the mobs' components.
 

[media]

 

Expectation:
Custom mobs with this component should despawn when all players are far enough from the mob.
 
Result:
Custom mobs with this component do not despawn seemingly forever.
 
 
 

Attachments

Comments 2

For bugs related to custom/addon content we need you to attach a pack that can be used to demonstrate the issue.

With regard to what you are reporting, if you summon the mob yourself with a command or spawn egg you are giving it persistence with that action, which means it is immune to despawning. There are ways to work around this but I would not know what is relevant to your specific use case without more information.

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Tony Lysander

(Unassigned)

Unconfirmed

Multiple

1.20.0

Retrieved