-
Notifications
You must be signed in to change notification settings - Fork 0
Entity API Documentation
Updates all entities, checking if they should still exist or not.
Return Value: table playerData
Gets the data for all entities, indexed by their ID (IDs in this case would be similar in the way a name is for the player).
Spawns in an entity using the given arguments. entityID is the asset ID of the entity. All other functions refer to entityID as the entity's ID in the world. To get an entity's ID, use the function 'Entity.getEntities()'. overrideTable is used to override the default values that the entity would spawn with in it's data (such as health, or direction).
Removes an entity from the world.
Sets the direction of an entity. newDirection can be a number from one to four.
Return Value: number Direction
Gets the ID for an entity.
Sets the health for an entity.
Return Value: number healthAmount
Returns the amount of health a given entity has currently.
Sets the coordinates for an entity.
Return Value: number X, number Y
Returns the current position for an entity.
Sets the dimension of an entity. dimension can always be a value from -3 to 1, but some mods may add extra dimensions.
Return Value: number Dimension
Returns the current dimension of an entity.
Equips the entity with whatever asset assetID refers to. assetID can be any asset.
Return Value: number assetID
Returns the asset ID of what they are currently using.
Moves an entity moveAmount times in the direction they're currently facing in. Set checkForCollision as true if you want the entity to be able to move through blocks.
This function needs to be completed.