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

Fully functioning street light!

Started by ninjabilly87, 28 August 2012 - 11:54 PM
ninjabilly87 #1
Posted 29 August 2012 - 01:54 AM
So me and a few friends have decided to create a realistic town on Tekkit, so I decided to put my ComputerCraft skills to the test and run the town on a basic GUI. So while my friend (ugcmerc) was clearing land for us, I decided to begin on the computer. I thought "Well what can I make that can be run on computercraft and is relative to a town, so I decided street lights shouldn't be too hard and I did it in a matter of 15 minutes! It wasn't that hard and I'll post the code for it if requested, but whenever I make a code that works, I'm always very proud of myself, and I figured this might be a nice place to brag (no ignorance intended). I did it with some redpower and just used a few simple tutorials and after that, not only could I make a street light, but I'm sure I'll be able to run most of the town's electricity on a computer and display it on a monitor! If you want to copy this idea by all means go right ahead and make your own Tekkit town, but if anyone has any suggestions I'm all ears, especially if its ComputerCraft related (considering we're on the ComputerCraft forums). Thanks for reading!
Seksan2 #2
Posted 29 August 2012 - 07:57 AM
could i see this code please i run a tekkit server and love your idea?
ninjabilly87 #3
Posted 29 August 2012 - 11:05 PM
Yesh Ill get it for you ^.^ I cant get it right now, the server I wrote is down right now unfortunately, but Ill get back to you on it.
lieudusty #4
Posted 30 August 2012 - 05:18 AM
Sounds like a great idea!
Richiarde #5
Posted 02 September 2012 - 07:08 PM
Hi, it seems to be very nice idea, is your system able to operate automatically by using ccSensors (day/night)?
DisFunqTional #6
Posted 03 September 2012 - 11:34 AM
make something with the furnace and a computer, use the furnace's redstone output, to make something interesting, should be fun haha
D3matt #7
Posted 03 September 2012 - 04:35 PM
make something with the furnace and a computer, use the furnace's redstone output, to make something interesting, should be fun haha
… What?
DisFunqTional #8
Posted 04 September 2012 - 06:07 AM
make something with the furnace and a computer, use the furnace's redstone output, to make something interesting, should be fun haha
… What?

i was talking to ninjabilly87 when he said "but if anyone has any suggestions I'm all ears, especially if its ComputerCraft related (considering we're on the ComputerCraft forums)"..

i thought the furnace had a redstone output when it was on, perhaps i was mistaken?
Cranium #9
Posted 04 September 2012 - 03:53 PM
make something with the furnace and a computer, use the furnace's redstone output, to make something interesting, should be fun haha
… What?

i was talking to ninjabilly87 when he said "but if anyone has any suggestions I'm all ears, especially if its ComputerCraft related (considering we're on the ComputerCraft forums)"..

i thought the furnace had a redstone output when it was on, perhaps i was mistaken?
Indeed you are, my friend. Furnaces do not output any signal.
Teraminer #10
Posted 04 September 2012 - 04:22 PM
he could use a BUD switch :D/>/>
FuzzyPurp #11
Posted 07 September 2012 - 10:13 PM
I would suggest ccSensors
dus998 #12
Posted 11 September 2012 - 10:04 PM
if tekkit has redpower you can use a light sensor
dragonman0110 #13
Posted 12 September 2012 - 06:54 PM
if tekkit has redpower you can use a light sensor

redpower doesn't add sensors
CallMeGavin #14
Posted 12 September 2012 - 11:51 PM
gosh darnet… i had this idea

you beat me to it :l

edit: also why do you need a server? Why not just use os.time() in the clients?
hego555 #15
Posted 13 September 2012 - 07:11 AM
Sounds fun, screen shots please!
Hirsu #16
Posted 13 September 2012 - 04:50 PM
if tekkit has redpower you can use a light sensor

redpower doesn't add sensors

Afaik, Red Power's got a light sensor. It outputs a redstone signal based on the light input it is getting (I believe you can set it to 3 modes of light intensity). A program should easily pick up that change of redstone signal.
lvdicedealer #17
Posted 13 September 2012 - 07:45 PM
if tekkit has redpower you can use a light sensor

redpower doesn't add sensors

Afaik, Red Power's got a light sensor. It outputs a redstone signal based on the light input it is getting (I believe you can set it to 3 modes of light intensity). A program should easily pick up that change of redstone signal.

Yep, RP2 does have nifty light sensor. note: you must shift-click with a screwdriver to change the sensitivity to light.
You could setup the sensors in various parts of town, feed the redstone signal into computer, then send that signal across the rednet to your town Control Center. That would supply you with the light data for the town, what you do with that info in the program is up to you. If you want Instant-On Street Lights, the first signal would trigger the lights; but, if you want some sort of anomaly prevention, then I would write something needing at least 3 of 5 signals to fire the street lights.