1. Wiki
  2. /Entities
  3. /minecraft:instant_despawn

minecraft:instant_despawn

Don't want to write this by hand? GodCraft sets minecraft:instant_despawn for you with a switch.Get GodCraft

Overview

minecraft:instant_despawn is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Removes the entity from the world as soon as the component is added. Add it from an event to delete a mob cleanly without drops or death animation.

Fields

FieldTypeDefaultDescription
remove_child_entitiesbooleanfalseAlso removes linked entities, such as leashed mobs.

Example

Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):

BP/entities/<name>.json
{
  "minecraft:instant_despawn": {
    "remove_child_entities": false
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more