Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local info
- term.write("MobDrop(1) or TradeVillage(2): ")
- info = read()
- print(info)
- if info == 1 then
- print("Building MobDrop")
- else
- if info == 2 then
- print("Building TradeVillage")
- else
- print("Error not valid build")
- end
- end
- function up(x)
- for i=1,x do
- while not turtle.up() do
- turtle.digUp()
- turtle.attackUp()
- end
- end
- end
- function forward(x)
- for i=1,x do
- while not turtle.forward() do
- turtle.dig()
- turtle.attack()
- end
- end
- end
- function back(x)
- for i=1,x do
- while not turtle.back() do
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.dig()
- turtle.attack()
- turtle.turnRight()
- turtle.turnRight()
- end
- end
- end
- function down(x)
- for i=1,x do
- while not turtle.down() do
- turtle.digDown()
- turtle.attackDown()
- end
- end
- end
- function place(x)
- for i=1,x do
- blocks()
- back(1)
- turtle.place()
- end
- end
- function pDown(x)
- for i=1,x do
- blocks()
- while not turtle.placeDown() do
- turtle.digDown()
- turtle.attackDown()
- end
- back(1)
- end
- end
- function blocks()
- turtle.select(1)
- if turtle.getItemCount(1)<1 then
- turtle.select(16)
- if turtle.detectUp() then
- turtle.digUp()
- turtle.select(1)
- turtle.drop()
- turtle.select(16)
- end
- turtle.placeUp()
- turtle.select(1)
- turtle.suckUp()
- turtle.select(16)
- turtle.digUp()
- turtle.select(1)
- end
- end
- function floor()
- up(1)
- for i=1,5 do
- pDown(11)
- for i=1,2 do
- turtle.turnRight()
- back(1)
- end
- pDown(11)
- for i=1,2 do
- turtle.turnLeft()
- back(1)
- end
- end
- pDown(11)
- end
- function walls(x)
- forward(1)
- turtle.turnLeft()
- turtle.turnLeft()
- for i=1,x do
- for i=1,3 do
- place(10)
- turtle.turnRight()
- end
- place(9)
- up(1)
- pDown(1)
- turtle.turnRight()
- end
- end
- function tower()
- turtle.turnLeft()
- turtle.turnLeft()
- floor()
- walls(3)
- floor()
- end
Advertisement
Add Comment
Please, Sign In to add comment