AddonEntityRegistry
since: 2.0.1b18
Index
Interfaces
Functions
Functions
getEntityData
Added entities stores in registry, so already spawned entity data may resolved again by requesting information by UID.
Parameters
entity: number
Returns AddonEntity
Add-on entity information by entity ID.
spawn
Spawns an entity defined via add-on on the specified coordinates.
That feature is obsoleteClient-side method, use BlockSource.spawnEntity instead.
Parameters
x: number
y: number
z: number
nameID: string
entity name ID, as defined from add-on
Returns number
Module used to manage custom entities added via add-ons.
Depends on local player dimension, highly recommended to replace it with BlockSource.spawnEntity and Entity.getTypeName.