use threejs module js, remove unused libraries, increase world generation seed to 64 bit, implement random world spawn, improve start script

This commit is contained in:
LabyStudio
2022-05-12 02:57:23 +02:00
parent 51c07050e9
commit 24c0451031
28 changed files with 50508 additions and 578 deletions
@@ -47,8 +47,8 @@ export default class PlayerEntity extends EntityLiving {
}
respawn() {
let spawnY = this.world.getHeightAt(0, 0);
this.setPosition(0, spawnY + 8, 0);
let spawn = this.world.getSpawn();
this.setPosition(spawn.x, spawn.y, spawn.z);
}
setPosition(x, y, z) {