ComputerCraftで2*2の木を伐採するやつ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yy = 0 | |
local function turtleup() | |
yy = yy + 1 | |
turtle.up() | |
end | |
turtle.select(1) | |
turtle.dig() | |
turtle.forward() | |
while true do | |
turtle.dig() | |
turtle.turnRight() | |
turtle.dig() | |
turtle.digUp() | |
turtleup() | |
turtle.dig() | |
turtle.turnLeft() | |
turtle.dig() | |
turtle.digUp() | |
turtleup() | |
turtle.select(16) | |
if turtle.compare() then | |
turtle.select(1) | |
break | |
end | |
turtle.select(1) | |
end | |
turtleup() | |
turtle.forward() | |
turtle.turnRight() | |
turtle.forward() | |
for i = 1, yy do | |
turtle.digDown() | |
turtle.down() | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yy = 0 | |
local function turtleup() | |
yy = yy + 1 | |
turtle.up() | |
end | |
turtle.select(1) | |
turtle.dig() | |
turtle.forward() | |
while true do | |
turtle.dig() | |
turtle.digUp() | |
turtleup() | |
turtle.select(16) | |
if turtle.compare() then | |
turtle.select(1) | |
break | |
end | |
turtle.select(1) | |
end | |
turtleup() | |
turtle.turnRight() | |
turtle.forward() | |
turtle.turnLeft() | |
for i = 1, yy do | |
turtle.digDown() | |
turtle.down() | |
turtle.dig() | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
探したほうが早かったのかどうか。 動かせばわかりますが、bassaii のほうが早く伐採が終わります。