Skip to content

Routine: Spawn Entity

ricochet1k edited this page Mar 18, 2012 · 5 revisions

Spawns a creature with the health specified by the returned integer, at the specified entity's location. "Stated" mobs (i.e., Creeper_Charged, Wolf_Angry, Slime_Medium) are also spawnable. The entity being spawned can be referenced inside the routine as "spawned".

Syntax

{entity}effect.spawn.{spawnable_entity}

Examples

Death: #Zombie kills yield more zombies. 
    - 'if attacker.type.Zombie and target.type.Human':
        - 'targeteffect.spawn.Zombie': 'spawned_maxhealth'

Clone this wiki locally