Replacing blocks in 1.13 with WE

Discussion in 'Programming Help' started by Drumper, Jan 22, 2019.

  1. Drumper

    Drumper New Member

    Hey guys,

    I want to use FAWE to replace certain blocks in a chunk to stone. I have the regions but need help with editSession.replaceBlocks (region, mask, pattern).

    I found that:
    Code (Text):
    // here you create a set of world edit blocks that you wish to replace
    Set<BaseBlock> toReplace = new HashSet<>();
    toReplace.add(new BaseBlock(35, 0));

    // now use that edit session to replace the blocks in toReplace with your desired block
         editSession.replaceBlocks(test, toReplace, new BaseBlock(35, 14));
    } catch (MaxChangedBlocksException e)
    but BaseBlock as mask and pattern doesnt work anymore.

    How do I get the blocks to be replaced into the mask and the stone in the pattern?
    hope someone of you can help me