dungeon generator(disabled)

This commit is contained in:
GameHerobrine 2023-12-02 13:39:58 +03:00
parent 9abc3cd409
commit 60fd866de6
11 changed files with 157 additions and 30 deletions

View file

@ -33,6 +33,8 @@ class PocketMinecraftServer{
console("[INFO] Starting Minecraft PE server on " . ($this->serverip === "0.0.0.0" ? "*" : $this->serverip) . ":" . $this->port);
EntityRegistry::registerEntities();
Structures::initialize();
Feature::init();
StaticBlock::init();
define("BOOTUP_RANDOM", Utils::getRandomBytes(16));
$this->serverID = $this->serverID === false ? Utils::readLong(substr(Utils::getUniqueID(true, $this->serverip . $this->port), 8)) : $this->serverID;
$this->seed = $this->seed === false ? Utils::readInt(Utils::getRandomBytes(4, false)) : $this->seed;