Add new blocks

Discussion in 'Development' started by PiloudeDakar, Dec 12, 2020.

  1. PiloudeDakar

    PiloudeDakar Silverfish

    Messages:
    20
    GitHub:
    PiloudeDakar
    Can i add new blocks with
    PHP:
    public function registerModdedBlocks(){
    BlockFactory::registerBlock(new ModdedBlockClass(ModdedBlocksIds::MODDED_BLOCK_ID_CONST0"Modded block name"));
     
  2. OguzhanUmutlu

    OguzhanUmutlu Witch

    Messages:
    53
    GitHub:
    OguzhanUmutlu
    Its 4.0.0 feature. For more information:
    https://github.com/pmmp/PocketMine-MP/blob/stable/BUILDING.md
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.