[Help] Getting all the blocks in a Schematic

Discussion in 'Plugin Development' started by XvBaseballkidvX, May 28, 2014.

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

    XvBaseballkidvX

    Hello everyone!

    I was just wondering how I would be able to get all the blocks in a schematic using WorldEdit API! I have been messing around with it for the paste hour or so and haven't had much luck.

    Thank you for reading!
    All help is much appreciated!

    Bump ;-; (i cri evrytiem)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 8, 2016
  2. Offline

    mythbusterma

    Only bump every 24 hours.

    You can use the Selection interface's methods "getMaximumPoint()" and "getMinimumPoint()," and then iterate over every block in the x, y, and z axis (minimum has the lowest values in all three, and maximum has the highest).
     
Thread Status:
Not open for further replies.

Share This Page