Python For If

for x in range(78,86):
for z in range(-17,-9):
for y in range(4,24):
a=mc.getBlock(x,y,z)
if (a!=0):
mc.setBlock(x,y,z,41)
print (a)

for x in range(-150,0,10):
for y in range(0,100,10):
for z in range(-150,0,10):
mcdrawing.drawSphere(x,y,z,6,41);
print (z)

Leave a Reply