Chest Filling Help I'm making a plugin and part of it needs the chests to be filled in the arena. I can't seem to figure out how to go about doing this. If someone can help it would be greatly appreciated. - dlange
Iterate on all the blocks within a cuboid range, if the block is a chest then fill it with items. If not continue with your iteration.
In addition to what aaomidi said: How are you storing the two boundaries of the arena? In two separate Location instances or one cuboid (a custom class) instance? Also, if you want a small Cuboid class: https://gist.github.com/KingFaris10/4527fbaf8caa9fd7b800 You can get all the blocks by doing: Code: for (Block block : cuboid) { } Or alternatively, List<Block> blocks = cuboid.getBlocks();
@dlange I was wondering the same thing too but I want to fill chests inside a WorldEdit Selection. Anyone can help me with that?