This file contains hidden or 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
function update() | |
term.setCursorPos( 1, -5 ) -- Hide the pastebin retrivial | |
shell.run( "rm", shell.getRunningProgram() ) -- Delete the current program | |
shell.run( "pastebin", "get", "PASTEBIN CODE", shell.getRunningProgram() ) -- Update it | |
shell.run( shell.getRunningProgram() ) -- Restart it | |
end |
This file contains hidden or 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
function fuelCheck() | |
if turtle.getFuelLevel() <20 then | |
turtle.select(1) | |
turtle.refuel() | |
print("Refueling...") | |
end | |
end | |
local logs = { | |
["forge:logs"] = true, |
This file contains hidden or 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
turtle.refuel() | |
print("Refueling...") | |
while turtle.detectDown() do | |
turtle.digDown() | |
print("Moving Down...") | |
turtle.down() | |
turtle.dig() | |
print("Moving Foward...") | |
turtle.forward() | |
turtle.digUp() |
This file contains hidden or 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
turtle.refuel() | |
print("Refueling") | |
if turtle.detect() then | |
turtle.dig() | |
turtle.up()-- boday | |
end | |
if not turtle.Detect() and turtle.detectDown() then | |
turtle.down() | |
end |