Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0

automatically turn on a computer


Hallo every one,

i have written a program to automate producing of mystical flowers, that works very well.

the program is saved as autorun.lua to start automatically.

My problem is that sometimes the computers run out of Energy (maybe because of unloading chunk of Energy core) and the computer shut down.

is there a way to turn on the computer automatically again?

I tried with a redstone signal. no success :(

and i found this api, but i don't know how to use it, and if it works! must this be in a while loop?


Share this post

Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Both the modem card and the Redstone card have wake methods. See the docs specifically for the mentioned component APIs. I believe they're redstone.setWakeThreshold(level:number) and modem.setWakeMessage(message:string). See http://ocdoc.cil.li/component:modem. Also, pretty sure the modem will still need to have a port open to receive the wake message but don't trust me on that. Test it out

Share this post

Link to post
Share on other sites
  • 0

the Computer should start by itself, und not remotly controlled, because i will have the same problem with a second computer, wenn all shut down!

Share this post

Link to post
Share on other sites
  • 0

Using redstone should work for that - have a timer/clock hooked up to the computer, and use redstone.setWakeThreshold so that if the computer isn't turned on, it will be every x amount of time.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.