mc-beta-server/server/Entities/EntityPlayer.js

13 lines
326 B
JavaScript
Raw Normal View History

2021-08-15 00:21:41 +01:00
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;