Advertisement
Corosus

Untitled

Aug 21st, 2011
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. int scanSize = 120;
  2. int hScanSize = scanSize / 2;
  3. int scanResolution = 20;
  4. for (int xx = (int)posX - hScanSize; xx <= posX + hScanSize; xx+= scanResolution) {
  5. for (int zz = (int)posZ - hScanSize; zz <= posZ + hScanSize; zz+= scanResolution) {
  6. if (this.worldObj.getBlockId(xx, (int)posY, zz) == 0) {
  7. }
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement