Name | Spawn |
Syntax | spawn [<entity>|...] (<location>) (target:<entity>) (persistent) (reason:<reason>) |
Short Description | Spawns a list of entities at a certain location. |
Full Description | Spawn an entity or list of entities at the specified location.
Accepts the 'target:<entity>' argument which will cause all spawned entities to follow and attack the targeted entity. If the persistent argument is present, the entity will not despawn when no players are within range, causing the entity to remain until killed. Optionally specify 'reason:<reason>' (Paper only) to specify the reason an entity is spawning for the 'entity spawns' event, using any reason from https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html If the location isn't specified, will use either the linked NPC's location, or the linked player's location. |
Related Tags | <EntityTag.is_spawned> Returns whether the entity is spawned.
<server.entity_types> Returns a list of all entity types known to the server. (...)
<entry[saveName].spawned_entities> returns a list of entities that were spawned.
<entry[saveName].spawned_entity> returns the entity that was spawned (if you only spawned one).
|
Usage Example |
|
Usage Example |
|
Usage Example |
|
Synonyms (Search Aid) | summon |
Group | entity |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/entity/SpawnCommand.java#L32 |