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

Solved Get all block in chunk

Discussion in 'Development' started by JblusItsMe, Aug 3, 2022.

  1. JblusItsMe

    JblusItsMe Creeper

    Messages:
    3
    GitHub:
    JblusItsMe
    Hey, do you have a code exemple for get all block in chunk ?
     
  2. IvanCraft623

    IvanCraft623 Baby Zombie

    Messages:
    105
    GitHub:
    IvanCraft623
  3. HeyDeniis_

    HeyDeniis_ Baby Zombie

    Messages:
    137
    PHP:
    $chunk = ....;//#Chunk instance
    for($x 0$x 16 $x++){
      for(
    $z 0$z 16$z++){
        for(
    $y 0$y 256$y++){
            
    $fullBlockId $chunk->getFullBlock($x$y$z);
         }
      }
    }

    [
    PHP]
     
  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.