2021-08-15 00:21:41 +01:00
|
|
|
const EntityLiving = require("./EntityLiving.js");
|
|
|
|
|
|
|
|
class EntityPlayer extends EntityLiving {
|
2021-08-18 01:26:04 +01:00
|
|
|
constructor(x = 0, y = 0, z = 0) {
|
2021-08-15 00:21:41 +01:00
|
|
|
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;
|