mc-beta-server/server/Entities/EntityPlayer.js
2021-08-15 00:21:41 +01:00

13 lines
No EOL
326 B
JavaScript

const EntityLiving = require("./EntityLiving.js");
class EntityPlayer extends EntityLiving {
constructor(itemID = 0x00, x = 0, y = 0, z = 0) {
super(x, y, z);
this.motionX = (Math.random() * 0.2 - 0.1);
this.motionY = 0.2;
this.motionZ = (Math.random() * 0.2 - 0.1);
}
}
module.exports = EntityPlayer;