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

Wireless pulse send?

Started by Tehsneak, 21 November 2012 - 03:46 AM
Tehsneak #1
Posted 21 November 2012 - 04:46 AM
Hey guys (pro's)!

Im trying to make a storage facility, and im using computercraft for it. Im making a computer able to give any item the storage facility has to the player.
For example; when you press ''1. Cobblestone (64)'', the computer would send a redstone pulse to a pump on a chest that has cobblestone in it, the cobblestone from there goes to the player.
Though there are many more items in minecraft and I can only set around 5 pulse (left, right, top, bottom and back).
Now my question is, is there a way to send a command to another computer to pulse?

Many thanks!
Luanub #2
Posted 21 November 2012 - 11:11 AM
Just use rednet send a key work for each side you want to pulse.

--Computer 1:
rednet.send(id, "top")

--computer 2:
local id, msg = rednet.receive()
if msg == "top" then
  -- pulse on the top
end