32 lines
640 B
Lua
32 lines
640 B
Lua
tile = function()
|
|
pf = require("pathfinding")
|
|
function selectItem(name)
|
|
for i = 1, 16 do
|
|
d= turtle.getItemDetail(i)
|
|
if d.name == name then
|
|
turtle.select(i)
|
|
return
|
|
end
|
|
end
|
|
print("pls give me", name)
|
|
turtle.select(16)
|
|
print("then press enter")
|
|
read()
|
|
end
|
|
|
|
--turtle.forward()
|
|
--turtle.turnLeft()
|
|
--turtle.forward()
|
|
--turtle.turnRight()
|
|
|
|
for x = 1, 7 do
|
|
for z = 1, 7 do
|
|
turtle.select(((x == 4) and (z==4) and 3) or math.mod(x+z,2)+1)
|
|
goTo(vector.new(x,0,z))
|
|
turtle.placeDown()
|
|
end
|
|
end
|
|
goTo(vector.new(8,0,0))
|
|
_G.pos=pos-pos
|
|
end
|
|
return tile
|