BlockHorizons / libschematic

Create and manipulate MCEdit Schematic files in PocketMine-MP plugins.
21 stars 6 forks source link

Error when parsing schematic #11

Closed Atm85 closed 4 years ago

Atm85 commented 4 years ago
[14:00:54] [Server thread/CRITICAL]: Error: "Class 'pocketmine\nbt\BigEndianNbtSerializer' not found" (EXCEPTION) in "C:/Users/Stephen/Documents/Main/virions/libschematic/src/BlockHorizons/libschematic/Schematic" at line 85

running version; PocketMine-MP 3.9.4 for Minecraft: Bedrock Edition v1.12.0 (protocol version 361)

code im using..

use BlockHorizons\libschematic\Schematic;

/*----------------------------------------------*/

$schematic = new Schematic();
$schematic->parse($this->getDataFolder().'schematics/house.schematic');

$position = $sender->getPosition();
foreach ($schematic->blocks() as $block) {
    $position->level->setBlock($position->add($block), $block);
}
Sandertv commented 4 years ago

As the API in the .poggit.yml mentions, this library is written for PocketMine API 4.0.0, which has not yet been released. Please check the open merge request for a 3.0 version.

rjworks commented 4 years ago

As the API in the .poggit.yml mentions, this library is written for PocketMine API 4.0.0, which has not yet been released. Please check the open merge request for a 3.0 version.

can you make api3 branch