SHARE
TWEET

Untitled

a guest Jul 12th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top