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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user