AddonEntityRegistry
Index
Interfaces
Functions
Interfaces
AddonEntity
readonlyid
Entity unique ID.
readonlytype
Add-on defined entity name ID.
exec
Executes command with the entity.
Parameters
command: string
command to be executed
Returns string
Error message or null if the command was run successfully.
execAt
Executes command with the entity on the specified coordinates.
Parameters
command: string
command to be executed
x: number
y: number
z: number
Returns string
Error message or null if the command was run successfully.
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.
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.
2.0.1b18
Depends on local player dimension, highly recommended to replace it with BlockSource.spawnEntity and Entity.getTypeName.