Posted 21 January 2013 - 02:27 PM
Hello!
this is my very first venture into computer craft!!! and sofar its fun. i am far from a programmer, but have written this so far
edit Bridge
then when i type bridge it will send a RS signal and close my trapdoor drawbridge for 12 seconds and let us run across then open again 12 seconds later.
what i would like to have is instead of having to open the computer and typing bridge i would like to have a wooden button on a block above it, then when we push it it runs "bridge"
i tried
the last one i tried fails as expected. but i am not sure what to do at this point.
any advice would be greatly appreciated.
Thanks
Wipiid
this is my very first venture into computer craft!!! and sofar its fun. i am far from a programmer, but have written this so far
edit Bridge
rs.setOutput("bottom", true)
sleep(12)
rs.setoutput("bottom", false)
then when i type bridge it will send a RS signal and close my trapdoor drawbridge for 12 seconds and let us run across then open again 12 seconds later.
what i would like to have is instead of having to open the computer and typing bridge i would like to have a wooden button on a block above it, then when we push it it runs "bridge"
i tried
if rs.getInput("top", true)
then
rs.setOutput("bottom", true)
sleep(12)
rs.setoutput("bottom", false)
end
the last one i tried fails as expected. but i am not sure what to do at this point.
any advice would be greatly appreciated.
Thanks
Wipiid