This commit is contained in:
kepler155c@gmail.com
2019-01-27 00:27:05 -05:00
parent 04815b2d09
commit e264d98739
8 changed files with 53 additions and 9 deletions

View File

@@ -1,5 +1,3 @@
_G.requireInjector(_ENV)
local Point = require('point')
local device = _G.device

15
ignore/chars.lua Normal file
View File

@@ -0,0 +1,15 @@
local w, h = term.getSize()
term.clear()
term.setCursorPos(1, 1)
local t = { }
for i = 1, 8 do
table.insert(t, '---')
end
for i = 1, 255 do
table.insert(t, string.format('%d %c', i, i))
end
textutils.pagedTabulate(t)

37
ignore/colors.lua Normal file
View File

@@ -0,0 +1,37 @@
_G.requireInjector(_ENV)
local Util = require('util')
local colors = _G.colors
local term = _G.term
local w = term.getSize()
local x, y = 1, 2
local filler = string.rep(' ', w)
term.clear()
local colorTable = Util.filter(colors, function(c)
return type(c) == 'number'
end)
term.setTextColor(colors.black)
for k,v in Util.spairs(colorTable, function(a, b) return a < b end) do
term.setBackgroundColor(v)
for i = 0, 1 do
term.setCursorPos(x, y + i)
term.write(filler:sub(1, 9))
end
term.setCursorPos(x + ((9 - #k) / 2), y)
term.write(k)
local cs = tostring(v)
term.setCursorPos(x + ((9 - #cs) / 2), y + 1)
term.write(cs)
x = x + 9
if x + 9 > w + 1 then
y = y + 2
x = 1
end
end
if x > 1 then
y = y + 2
end
term.setCursorPos(1, y)

View File

@@ -1,5 +1,3 @@
_G.requireInjector(_ENV)
local Util = require('util')
local fs = _G.fs

View File

@@ -3,7 +3,7 @@ Use multiple furnaces at once to smelt items.
SETUP:
Place an introspection module into the turtles inventory.
Connect turtle to milo with a wired modem.
Connect turtle to milo network with a wired modem.
Connect turtle to a second wired modem that is connected to furnaces ONLY.
Add as many furnaces as needed.
@@ -15,8 +15,6 @@ CONFIGURATION:
Use this turtle for machine crafting.
--]]
_G.requireInjector(_ENV)
local Event = require('event')
local Peripheral = require('peripheral')
local Util = require('util')

View File

@@ -1,5 +1,3 @@
_G.requireInjector(_ENV)
local Util = require('util')
local fs = _G.fs