Help with setting blocks

Discussion in 'Programming Help' started by Dagrond, Dec 4, 2018.

  1. Dagrond

    Dagrond New Member

    I want to use WorldEdit API to set blocks in region. I have:
    EditSession,
    ProtectedRegion (all blocks in that region should be changed to the block from below),
    Material (I've already know that this material is solid block).
    I've tried something with session.setBlocks() but I cannot call ProtectedRegion to Set<Vector>, and Material to Pattern.

    I want to do it on latest WorldEdit and WorldGuard versions.