/CustomBlockLoader

PocketMine-MP plugin that adds new blocks to the server!

Primary LanguagePHP

CustomBlockLoader

PocketMine-MP plugin that adds new blocks to the server!

Reference

This plugin is experimental.
We are not responsible for any problems that arise on the server by using the experimental stage.

Example Code

$this->customBlockManager = CustomBlockManager::getInstance();

$info = new CustomBlockInfo("custom:test_block");
$info->addComponent(new MaterialComponent("acacia_planks", "opaque", true, true));
$this->customBlockManager->register(new CustomBlock($info->toBlockIdentifier(), 'Test Block', new BlockBreakInfo(1), $info));