OpenBlocks

OpenBlocks

56M Downloads

"Chat Interface" block

thislooksfun opened this issue ยท 6 comments

commented

A couple days ago I came up with an idea for a "chat interface" block while watching vswe and Hanse00 struggle while making the second modded rube goldberg machine. Basically, it would have a chat log in it's GUI, just a text list, which would be added to by interacting with a block. For example, right-clicking an Ars Magica 2 mana battery with the Magitech's Staff. Also, it could be interacted with using ComputerCraft. I don't know how to do that part, but for the rest of it, I have some simple example code made. It doesn't fit within any of my mods, and so I thought what better place to send a random block idea. :P
TL; DR: It's an Autonomous Activator that saves chat messages that would otherwise be lost, which can then be read straight from the GUI, or accessed in a table from a CC computer/turtle.

Here's the code:
https://www.dropbox.com/s/2r9a4zbtj8d5zel/Chat%20interface.zip

commented

I like this idea. Another chat-related feature would be to output a redstone signal when a recognized code phrase or word (configurable) is said in chat. Type "boom" and some TNT goes off!

commented

That would be interesting, but my idea isn't about reading the game chat, it's more focused on if an item outputs data to chat. For example, the Magitech's Staff from AM2, or the Divination Sigil from Blood Magic. The way i implemented it in that example might read from chat, but that isn't intended. :P

commented

Hence the phrase "another feature." It could be another setting.

Also, there's a mod that lets you add any feature in, as long as you can code it, but I can't remember what it is called. Try that if things don't go as smoothly here.

commented

Alright, sorry for the misunderstanding. :P

If you could try to find it that would be great. I didn't even know that existed. XP
Worst comes to worse, I can just put out a tiny mod.

commented

I am a fan of tiny, but useful mods. I think the title had something to do with a kind of bird.
I still think that this sort of thing has a place in OB, though.

commented

TBH, the main reason I wanted it in open blocks is that I have no idea how to do CC integration. XD