Advertisement
Guest User

Untitled

a guest
Jul 12th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. public void spawn() {
  2.  
  3. int radius = Config.WORLD_SIZE.getInteger() / 2;
  4.  
  5. for (int x = -radius; x <= radius; x++) {
  6. for (int z = -radius; z <= radius; z++) {
  7. for (int y = 0; y <= 256; y++) {
  8.  
  9. Block block = world.getBlockAt(x, y, z);
  10.  
  11. Logger.getLogger(x + " " + y + " " + z).warning();
  12.  
  13. if (block.getType() != Material.WOOL) continue;
  14.  
  15. LootBoxes.spawnLoc(block.getLocation());
  16. }
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement