Skip to content

SpawnReason

Namespace Mc.Scripting · Kind enum

public enum SpawnReason : byte

Why an entity is being added to the world.

Name Value Description
Default 0 Unknown / not classified.
Natural 1 Natural mob spawning.
ChunkGeneration 2 Created with a freshly generated chunk.
Breeding 3 A baby from breeding.
SpawnEgg 4 A spawn egg.
Spawner 5 A mob spawner.
Command 6 /summon.
Plugin 7 Spawned by a plugin.
Structure 8 Spawned by a structure.
Reinforcements 9 Zombie reinforcements.
Lightning 10 Lightning (skeleton trap, zombified piglin …).
SlimeSplit 11 A slime split.
Mount 12 A jockey / mount.
Dispenser 13 Spawned by a dispenser.
Drop 14 Created by a game mechanic: item drops, experience orbs, falling blocks, projectiles.
Portal 15 Spawned by a portal.

Command · Plugin