SHARE
TWEET

Untitled

a guest Jan 18th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int amount = 0;
  2. ArrayList<Location> stones = new ArrayList<Location>;
  3.  
  4. World w = Bukkit.getWorld("world");
  5. for (Chunk c : w.getLoadedChunks()) {
  6. int cx = c.getX() << 4;
  7. int cz = c.getZ() << 4;
  8. for (int x = cx; x < cx + 16; x++) {
  9. for (int z = cz; z < cz + 16; z++) {
  10. for (int y = 0; y < 128; y++) {
  11. if (w.getBlockAt(x, y, z).getType() == Material.STONE) {
  12. stone.add(w.getLocation());
  13. amount++;
  14. }
  15. }
  16. }
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
 
Top