Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --local air = 0
- --local wall = 95
- --local floor = 42
- --local size = 21
- --local floorHeight = 8
- --local up = 155
- --local down = 5
- local x,y,z = commands.getBlockPosition()
- ---print(x..y..z)
- fs.delete("scans/scan1")
- local scan = fs.open("scans/scan1","w")
- scan.write(textutils.serialize(commands.getBlockInfos(x,y+1,z,x+15,y+10,z+15)))
- scan.flush()
- scan.close()
- --[[
- for i=0,8 do
- for j=1,8 do
- for k=0,8 do
- scan.write(k.." "..j.." "..i.." ")
- local reading = commands.getBlockInfo(x+k,y+j,z+i)
- scan.write(reading.name.." ")
- scan.write(reading.metadata)
- scan.writeLine()
- --scan.write(textutils.serialize(commands.getBlockInfo(x+k,y+j,z+i)))
- end
- end
- end
- --commands.say(a..b..c)
- --scan.write(textutils.serialize(commands.getBlockInfos(a,b+1,c,a+15,b+10,c+15)))
- scan.flush()
- scan.close()
- --shell.run("pastebin","put","scans/scan1")
- --]]
- --[[
- for x=a+1,(a+size) do
- for y=up,down,-1 do
- for z=c+1,(c+size) do
- commands.setblock(x,y,z,air,replace)
- end
- end
- end
- --]]
Add Comment
Please, Sign In to add comment