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:
    104
    GitHub:
    IvanCraft623
  3. HeyDeniis_

    HeyDeniis_ Baby Zombie

    Messages:
    135
    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]
     

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.