• 0

    posted a message on [1.1][Whitelist] Creative server! Let's code! [ComputerCraft][Mature community]
    * In game name: svennp
    * Age (minimum 12 years): 16
    * Screenshot/world save/text file/anything that shows
    that you know programming: http://www.computercraft.info/forums2/index.php?/topic/356-3x3-tunnel/
    * Additional anything: im still learning
    Posted in: PC Servers
  • 0

    posted a message on ComputerCraft Program Library
    Quote from Onionnion

    Name: Button
    Function: Turns on a redstone current for the duration of a button
    --Button
    --Written by Onionnion
    write("Which side? ")
    op = read()
    if op == "back" then 
        redstone.setOutput("back", true)
        sleep(0.9)
        redstone.setOutput("back", false)
    elseif op == "front" then
        redstone.setOutput("front", true)
        sleep(0.9)
        redstone.setOutput("front", false)
    elseif op == "left" then
        redstone.setOutput("left", true)
        sleep(0.9)
        redstone.setOutput("left", false)
    elseif op == "right" then
        redstone.setOutput("right", true)
        sleep(0.9)
        redstone.setOutput("right", false)
    elseif op == "bottom" then
        redstone.setOutput("bottom", true)
        sleep(0.9)
        redstone.setOutput("bottom", false)
    elseif op == "top" then
        redstone.setOutput("top", true)
        sleep(0.9)
        redstone.setOutput("top", false)
    else
        write("Incorrect input, try again.\n")
    end
    Description: Here's a basic button pressing program, just enter which side and press enter. A simple program that beginners can take as an example for basic redstone use in Lua.

    i edited it so you can just type "button back"
    or any other direction

    local tArgs = {...}

    if tArgs[1] == "back" then
    redstone.setOutput("back", true)
    sleep(0.9)
    redstone.setOutput("back", false)
    elseif tArgs[1] == "front" then
    redstone.setOutput("front", true)
    sleep(0.9)
    redstone.setOutput("front", false)
    elseif tArgs[1] == "left" then
    redstone.setOutput("left", true)
    sleep(0.9)
    redstone.setOutput("left", false)
    elseif tArgs[1] == "right" then
    redstone.setOutput("right", true)
    sleep(0.9)
    redstone.setOutput("right", false)
    elseif tArgs[1] == "bottom" then
    redstone.setOutput("bottom", true)
    sleep(0.9)
    redstone.setOutput("bottom", false)
    elseif tArgs[1] == "top" then
    redstone.setOutput("top", true)
    sleep(0.9)
    redstone.setOutput("top", false)
    else
    write("Incorrect input, try again.\n")
    end
    Posted in: Mods Discussion
  • 0

    posted a message on Little Blocks Mod [2.2.2.1] Creation contest! [770KDLs]
    how do i change the block id? have to do that so minecraft dont crash more.
    Posted in: Minecraft Mods
  • 0

    posted a message on [MC1.8.1][BC2.2.2-2.2.5][Rev31] BuildCraft Teleport Pipes - Now Called AdditionalPipes!
    Quote from Krapht

    Is that using buildcraft 2.2.5? I'm unable to reproduce with 2.2.5. There was a duplication bug fixed in the newest version of buildcraft. Tile data wasn't properly reset when you removed a pipe

    oh, im still on 2.2.4, thanks for telling
    Posted in: WIP Mods
  • 0

    posted a message on [MC1.8.1][BC2.2.2-2.2.5][Rev31] BuildCraft Teleport Pipes - Now Called AdditionalPipes!
    i found a dupe bug with the advanced wood pipes, here is a demonstration:
    Posted in: WIP Mods
  • 0

    posted a message on [1.7.3] [July 11] BetterBlocks 3.7
    not compatible with the yogbox :sad.gif:
    Posted in: Minecraft Mods
  • 0

    posted a message on "IP-Redirect"?
    you can use the dyndns service too, but then you will get like :port on the end, mine is spmc.dyndns.org:55566 and that works fine
    Posted in: Server Support and Administration
  • 0

    posted a message on 1.8 Updates: Taller Worlds, Delicious Foods
    maybe the bar is how hungry you get???
    Posted in: Minecraft News
  • 0

    posted a message on fly mod server!
    Quote from XH192

    jpmiii.no-ip.org:25566 I think flymod is allowed. Just don't use it during roleplay sessions, if you are participating. Find XH!

    can u tell me why i got banned from the server?
    i dont know :ohmy.gif:
    Posted in: Server Support and Administration
  • To post a comment, please .