minecraft:instant_despawn
Despawns the Actor immediately.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
remove_child_entities | Boolean | false | If true, all entities linked to this entity in a child relationship (eg. leashed) will also be despawned. |
Example from the game files
This is how vanilla Copper Golem uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:instant_despawn": {}
}Used by 2
Vanilla entities with minecraft:instant_despawn in their definition: