summon
fun summon(level: ServerLevel, reference: Holder.Reference<EntityType<*>>, vec3: Vec3, entityData: CompoundTag? = null): Entity?
Summon an entity of a given type at a position with optional NBT.
Return
spawned Entity or null on failure
Parameters
level
server level to spawn in
reference
reference to the EntityType to summon
vec3
spawn position
entity Data
optional NBT override for the entity