Posted 02 May 2012 - 10:03 AM
I'm very new to LUA and coding in general, my aim was to have a simple program turn off the mass fabricator in the day so my MFE can recharge and then turn back on at night with a simple redstone signal.
I'm currently using Technic ssp, which is on 1.1 otherwise i think i would have tried the CC sensor add-on.
Also im just testing with a light at the moment so the output might not be the right way around. :)/>/> I did think that this would have to run continuously and tried to add
But that didn't work, but i don't have the error i think it was waiting to long, I'll have to update with the error when i'm home
Thanks
EDIT: Forgot to put title "derp"
I'm currently using Technic ssp, which is on 1.1 otherwise i think i would have tried the CC sensor add-on.
if os.time() < 17 then
redstone.setOutput("right", true )
elseif os.time() > 17 then
redstone.setOutput("right", false )
end
Also im just testing with a light at the moment so the output might not be the right way around. :)/>/> I did think that this would have to run continuously and tried to add
when true do
if os.time() < 17 then
redstone.setOutput("right", true )
elseif os.time() > 17 then
redstone.setOutput("right", false )
end
end
But that didn't work, but i don't have the error i think it was waiting to long, I'll have to update with the error when i'm home
Thanks
EDIT: Forgot to put title "derp"
Edited on 02 May 2012 - 08:10 AM