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

Solved Get all the blocks of a world

Discussion in 'Development' started by MalakasPlayzMCPE, Aug 9, 2018.

  1. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    So there is a getTiles() function that gets all the tiles of a world, but is there any way to getBlocks()?
     
  2. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    no, because it would take an absurd amount of CPU time and memory. Find a better way to do whatever you're doing.

    getTiles() additionally only returns loaded tiles. Tiles are relatively uncommon and they have to be separately tracked anyway.
     
  3. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    Idk about world but I do with Coordinate
     
  4. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Muqsit and dktapps like this.
  5. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    How is that supposed to help me?
    Well, I do not need all the blocks actually. Could you tell me how to get the nearby blocks of the server's spawn location. for() would help but I do not know how to use it.
     
  6. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    Nevermind, I think I found it
     
  7. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    r/woooosh
     
    corytortoise and Muqsit like this.
  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.