This commit is contained in:
kepler155c
2018-11-30 19:26:56 -05:00
parent 53c11db773
commit c5d209161e
5 changed files with 19 additions and 7 deletions

View File

@@ -46,7 +46,8 @@ end
if not fs.exists(STARTUP_FILE) then
Util.writeFile(STARTUP_FILE,
[[os.sleep(1)
shell.openForegroundTab('packages/farms/farmer.lua')]])
shell.openForegroundTab('farmer.lua')]])
print('Autorun program created: ' .. STARTUP_FILE)
end
local retain = Util.transpose {

View File

@@ -68,11 +68,12 @@ local c = Peripheral.lookup('type/minecraft:chest') or error('Missing chest')
local directions = { top = 'down', bottom = 'up' }
local direction = directions[c.side] or getLocalName()
local chest = Adapter({ side = c.side, direction = direction }) or error('missing chest')
_G._p = chest
if not fs.exists(STARTUP_FILE) then
Util.writeFile(STARTUP_FILE,
[[os.sleep(1)
shell.openForegroundTab('packages/farms/rancher.lua')]])
shell.openForegroundTab('rancher.lua')]])
print('Autorun program created: ' .. STARTUP_FILE)
end
local dispenser = Peripheral.lookup('type/minecraft:dispenser')

View File

@@ -81,7 +81,8 @@ local state = Util.readTable('usr/config/treefarm') or {
if not fs.exists(STARTUP_FILE) then
Util.writeFile(STARTUP_FILE,
[[os.sleep(1)
shell.openForegroundTab('packages/farms/treefarm.lua')]])
shell.openForegroundTab('treefarm.lua')]])
print('Autorun program created: ' .. STARTUP_FILE)
end
local clock = os.clock()

View File

@@ -1,10 +1,11 @@
--[[
Use 4 furnaces at once to smelt items.
Use multiple furnaces at once to smelt items.
SETUP:
Place an introspection module into the turtles inventory.
Connect with wired modem at bottom of turtle.
Place furnaces on each side EXCEPT for bottom and left.
Connect turtle to milo with a wired modem.
Connect turtle to a second wired modem that is connected to furnaces ONLY.
Add as many furnaces as needed.
CONFIGURATION:
Set turtle as a "Generic Inventory"

View File

@@ -42,6 +42,7 @@ local MAX_FUEL = turtle.getFuelLimit()
local DICTIONARY_FILE = 'usr/config/mining.dictionary'
local PROGRESS_FILE = 'usr/config/scanning_mining.progress'
local STARTUP_FILE = 'usr/autorun/scanningMiner.lua'
local mining
local ignores = {
@@ -541,6 +542,13 @@ if not fs.exists(DICTIONARY_FILE) or options.setTrash.value then
addTrash()
end
if not fs.exists(STARTUP_FILE) then
Util.writeFile(STARTUP_FILE,
[[os.sleep(1)
shell.openForegroundTab('scanningMiner.lua')]])
print('Autorun program created: ' .. STARTUP_FILE)
end
Event.addRoutine(function()
turtle.reset()