This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Orb_29's profile picture

Tekkit os.api (I think)

Started by Orb_29, 07 April 2015 - 05:37 PM
Orb_29 #1
Posted 07 April 2015 - 07:37 PM
In my very simple code:

rs.setOutput("right", true)
sleep(5)
rs.setOutput("right", false)
sleep(1)

works fine
but if I add:
rs.setOutput("right", true)
sleep(5)
rs.setOutput("right", false)
sleep(1)
os.shutdown

or I add:
rs.setOutput("right", true)
sleep(5)
rs.setOutput("right", false)
sleep(1)
os.reboot

it fails to work, please could you tell me why? I am using Tekkit classic
KingofGamesYami #2
Posted 07 April 2015 - 07:40 PM
They need to be called


os.shutdown()
os.reboot()
^like this
Orb_29 #3
Posted 07 April 2015 - 07:49 PM
Oh… yeah Thanks… Sorry