Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ami = peripheral.wrap("right")
- amiw = ami.getWorld(ami.getPeripheralWorldID())
- for y = 38,63 do
- for z = -840,-785 do
- for x = 420,460 do
- print(x,",",y,",",z)
- bID = amiw.getBlockID(x,y,z)
- if bID == 46 then
- if y > 60 then
- amiw.setBlock(x,y,z,49,0)
- else
- amiw.setBlock(x,y,z,0,0)
- end
- --sleep(0.05)
- end
- end
- end
- sleep(0.05)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement