1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Block can't break in specific area

Discussion in 'General discussion' started by MusicNOvas, Apr 11, 2019.

  1. MusicNOvas

    MusicNOvas Spider Jockey

    Messages:
    43
    PHP:
    if($item->getId() == 352){
                
    $level $player->getLevel();
                for(
    $count 0$count >= 0$count--){
                
    $bpos $level->getBlockIdAt($block->0$block->$count$block->z);
                    if(
    $bpos != && $bpos != 5){
                        
    $level->setBlockIdAt($block->0$block->$count$block->z0);
                        
    $item Item::get($bpos01);  
                        
    $level->dropItem(new Vector3($block->0$block->$count$block->z), $item);
                    }
    I can't this item can break block in iProtector's area (edit flag)
     
  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.