World Edit API : Change The Blocks of a Selection

Discussion in 'Plugin Development' started by DennisUnplugged, Dec 28, 2020.

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

    DennisUnplugged

    I got a selection from a player, saved it into the config and now I want to use it.... I want to change it's blocks, from glass to air!

    HOW???

    [EDIT]


    @timtower
    Can you give me an example because I'm kind of messed

    Code:
    CuboidSelection cS = new CuboidSelection(secWorld, loc1, loc2);
    What to do after the above??? :confused: (I know I know I sound stupid but I really don't know how :'()

    [EDIT 2]

    OK I FIGURED IT OUT THANKS FOR YOUR HELP!!!
     
    Last edited: Dec 28, 2020
  2. Online

    timtower Administrator Administrator Moderator

    @DennisUnplugged Get the selection, min block, max block, loop over it, check if it is glass, if so: set to air.
     
Thread Status:
Not open for further replies.

Share This Page