Fix chestspaces
This commit is contained in:
parent
413371a3c1
commit
3fa14b9b1b
1 changed files with 15 additions and 7 deletions
|
@ -14,7 +14,6 @@
|
|||
|
||||
namespace Ad5001\BetterGen\structure;
|
||||
|
||||
use Ad5001\BetterGen\loot\LootTable;
|
||||
use Ad5001\BetterGen\utils\BuildingUtils;
|
||||
use pocketmine\block\Block;
|
||||
use pocketmine\level\ChunkManager;
|
||||
|
@ -217,11 +216,20 @@ class Temple extends Object {
|
|||
$this->placeBlock($xx, $y - 13, $zz, Block::TNT);
|
||||
$this->placeBlock($x, $y - 11, $z, Block::STONE_PRESSURE_PLATE);
|
||||
|
||||
//TODO TILES
|
||||
$this->placeBlock($x, $y - 11, $z + 2, Block::CHEST, 4);
|
||||
$this->placeBlock($x, $y - 11, $z - 2, Block::CHEST, 2);
|
||||
$this->placeBlock($x + 2, $y - 11, $z, Block::CHEST, 5);
|
||||
$this->placeBlock($x - 2, $y - 11, $z, Block::CHEST, 3);
|
||||
$this->placeBlock($x, $y - 10, $z + 2, Block::AIR);
|
||||
$this->placeBlock($x, $y - 10, $z - 2, Block::AIR);
|
||||
$this->placeBlock($x + 2, $y - 10, $z, Block::AIR);
|
||||
$this->placeBlock($x - 2, $y - 10, $z, Block::AIR);
|
||||
// Chests
|
||||
LootTable::buildLootTable(new Vector3($x, $y - 11, $z + 2), LootTable::LOOT_DESERT_TEMPLE, $random);//TODO: Improve using addon
|
||||
/*LootTable::buildLootTable(new Vector3($x, $y - 11, $z + 2), LootTable::LOOT_DESERT_TEMPLE, $random);//TODO: Improve using addon
|
||||
LootTable::buildLootTable(new Vector3($x, $y - 11, $z - 2), LootTable::LOOT_DESERT_TEMPLE, $random);
|
||||
LootTable::buildLootTable(new Vector3($x + 2, $y - 11, $z), LootTable::LOOT_DESERT_TEMPLE, $random);
|
||||
LootTable::buildLootTable(new Vector3($x - 2, $y - 11, $z), LootTable::LOOT_DESERT_TEMPLE, $random);
|
||||
LootTable::buildLootTable(new Vector3($x - 2, $y - 11, $z), LootTable::LOOT_DESERT_TEMPLE, $random);*/
|
||||
|
||||
// Entrance is a rectangular parallelepiped
|
||||
switch ($this->direction) {
|
||||
|
|
Loading…
Reference in a new issue