Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- write('give me command block [y]/[n]: ')
- local command = read()
- if command == 'n' then
- os.reboot()
- end
- shell.run('go up 4')
- turtle.placeUp()
- commandBlock = peripheral.wrap('top')
- commandBlock.setCommand('setblock ~-1 ~-1 ~ glass')
- commandBlock.runCommand()
- while not turtle.detect() do
- turtle.turnLeft()
- end
- turtle.dig()
- local function drawAngles()
- tbl = {
- tPlace1 = {
- ['x1'] = {'~2 ', '~2 ', '~2 ', '~2 ', '~2 ', '~2 ', '~1 ', '~ ', '~-1 '},
- ['y1'] = {'~1 ', '~ ', '~-1 ', '~2 ', '~2 ', '~2 ', '~2 ', '~2 ', '~2 '},
- ['z1'] = {'~2 ', '~2 ', '~2 ', '~-1 ', '~ ', '~1 ', '~2 ', '~2 ', '~2 '},
- ['x2'] = {'~-2 ', '~-2 ', '~-2 ', '~-2 ', '~-2 ', '~-2 ', '~1 ', '~ ', '~-1 '},
- ['y2'] = {'~1 ', '~ ', '~-1 ', '~-2 ', '~-2 ', '~-2 ', '~-2 ', '~-2 ', '~-2 '},
- ['z2'] = {'~-2 ', '~-2 ', '~-2 ', '~-1 ', '~ ', '~1 ', '~-2 ', '~-2 ', '~-2 '},
- ['x3'] = {'~2 ', '~2 ', '~2 ', '~-2 ', '~-2 ', '~-2 ', '~1 ', '~ ', '~-1 '},
- ['y3'] = {'~1 ', '~ ', '~-1 ', '~2 ', '~2 ', '~2 ', '~2 ', '~2 ', '~2 '},
- ['z3'] = {'~-2 ', '~-2 ', '~-2 ', '~-1 ', '~ ', '~1 ', '~-2 ', '~-2 ', '~-2 '},
- ['x4'] = {'~-2 ', '~-2 ', '~-2 ', '~2 ', '~2 ', '~2 ', '~1 ', '~ ', '~-1 '},
- ['y4'] = {'~1 ', '~ ', '~-1 ', '~-2 ', '~-2 ', '~-2 ', '~-2 ', '~-2 ', '~-2 '},
- ['z4'] = {'~2 ', '~2 ', '~2 ', '~-1 ', '~ ', '~1 ', '~2 ', '~2 ', '~2 '}
- },
- tPlace2 = {
- ['x1'] = {'~-3 ', '~-3 ', '~-3 ', '~-3 ', '~-3 ', '~-3 ', '~-2 ', '~-1 ', '~ '},
- ['y1'] = {'~-2 ', '~-1 ', '~ ', '~-3 ', '~-3 ', '~-3 ', '~-3 ', '~-3 ', '~-3 '},
- ['z1'] = {'~-2 ', '~-2 ', '~-2 ', '~1 ', '~ ', '~-1 ', '~-2 ', '~-2 ', '~-2 '},
- ['x2'] = {'~1 ', '~1 ', '~1 ', '~1 ', '~1 ', '~1 ', '~-2 ', '~-1 ', '~ '},
- ['y2'] = {'~-2 ', '~-1 ', '~ ', '~1 ', '~1 ', '~1 ', '~1 ', '~1 ', '~1 '},
- ['z2'] = {'~2 ', '~2 ', '~2 ', '~1 ', '~ ', '~-1 ', '~2 ', '~2 ', '~2 '},
- ['x3'] = {'~-3 ', '~-3 ', '~-3 ', '~1 ', '~1 ', '~1 ', '~-2 ', '~-1 ', '~ '},
- ['y3'] = {'~-2 ', '~-1 ', '~ ', '~-3 ', '~-3 ', '~-3 ', '~-3 ', '~-3 ', '~-3 '},
- ['z3'] = {'~2 ', '~2 ', '~2 ', '~1 ', '~ ', '~-1 ', '~2 ', '~2 ', '~2 '},
- ['x4'] = {'~1 ', '~1 ', '~1 ', '~-3 ', '~-3 ', '~-3 ', '~-2 ', '~-1 ', '~ '},
- ['y4'] = {'~-2 ', '~-1 ', '~ ', '~1 ', '~1 ', '~1 ', '~1 ', '~1 ', '~1 '},
- ['z4'] = {'~-2 ', '~-2 ', '~-2 ', '~1 ', '~ ', '~-1 ', '~-2 ', '~-2 ', '~-2 '}
- },
- tPlace3 = {
- ['x1'] = {'~2 ', '~2 ', '~2 ', '~3 ', '~3 ', '~3 ', '~1 ', '~ ', '~-1 '},
- ['y1'] = {'~1 ', '~ ', '~-1 ', '~2 ', '~2 ', '~2 ', '~2 ', '~2 ', '~2 '},
- ['z1'] = {'~3 ', '~3 ', '~3 ', '~-1 ', '~ ', '~1 ', '~3 ', '~3 ', '~3 '},
- ['x2'] = {'~-2 ', '~-2 ', '~-2 ', '~-3 ', '~-3 ', '~-3 ', '~1 ', '~ ', '~-1 '},
- ['y2'] = {'~1 ', '~ ', '~-1 ', '~-2 ', '~-2 ', '~-2 ', '~-2 ', '~-2 ', '~-2 '},
- ['z2'] = {'~-3 ', '~-3 ', '~-3 ', '~1 ', '~ ', '~-1 ', '~-3 ', '~-3 ', '~-3 '},
- ['x3'] = {'~2 ', '~2 ', '~2 ', '~-3 ', '~-3 ', '~-3 ', '~1 ', '~ ', '~-1 '},
- ['y3'] = {'~1 ', '~ ', '~-1 ', '~2 ', '~2 ', '~2 ', '~2 ', '~2 ', '~2 '},
- ['z3'] = {'~-3 ', '~-3 ', '~-3 ', '~-1 ', '~ ', '~1 ', '~-3 ', '~-3 ', '~-3 '},
- ['x4'] = {'~-2 ', '~-2 ', '~-2 ', '~3 ', '~3 ', '~3 ', '~1 ', '~ ', '~-1 '},
- ['y4'] = {'~1 ', '~ ', '~-1 ', '~-2 ', '~-2 ', '~-2 ', '~-2 ', '~-2 ', '~-2 '},
- ['z4'] = {'~3 ', '~3 ', '~3 ', '~-1 ', '~ ', '~1 ', '~3 ', '~3 ', '~3 '}
- }
- }
- for i = 1, 4 do
- for rl = 1, 9 do
- if i >= 3 then
- vrs = 'stained_glass_pane '
- else
- vrs = 'stained_glass '
- end
- commandBlock.setCommand(tostring('setblock '..
- tbl.tPlace1['x'..i][rl]..tbl.tPlace1['y'..i][rl]..tbl.tPlace1['z'..i][rl]..
- 'command_block 0 replace {Command:/setblock '..
- tbl.tPlace2['x'..i][rl]..tbl.tPlace2['y'..i][rl]..tbl.tPlace2['z'..i][rl]..
- vrs..rl..'}'))
- commandBlock.runCommand()
- end
- end
- for i = 1, 4 do
- for rl = 1, 9 do
- commandBlock.setCommand(tostring('setblock '..
- tbl.tPlace3['x'..i][rl]..tbl.tPlace3['y'..i][rl]..tbl.tPlace3['z'..i][rl]..'stone_button'))
- commandBlock.runCommand()
- end
- end
- end
- local tCell = {' ~2 ', ' ~-2 '}
- for y = 1, 2 do
- for x = -5, 5 do
- for z = -5, 5 do
- commandBlock.setCommand('setblock ~'..x..tCell[y]..'~'..z..' glass 0 replace')
- commandBlock.runCommand()
- end
- end
- end
- for x = -5, 5 do
- for z = -5, 5 do
- commandBlock.setCommand('setblock ~'..x..' ~-6 ~'..z..' quartz_block 0 replace')
- commandBlock.runCommand()
- end
- end
- commandBlock.setCommand('setblock ~-5 ~2 ~-5 command_block 0 replace {Command:/tp @p ~ ~-3 ~}')
- commandBlock.runCommand()
- commandBlock.setCommand('setblock ~-5 ~3 ~-5 stone_pressure_plate 0 replace')
- commandBlock.runCommand()
- commandBlock.setCommand('setblock ~5 ~2 ~5 command_block 0 replace {Command:/tp @p ~ ~-3 ~}')
- commandBlock.runCommand()
- commandBlock.setCommand('setblock ~5 ~3 ~5 stone_pressure_plate 0 replace')
- commandBlock.runCommand()
- commandBlock.setCommand('setblock ~5 ~-2 ~-5 command_block 0 replace {Command:/tp @p ~ ~5 ~}')
- commandBlock.runCommand()
- commandBlock.setCommand('setblock ~5 ~-1 ~-5 stone_pressure_plate 0 replace')
- commandBlock.runCommand()
- commandBlock.setCommand('setblock ~-5 ~-2 ~5 command_block 0 replace {Command:/tp @p ~ ~5 ~}')
- commandBlock.runCommand()
- commandBlock.setCommand('setblock ~-5 ~-1 ~5 stone_pressure_plate 0 replace')
- commandBlock.runCommand()
- commandBlock.setCommand('setblock ~5 ~-6 ~5 command_block 0 replace {Command:/tp @p ~ ~5 ~}')
- commandBlock.runCommand()
- commandBlock.setCommand('setblock ~5 ~-5 ~5 stone_pressure_plate 0 replace')
- commandBlock.runCommand()
- commandBlock.setCommand('setblock ~-5 ~-6 ~-5 command_block 0 replace {Command:/tp @p ~ ~5 ~}')
- commandBlock.runCommand()
- commandBlock.setCommand('setblock ~-5 ~-5 ~-5 stone_pressure_plate 0 replace')
- commandBlock.runCommand()
- drawAngles()
- shell.run('pastebin get PRMbnCLe startup')
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement