CustomEntity
Index
Constructors
constructor
Returns CustomEntity
Properties
readonlyentity
readonlyisInstance
readonlynameId
Methods
addController
Parameters
name: string
basicPrototype: any
Returns CustomEntity
allowNaturalDespawn
Returns void
callControllerEvent
Parameters
event: string
rest...params: any[]
Returns void
customizeAI
Customizes controller "AI".
Parameters
custom: object
Returns void
customizeController
Parameters
name: string
customPrototype: object
Returns void
customizeDescription
Customizes controller "description".
Parameters
custom: object
Returns void
customizeEvents
Customizes controller "event".
Parameters
custom: object
Returns void
customizeVisual
Customizes controller "visual".
Parameters
custom: object
Returns void
denyDespawn
Returns void
destroy
Returns void
getPlayerDistance
Returns number
recreateEntity
Returns void
setBaseType
Parameters
type: number
Returns void
setNativeEntity
Parameters
entity: number
Returns void
Use behavior packs instead.