Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     for (let i = 0; i < mcClients.length; i++) {
  2.       mcClients[i].findBlock({ point: mcClients[i].entity.position, matching: 49, maxDistance: 5, count: 100 }, function(err, blocks) {
  3.         if(err) {
  4.           console.log("Error occurred - Woopsie");
  5.           return;
  6.         }
  7.         if (blocks.length) {
  8.           //let blockVector = new Vec3(0, -1, 0);
  9.           for (let v = 0; v < blocks.length; v++) {
  10.               console.log(blocks[v].position);
  11.           }
  12.           return;
  13.         }
  14.         else {
  15.           console.log(`${i} did not find any obsidian`);
  16.         }
  17.       });
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement