Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void deleteCage(Location l) {
- int i,j,k;
- int x=l.getBlockX() - 1;
- int y=l.getBlockY() - 1;
- int z=l.getBlockZ() - 1;
- for (i=x;i<=x+2;i++) {
- for (j=y;j<=y+4;j++) {
- for (k=z;k<=z+2;k++) {
- l.setX(i);
- l.setY(j);
- l.setZ(k);
- l.getBlock().setType(Material.AIR);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement