I am having a problem with my status program.
The program gives a OK when there is room in my chest. When it is full then the status changes to Chest full.
This program works fine in tekkit classic but now i converted my world to tekkit lite and now i just get the following error.
startup:9: attempt to index ? (a nil value)
I hope that someone can figure out what is wrong.
This is my code:
–Colors
–Bone = white | Gunpowder = yellow | Blaze Rod = lightGray | Wool LGray = brown
–Arrow = orange | Rotten Flesh = lime | Ink Sac = cyan | Wool Gray = green
–String = magenta | Ender Pearl = pink | Wool White = purple | Leather = red
–Spider Eye = lightBlue | Slime Ball = gray | Wool Black = blue | Feather = black
while true do
mon = peripheral.wrap("left")
monitor.printM("left", "————Kist Status————-")
monitor.writeM("left", "| Bone - ")
if rs.testBundledInput("back", colors.white) == false then
monitor.printM("left", "OK |")
else
monitor.printM("left", "Kist Vol |")
end
monitor.writeM("left", "| Arrow - ")
if rs.testBundledInput("back", colors.orange) == false then
monitor.printM("left", "OK |")
else
monitor.printM("left", "Kist Vol |")
end
monitor.writeM("left", "| String - ")
if rs.testBundledInput("back", colors.magenta) == false then
monitor.printM("left", "OK |")
else
monitor.printM("left", "Kist Vol |")
end
monitor.writeM("left", "| Spider Eye - ")
if rs.testBundledInput("back", colors.lightBlue) == false then
monitor.printM("left", "OK |")
else
monitor.printM("left", "Kist Vol |")
end
monitor.writeM("left", "| Gunpowder - ")
if rs.testBundledInput("back", colors.yellow) == false then
monitor.printM("left", "OK |")
else
monitor.printM("left", "Kist Vol |")
end
monitor.writeM("left", "| Rotten Flesh - ")
if rs.testBundledInput("back", colors.lime) == false then
monitor.printM("left", "OK |")
else
monitor.printM("left", "Kist Vol |")
end
monitor.writeM("left", "| Ender Pearl - ")
if rs.testBundledInput("back", colors.pink) == false then
monitor.printM("left", "OK |")
else
monitor.printM("left", "Kist Vol |")
end
monitor.writeM("left", "| Slime Ball - ")
if rs.testBundledInput("back", colors.gray) == false then
monitor.printM("left", "OK |")
else
monitor.printM("left", "Kist Vol |")
end
monitor.writeM("left", "| Blaze Rod - ")
if rs.testBundledInput("back", colors.lightGray) == false then
monitor.printM("left", "OK |")
else
monitor.printM("left", "Kist Vol |")
end
monitor.writeM("left", "| Ink Sac - ")
if rs.testBundledInput("back", colors.cyan) == false then
monitor.printM("left", "OK |")
else
monitor.printM("left", "Kist Vol |")
end
monitor.writeM("left", "| Wool White - ")
if rs.testBundledInput("back", colors.purple) == false then
monitor.printM("left", "OK |")
else
monitor.printM("left", "Kist Vol |")
end
monitor.writeM("left", "| Wool Black - ")
if rs.testBundledInput("back", colors.blue) == false then
monitor.printM("left", "OK |")
else
monitor.printM("left", "Kist Vol |")
end
monitor.writeM("left", "| Wool LGray - ")
if rs.testBundledInput("back", colors.brown) == false then
monitor.printM("left", "OK |")
else
monitor.printM("left", "Kist Vol |")
end
monitor.writeM("left", "| Wool Gray - ")
if rs.testBundledInput("back", colors.green) == false then
monitor.printM("left", "OK |")
else
monitor.printM("left", "Kist Vol |")
end
monitor.writeM("left", "| Leather - ")
if rs.testBundledInput("back", colors.red) == false then
monitor.printM("left", "OK |")
else
monitor.printM("left", "Kist Vol |")
end
monitor.writeM("left", "| Feather - ")
if rs.testBundledInput("back", colors.black) == false then
monitor.printM("left", "OK |")
else
monitor.printM("left", "Kist Vol |")
end
monitor.writeM("left", "————————————")
sleep(2)
mon.clear()
mon.setCursorPos(1, 1)
end