How to set blocks with the WorldEdit API

Discussion in 'Plugin Development' started by mydeblob, Nov 24, 2013.

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

    mydeblob

    I thought I had it down, but I obviously don't. How do I set blocks with the WorldEdit API? (Like the //set command)
    I already have implemented WorldEdit and have the two selections. I figured out some of the methods to do this is in the EditSession class of WorldEdit. Unfortunately, I couldn't get passed this.
    So long story short, how do you set blocks with the WorldEdit API?
     
  2. Offline

    Stoux

    mydeblob , Minecrell posted a great response on one of my threads. Check it out of here. In the end I didn't use his setBlocks code since I had to do some other things with the selection too (did use the rest), but I think it would work great for you. See the last bit of code he posted about 'Edit session'. Again, all the credits to him!
     
    Minecrell likes this.
  3. Offline

    mydeblob

Thread Status:
Not open for further replies.

Share This Page