Replace all the Banners in a region with a different pattern

Discussion in 'Spigot Plugin Development' started by smithbro21, Feb 9, 2018.

  1. So I think I know how to replace all the blocks of a certain type using WorldGuard and WorldEdit, but what I have no idea how to do is do that with a banner that has a specific pattern. Any ideas?
     
  2. As already stated, you can use the BannerMeta to change the pattern I believe. Then it is just a matter of finding the banners, which should be fairly easy if you have point A and B.
     
  3. Sooo turns out I don't know how to loop through all the blocks in a CuboidRegion can anyone give me an up to date example? The worldedit javadocs are down so I'm kinda stuck.
     
  4. Isn't there a #getBlocks or something in a ProtectedRegion?
     
  5. Not that I can find
     

Share This Page