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

automatically turn on a computer

Question

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?

 

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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