Advertisement
BobMe

Minecraft HOLES Code Connection

Feb 20th, 2020
389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let value = 14
  2.  
  3. function makehole(x:number,y:number) {
  4.     let positon = world(x, 1, y)
  5.     blocks.fill(AIR, positon, positon.add(pos(1,80,1)))
  6. }
  7. while(true) {
  8.     let pos = player.position()
  9.     let x = pos.getValue(Axis.X)
  10.     let z = pos.getValue(Axis.Z)
  11.     for(let i = 0; i < value; i++) {
  12.         let x2 = x+(i-(value/2))
  13.         for(let k = 0; k < value; k++) {
  14.             let z2 = z+(k-(value/2))
  15.             if (x2 % 4 == 0 && z2 % 4 == 0) {
  16.                 makehole(x2,z2)
  17.             }
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement