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

Extremely out of my depth; Wireless Rednet and Project Red question.

Started by Tassyr, 04 April 2015 - 02:36 PM
Tassyr #1
Posted 04 April 2015 - 04:36 PM
So I've got a problem that is very, very far out of my depth.
I've got a program I'm working on that I want to run with Redstone In Motion to make an elevator. I KNOW it can be done; I've seen it done on other machines. I just don't know how to code it.

I'm making an elevator like this;

[x] - Elevator Top Terminal (Call Up Button)
:
:
:
{x} - Elevator Itself (Move Up and Move Down buttons)
:
:
:
[x] - Elevator Bottom Terminal (Call Down Button)

What I was hoping I could do is make the 'call elevator' buttons on top and bottom attached to a computer; you hit the button and it sends the elevator either down or up, depending on which side you are on, by telling the computer in the middle to move up or down. (Toggle OFF output blue or red respectively.)

I have no idea how to make the wireless work, though. Or even the basics of 'toggle this off, wait, toggle it back on' honestly. I'm really, really lost. Halp!

For what it's worth I USED to know how to do most of this- but it all seems to have leaked out of my head between two years ago and now.
Edited on 04 April 2015 - 02:38 PM
HPWebcamAble #2
Posted 04 April 2015 - 07:08 PM
To send wireless messages, you'll want to look into the Rednet API

You can output to bundled cable with the Redstone API


By "'call elevator' buttons on top and bottom attached to a computer" I believe you mean actual Minecraft buttons placed on the computer
That wouldn't be too hard, you'd use the Redstone API again

If you only have 2 floors, just a few buttons are fine, but if you have more, you might want to look into displaying buttons on an Advanced Monitor

To make the whole thing work, you'd use os.pullEvent() to wait for something to happen, then deal with the event, depending on what its was
Bomb Bloke #3
Posted 04 April 2015 - 11:36 PM
You may pick up something useful reading through this thread.