Setting a cuboid.

Discussion in 'Plugin Development' started by TheGamesHawk2001, Sep 10, 2015.

Thread Status:
Not open for further replies.
  1. Hey all, I want to set a cuboid to a certain material with a specified height length and width etc around a certain location ;D.

    It's something to do with for loops or something. Thanks!
     
  2. Code:
    for x=minX to maxX
     for y=minY to maxY
       for z=minZ to maxZ
        world->getBlock(x, y, z)->setType(Material)
     
  3. I only have the middle not min's / maxes.
     
  4. Offline

    mythbusterma

    @TheGamesHawk2001

    You must have a distance from the middle that you want to fill in. Otherwise it's just a block.
     
Thread Status:
Not open for further replies.

Share This Page