Spawn (Section) — Skript
Addon: Skript · Category: Section · Since: 1.0, 2.6.1 (with section), 2.8.6 (dropped items), 2.10 (entity snapshots)
Syntax
(spawn|summon) %entitytypes/entitysnapshots% [%directions% %locations%]Description
Spawns entities. This can be used as an effect and as a section.
If it is used as a section, the section is run before the entity is added to the world. You can modify the entity in this section, using for example 'event-entity' or 'cow'. Do note that other event values, such as 'player', won't work in this section.
If you're spawning a display and want it to be empty on initialization, like not having a block display be stone, set hidden config node 'spawn empty displays' to true.
Note that when spawning an entity via entity snapshots, the code within the section will not run instantaneously as compared to spawning normally (via 'a zombie').
Examples
spawn 3 creepers at the targeted blockspawn a ghast 5 meters above the playerspawn a zombie at the player:
set name of the zombie to ""
spawn a block display of a ladder[waterlogged=true] at location above player:
set billboard of event-display to center # allows the display to rotate around the center axis