General Discussion > Minecraft Discussion

Lua minecraft IRC server. (computercraft mod)

(1/3) > >>

Keoni29:
Tekkit the famous modpack for minecraft contains a mod called computercraft. It allows you to place little computers running lua code in your minecraft world. You can even connect them to the Rednet. Rednet is an API which allows computers to communicate using a wireless modem. The first thing which came to my mind was: IRC.

I am learning lua and I don't really have an idea how exactely IRC should work on the server side. Does the server just pass trough any incoming messages?

This is what I've got so far:

TIfanx1999:
Sounds like a pretty cool idea. :) Could you do simple 2 player games like Pong, Tron, or perhaps even Tetris? That would be pretty neat too.

Keoni29:
Yes that's possible and really simple too since it has setCursorPos(x, y) for text based gfx and the rednet api is easy to work with.

cooliojazz:
Are you actually trying to make it implement real IRC protocol? Have you read through an IRC RFC eg. http://tools.ietf.org/html/rfc2812 ?

Keoni29:
Hmm perhaps it's easier to implement a chat with channels, nicknames and some commands rather than true irc. It's a pain to use the text editor in computercraft, so I don't want to have to write a lot of code.

Edit:
We got a working chat program. Both client and server.
Implemented commands so far:
/help
/join
/me
/msg
/nick

To do: some optimization and removing some glitches. (and of course more commands)

Navigation

[0] Message Index

[#] Next page

Go to full version