MobSpawnRegistry
Index
Interfaces
Functions
Interfaces
SpawnInterface
condition
Type declaration
Returns boolean
optionaldenyNaturalDespawn
rarity
type
Functions
executeSpawn
Parameters
spawn: SpawnInterface
position: { x: number; z: number }
x: number
z: number
Returns void
getRandPosition
Returns { x: number; z: number }
x: number
z: number
getRandomSpawn
Parameters
rarityMultiplier: number
Returns any
registerSpawn
Parameters
entityType: number
rarity: number
optionalcondition: () => boolean
optionaldenyNaturalDespawn: boolean
Returns void
Use behavior packs to register spawning entities in server or use callbacks.