Spawn Entity (Entity Action Type)

Spawns another entity at the position of the target entity.

Spawns another entity at the position of the target entity.

Type ID: apoli:spawn_entity

Fields

FieldTypeDefaultDescription
entity_typeIdentifierThe namespace and ID of the entity type that will be spawned.
tagNBToptionalIf specified, this NBT data will be applied to the entity that will be spawned.
entity_actionEntity Action TypeoptionalIf specified, the specified entity action type will be executed on the entity that will be spawned when it is spawned.
bientity_actionBi-Entity Action TypeoptionalIf specified, this bi-entity action will be executed on either or both the actor (the entity that invoked the entity action) and the target (the spawned entity).

Examples

"entity_action": {
    "type": "apoli:spawn_entity",
    "entity_type": "minecraft:zombie",
    "tag": "{NoAI:1b,IsBaby:1,HandItems:[{id:\"minecraft:gold_block\",Count:1},{}]}"
}

This example will spawn a baby Zombie holding a Gold Block that has no AI at the position of the entity.