WorldEdit Selections

Discussion in 'Plugin Development' started by AngryCupcake274, Jul 22, 2014.

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

    AngryCupcake274

    Hello, I was wondering how to manually set a WorldEdit selection's points and fill that region with blocks. If anyone knows how, please help me!
     
  2. Offline

    Chlorek

    Just wondering why you need WorldEdit for this. Coding "algorithm" to do this task seems to be easy enough.
     
  3. Offline

    AngryCupcake274

    Chlorek

    I have my plugin getting points from a config file, but I want it to take those points and fill it with a block. The points are gotten from a WorldEdit selection, but I don't know how to manually set those points and fill the selection.
     
  4. Offline

    jthort

    There are many threads explaining this problem, but what your going to generally want to do is loop through the x,z, and if you are making a cube, y. Then just spawn a block for each location. Use nested for loops
     
  5. Offline

    AngryCupcake274

    jthort

    How would I go about filling the cuboid?
     
  6. Offline

    jthort

    Your going to have to take on of the corners, preferably the top. Then for each of the coordinates create a for loop that loops through until it hits the other corner. Inside of all three nested for loops, spawn a block at x,y,z
     
  7. Offline

    AngryCupcake274

    jthort

    I mean what code would I use to make the loop?
     
  8. Offline

    jthort

    You write it

    If you don't understand the concepts I can help you, but as for the programming part, i'm not going to spoonfeed sorry.
     
  9. Offline

    AngryCupcake274

    jthort
    I mean, how do I set the block, I will make the loop that goes through all the blocks, I just don't know how to set the block.
     
Thread Status:
Not open for further replies.

Share This Page