ComputerCraft Forums

ComputerCraft => Ask a Pro => Topic started by: Matsico on Jan 24, 2023, 08:11 PM

Title: need help
Post by: Matsico on Jan 24, 2023, 08:11 PM
hello everyone

I'm trying to make a program for a advanced ender pocket computer and a advanced computer with a bundled cabel behind it. i want to use the pocket computer to open doors, turn on lights etc. but i cant figure out how to send such commands to the computer that wil put it on de bundled cabel
Title: need help
Post by: Lupus590 on Jan 24, 2023, 10:38 PM
Both computers need a wireless modem of some kind. An ender modem is fine, it just has improved range. You can mix the modems as well, just don't try to use a wired one.

With both computers equipped with wireless modems, you will then need to use the rednet API (https://tweaked.cc/module/rednet.html) to communicate to the computers. Rednet uses the computer's ID (which you can find with the ID program) to figure out which computer the messages are for (warning, other computers can easily listen to these messages too).