Can i add new blocks with PHP: public function registerModdedBlocks(){BlockFactory::registerBlock(new ModdedBlockClass(ModdedBlocksIds::MODDED_BLOCK_ID_CONST, $Modded_Block_Meta, "Modded block name"));
No, due to the limit of the world format which pocketmine 3 is using. You can’t register blocks that with ID higher than 255, Also meta of blocks are also limited to 15.
You can create new items, but there is a certain way you need to do it that is shown in https://github.com/DasEpicDv/CustomisedBravo
I need to do this ? PHP: public function registerModdedItem(){ ItemFactory::registerItem(new ModdedItemClass( id, meta, name))}
there is more to it than that, you also need a texture pack (just look at the repository ethaniccc sent above)
Hey, I have suggested at pocketmine's creator to change world format to be able to add modded blocks and they Sayed me this possible at the moment.
the master branch on the pocketmine repository https://github.com/pmmp/PocketMine-MP/tree/master there is no pre-built phar because it's still in development rn, read the BUILDING.md file for instructions