Skip to main content

Summon Clone (Entity Action Type)

Summons a clone that fights for the player who has the power. The clone is player-shaped and attacks in melee or with a bow or crossbow, whichever it holds. It defends and assists its owner, and right-clicking it tells it to sit. It copies the owner's apoli:custom_model_render texture overlays so the two look the same. The action only works when its entity is a player.

Type ID: apoli:summon_clone

Fields

FieldTypeDefaultDescription
can_attackBooleantrueWhether the clone attacks the owner's enemies.
can_sitBooleantrueWhether the owner can make the clone sit or stand by right-clicking it.
follow_ownerBooleantrueWhether the clone follows the owner when it gets far away.
inherit_equipmentBooleantrueWhether the clone copies the equipment the owner wears and holds.
inherit_enchantmentsBooleantrueWhether copied equipment keeps its enchantments and other components.
slimBooleanfalseForces the slim arm model. Only used when custom textures are set. Otherwise the owner's model is copied.
wide_textureIdentifieroptionalA custom texture for the wide model. Without it, the owner's skin is used.
slim_textureIdentifieroptionalA custom texture for the slim model. Without it, the owner's skin is used.
max_life_ticksInteger1200Ticks before the clone dies by itself. 0 or less makes it permanent until it is killed.
summon_idIdentifieroptionalA tag that apoli:set_summon_max_life can use to target this clone.
powersArray of IdentifiersoptionalPowers to grant the clone when it spawns.
bientity_actionBi-entity Action TypeoptionalRuns once after the clone spawns, with the owner as the actor and the clone as the target. If it moves the clone, every player watching sees it appear at its new spot instead of at yours.
offsetVector{"x": 0, "y": 0, "z": 0}Moves the spawn point away from the owner by this much, in blocks.
spaceSpace"world"The frame offset is read in. "local" follows where the owner is looking, so z is forward and x is to its left.

Examples

"entity_action": {
    "type": "apoli:summon_clone",
    "max_life_ticks": 600,
    "inherit_equipment": true
}

This summons a clone that looks like the player, copies their gear, fights for them and disappears after 30 seconds.

note

Running out of max_life_ticks kills the clone instead of deleting it, so an apoli:action_on_death granted through powers fires, and bookkeeping such as returning a summon slot or clearing an apoli:entity_set runs exactly as it does when something kills the clone. Losing its owner (they log out or change dimension) ends it the same way. It drops nothing either way.