clicking on spawner with egg will change a mob there

This commit is contained in:
GameHerobrine 2023-12-02 14:05:37 +03:00
parent 60fd866de6
commit ea3babff02
7 changed files with 23 additions and 3 deletions

View file

@ -226,7 +226,6 @@ class Level{
$tileEntities .= $nbt->write();
break;
case TILE_MOB_SPAWNER:
console("mobspawner spawn {$tile->data["EntityId"]}");
$nbt->setData(new Compound("", array(
new StringTag("id", TILE_MOB_SPAWNER),
new IntTag("x", (int) $tile->x),

View file

@ -185,7 +185,7 @@ class NormalGenerator implements NewLevelGenerator{
}
}
foreach($this->populators as $populator){
$this->random->setSeed(0xdeadbeef ^ ($chunkX << 8) ^ $chunkZ ^ $this->level->getSeed()); //ty shoghicp for 250k bytes of randomness
$this->random->setSeed(0xdeadbeef ^ ($chunkX << 8) ^ $chunkZ ^ $this->level->getSeed()); //ty shoghicp for 250k bytes of randomness (where ~65536 are usable)
$populator->populate($this->level, $chunkX, $chunkZ, $this->random);
}
}