Represent a minecraft entity with an api.
let prismarineEntity = require("prismarine-entity")
let Entity = new prismarineEntity(0)
console.log(Entity)
Entities represent players, mobs, and objects.
Unique entity id.
Choices:
player
mob
object
global
- lightningorb
- experience orb.other
- introduced with a recent Minecraft update and not yet recognized or used by a third-party mod
If the entity type is player
, this field will be set.
If the entity type is mob
, this field will be set.
Field set for mob and object. A long name in multiple words.
Field set for mob and object. The numerical type of the entity (1,2,...)
Field set for mob and object. The kind of entity (for example Hostile mobs, Passive mobs, NPCs).
Field set for mob and object. A short name for the entity.
If the entity type is object
, this field will be set.
If the entity type is orb
, this field will be how much experience you
get from collecting the orb.
Vec3 presentation of entity's location.
Vec3 presentation of entity's velocity.
Entity's yaw.
Entity's pitch.
True when entity is on ground.
0
- held item1
- shoes2
- legging3
- torso4
- head
Equivalent to entity.equipment[0]
.
See http://wiki.vg/Entities#Entity_Metadata_Format for more details.
The health of the player, default: 20.
The food of the player, default: 20.
If entity is not player, here will undefined.