Origins: Powerful Powers
» Entity actions » Despawn fake entity

Despawn fake entity

origins-powerful-powers:despawn_fake_entityentity action

Removes fake entities before their lifetime runs out.

FieldTypeDefaultDescription
idIntegernoneThe fake entity to remove. Left out: every fake entity this entity spawned.
  • Ids are unique across the server, so an id removes that fake entity whoever spawned it. Without an id, only the running entity's own fake entities go.
  • An assigned id is the lowest one no live fake entity has, so ids freed by despawning are used again and stay small. Use high numbers for your pack's own ids to keep clear of those.
  • Removing a missing fake entity does nothing.
  • Viewers see it disappear on the next tick.

Example: a spirit you can summon and dismiss with the same key.

json
{
  "type": "origins:active_self",
  "key": {
    "key": "key.origins.secondary_active"
  },
  "cooldown": 20,
  "entity_action": {
    "type": "origins-powerful-powers:despawn_fake_entity",
    "id": 7001
  }
}

From a command: /opp fakeentity remove.