FANDOM

  • Bocajls

    Lua

    December 9, 2012 by Bocajls

    function LedPulse (color, age)

    r

    s.setBundledOutput ("side", color)


    sleep(age)


    rs.setBundledOutput ("side", 0)


    end




    write (" Times ") local t=read()


    Times = tonumber(t)


    write (" color: ") local c=read()


    write (" seconds ") local a=read()


    term.clear() term.setCursorPos (1,1)


    while Times>0 do




    LedPulse (c,a)


    LedPulse (0,a)

    T

    imes = Times-1




    end

    ____________________________________________________________________________________________

    write (" Password : ")


    v = read()

    i

    f v == "kagemand" then


    rs.setOutput ("left", true )


    write (" Welcome back master ")


    sleep(2)


    os.reboot()


    else


    write (" Invalid! ")

    s

    leep (4)


    os.reboot()


    end

    ______________________________________________________________________________________________

    print (" ")


    write (" Choose Color: ")


    print (" ")


    print (" ") …































    Read more >
  • Bocajls

    Computercraft Color

    December 2, 2012 by Bocajls

    Currently working om some lua.



    Lastest prjoect:

    Wire colors need to be in line.

    1 = white / just write "white"

    2 = orange / Just write "orange"

    And so on.

    Here's the code:

    print (" ")

    write (" Choose Color: ")

    print (" ")

    print (" ")

    write (" white. ")

    write (" orange. ")

    print (" ")

    write (" magenta. ")

    write (" light blue. ")

    print (" ")

    write (" yellow. ")

    write (" lime. ")

    print (" ")

    write (" pink. ")

    write (" gray. ")

    print (" ")

    write (" light gray. ")

    write (" cyan. ")

    print (" ")

    write (" purple. ")

    write (" blue. ")

    print (" ")

    write (" brown. ")

    write (" green. ")

    print (" ")

    write (" red. ")

    write (" black. ")

    term.setCursorPos(16,2)

    v = read()

    if v == "white" then

    rs.setBundledOutput("back", 1, true)

    elseif v == "orange" then

    rs.setBundledOutput("back", 2, true)

    els…



    Read more >

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.