Adds an effect to the mob
effect id, should be one one of Native.PotionEffect or EPotionEffect values.
effect amplifier
effect time in ticks
if true, particles are ambient
if true, particles are not displayed
whether the ]] values
Updates current entity position by specified coordinates
Updates current entity's velocity by specified value
Clears effect, applied to the mob
effect id, should be one of the Native.PotionEffect
Clears all effects of the mob
Damages entity
damage value
if specified, can be used as callback cause param
additional params for the damage
entity that caused damage, can be used as callback cause param
if true, damage is reduced by entity armor
unknown param
Retrieves nearest to the coordinates entity of the specified entity type
search range center coordinates
entity type ID. Parameter is no longer supported and should be 0 in all cases
if specified, determines search radius
an array of all loaded entities ids
Returns array of all entities' numeric ids in given range in blocks
search range center coordinates
determines search radius
entity type ID. Parameter is no longer supported and should not be used
an array of all loaded entities ids
armor slot id, should be one of the Native.ArmorType values
armor slot contents for entity
Creates an object used to change entity's attributes. See {@page Attributes} page for details.
object used to manipulate entity's attributes
entity's current carried item information
compound tag for the specified entity
custom entity object by its numeric entity id
current dimension numeric id, one of the Native.Dimension values or custom dimension id
distance between specified entity and a fixed coordinate set
distance in blocks between two entities
Gets item from specified drop entity
ItemInstance that is in the dropped item
object with duration and level of the potion effect with given numeric id on the given entity. These fields are set to 0, if the given effect doesn't affect the given entity at the moment.
entity's current health value
entity's look angle in radians
look angle between entity and static coordinates
look vector for the entity
entity's maximum health value
true, if entity was immobilized
Retrieves entity look angle in the form of pitch/yaw angle. No other information included to the resulting object
Retrieves entity's current movement information
object that contains normalized moving vector, moving speed and moving xz speed (with no Y coordinate)
entity custom name tag
entity's current offhand item information
Creates or gets an existing PathNavigation instance for the specified mob
PathNavigation used to control entity's target position and the way to get there
entity position
entity render type, should be one of the Native.MobRenderType values
entity that is riding the specified entity
entity that is ridden by specified entity
true if entity is sneaking, false otherwise
Gets the attack target of current entity
target entity's unique id
numeric entity type, one of the Native.EntityType
string type for entities defined via add-ons, otherwise null
string type for entities defined via add-ons or numeric type for all the other entities
distance between player and entity, counting only x and z values (y value is ignored)
numeric id of the potion effect, one of Native.PotionEffect or EPotionEffect values.
whether the given entity is affected by the potion effect with given numeric id
Adds specified health amount to the entity
health to be added to entity, in half-hearts
an object that allows to manipulate entity health
true if specified entity id is valid and entity with this id exists in the world
Sets entity look angle to look at specified coordinates
Same as Entity.lookAt but uses Vector as param type
Makes entity move using pitch/yaw angle to determine direction
angle to define entity's direction
additional move parameters
Makes entity move towards its current look angle
additional move parameters
Makes entity move to the target coordinates
additional move parameters
Removes entity from the world
Makes rider ride entity
ridden entity
rider entity
Sets armor slot contents for the entity
armor slot id, should be one of the Native.ArmorType values
item id
item count
item data
item extra
Sets current carried item for the entity
item id
item count
item data
item extra
Sets compound tag for the specified entity
Sets item to the specified drop entity
item id
item count
item data
item extra
Puts entity on fire
duration (in ticks) of the fire
should always be true
Sets entity's current health value
health value to be set
Sets hitbox to the entity. Hitboxes define entities collisions
hitbox width and length
hitbox height
Sets specified pitch and yaw as look angle for the entity
look angle yaw in radians
look angle pitch in radians
Sets entity's maximum health value
Sets entity's immobile state
if true, entity can move, otherwise it is immobilized
Sets custom entity tag. Custom entity tags are displayed above the entities and can be set by player using label
name tag to be set to the entity
Sets current offhand item for the entity
item id
item count
item data
item extra
Sets the specified coordinates as a new position for the entity. No checks are performed
Sets entity render type
entity render type, should be one of the Native.MobRenderType values
Sets mob skin
skin name, full path in the resourcepack (mod assets)
Sets entity's sneaking state
if true, entity becomes sneaking, else not
Sets the attack target for current entity. Works only for mobs that actually can attack
target entity's unique id
Set current entity's velocity using velocity vector
velocity
velocity
velocity
Spawns vanilla entity on the specified coordinates
numeric entity type, one of the Native.EntityType
skin to set for the entity. Leave empty or null to use default skin of the mob
numeric id of spawn entity or -1 if entity was not created
Same as Entity.spawn, but uses Vector object to represent coordinates
Spawns custom entity on the specified coords. Allows to pass some values to controllers via extra param
custom entity string id
object that contains some data for the controllers
Same as Entity.spawnCustom, but uses Vector object to represent coordinates
Generated using TypeDoc
Module used to manipulate entities (mobs, drop, arrows, etc.) in the world. Every entity has its unique numeric id which is often used across this module as the first function parameter