[Solved] BlockPopulator's chunk.getBlock(x,y,z) only allows a maximum Y value of 127?

Discussion in 'Plugin Development' started by NSArray, Aug 18, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    NSArray

    I'm working on a world generator, and in my block populator I need to get every chest in the chunk and add items to its inventory. When I use chunk.getBlock(x,y,z), the docs say it only allows X and Z values from 0-15, and Y values from 0-127 but this does not get every chest because it skips the entire top half of the world… I tried passing in values all the way up to 255 and it didn't crash or throw any errors.

    My question is should Y values bigger than 127 really not be used, or its that documentation outdated?

    Thanks :)
     
  2. Offline

    Courier

    Pretty sure it's just an outdated doc. I saw the same thing somewhere else (I think ChunkSnapshot) but 0-255 worked fine for y.
     
Thread Status:
Not open for further replies.

Share This Page