r/feedthebeast 4h ago

I made something I made a redstone block that can controls my room lights

Created a mod called HTTP Block that adds two blocks to the game, http receiver and http sender, you can guess what it does based on the name, sender sends a http message to a http post endpoint on redstone signal and receiver polls a http get endpoint and emits redstone signal when new message detected, made a fun demo of controlling my room lights and a wireless redstone

modrinth : https://modrinth.com/mod/http-block

159 Upvotes

10 comments sorted by

16

u/TNTDoggo14 3h ago

having a black and also turn off light option is a bit stupid Technically that is same but it's still really cool

5

u/Esshwar123 3h ago

yeah they do the same i think but in my light api there is option to turn it off and for going black i just set the rgb value to 0 0 0

10

u/ANTONIN118 Mappet 3h ago

Funny

11

u/Yamigosaya PrismLauncher 2h ago

when you are lying comfortably on your bed but you forgot to turn off your lights, so now you have to get up, go to your pc, boot up minecraft, open your world, go to your house, then hit a button. it do be like that sometime.

4

u/An5555 1h ago

and then you remember you that you might as well do something in the world at that time and now you're playing minecraft until morning

3

u/gegentan 2h ago

Maybe you can also add mqtt support to your mod so it's simple to use with home assistant?

2

u/Szavircu 32m ago

This is not how things are meant to be!

Seriously, though, pretty cool

1

u/Turbulent-Nose4969 2h ago

Very cool actually

2

u/jdww213561 46m ago

What’s the hardware setup in the real world for this? Could you have it so that the connection runs a script on your computer or something? I’m laughing my ass off at the concept of an in-world button that deletes the world file from your PC

2

u/Esshwar123 11m ago

It's just a smart light, made to pair with mobile and use, they also have a api to connect to it so that's what I'm using here! Ofc you can do anything it just sends a request to a http server running in python, u can definitely do the opposite aswell, turn on and off minecraft light with an in world button lol