Solved Selecting an Area

Discussion in 'Plugin Development' started by Quidam, Jan 21, 2013.

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

    Quidam

    Sorry if I sound like a noob, I can't remember how to do this.
    I basically just want to select an area of blocks, like WorldEdit does it, except I'm not using a tool, the plugin will select a structure.
    I'd like to select three individual blocks in this order:

    [air][cobble][air]
    [cobble][air][cobble]

    If that's not possible, I'm fine with selecting the entire 2x3 cuboid. As long as it works.
    Thanks in advance! :)
     
  2. Offline

    caseif

    Get one of the blocks from the cuboid, then just duplicate the Location and modify each copy with .setX() and .setZ(), as well as .setY() if you need to. Hope this helps!
     
  3. Offline

    Quidam

    Thanks, I'll try it :)
     
Thread Status:
Not open for further replies.

Share This Page