:3
This commit is contained in:
parent
491112768c
commit
68ec37f994
66 changed files with 6591 additions and 10096 deletions
32
computer/26/garbidge/tile.lua
Normal file
32
computer/26/garbidge/tile.lua
Normal file
|
@ -0,0 +1,32 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue