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

how to use SubChunkIteratorManager to set blocks

Discussion in 'Development' started by Levi, Jun 14, 2018.

  1. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    i tried

    PHP:
    $sub = new SubChunkIteratorManager();
     
    $sub->level $player->getLevel();
    so far..im trying to set blocks in this area but theres only 5 methods in SubChunkIteratorManager i dont really get how to set blocks with it.
     
  2. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    is anyone know?
     
  3. Angel

    Angel Spider Jockey

    Messages:
    44
    GitHub:
    aimjel
    I have no idea what SubChunkIteratorManager does. But, if you wanna set a block in an area why not just get the area coords and use Level->setBlock() to set block's in it?
     
  4. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    It can set one million block in one minute
     
  5. Angel

    Angel Spider Jockey

    Messages:
    44
    GitHub:
    aimjel
    Yes, depends on how you execute though.
     
  6. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    the SubChunkIteratorManager can. the Setblock() will take hours to set one million blocks @Muqsit knows
     
  7. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
  8. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
  9. Pab45O

    Pab45O Spider Jockey

    Messages:
    37
    GitHub:
    Pab450
  10. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
  11. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    and when i reloogedd and start breaking the blocks, they give the particles of the previous block
     
  12. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    the blocks don't update unless i place a block
     
  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.