FAQ
Hello,

i'm writing an library for communication between minecraft and golang.
After a quick search i can't find something similar in go so i decided to
build some. Minecraft is opening a network socket and you have to establish
a tcp connection to communicate. There is a documentation of the protocol
to interact with the
game: https://github.com/salimfadhley/dojo-minecraft/blob/master/mcpi/api/spec/mcpi_protocol_spec.txt

My idea is that you have Player, World and Camera as Objects and you can
interact with them like setPosition. At the moment i'm passing arround the
connection to all of the objects. It doesn't feel right to do it in this
way. The only idea i came up with was to save the connection as a global
variable but i think this is also not the best way to do it.

Do you have some ideas to implement it? Maybe i'm totally wrong with my
ideas because it's one of my first projects in golang.

Would be kind if you could point me into the right direction.

There is a very early stage of implementation on my github
account: https://github.com/tobiaskohlbau/mcpigo
Maybe you have also some improvements to my actual implementation.

Thanks for your help.

Greetings
Tobias



--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Ian Davis at Feb 3, 2015 at 12:17 pm

    On Tue, Feb 3, 2015, at 11:54 AM, Tobias Kohlbau wrote:
    Hello,

    i'm writing an library for communication between minecraft and golang.
    After a quick search i can't find something similar in go so i decided
    to build some. Minecraft is opening a network socket and you have to
    establish a tcp connection to communicate. There is a documentation of
    the protocol to interact with the game:
    https://github.com/salimfadhley/dojo-minecraft/blob/master/mcpi/api/spec/mcpi_protocol_spec.txt
    You might be interested in https://github.com/kierdavis/proxy which was
    written by my son :)

    It's a big light on documentation though...

    Ian

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Tobias Kohlbau at Feb 3, 2015 at 5:01 pm
    Thanks for your link. I've found a solution to solve it by implementing my
    own readwriter.

    I will keep you updated when it is usable by kids who wanna learn
    programming. Maybe in the future with some go on raspberry pi ;)
    On Tuesday, February 3, 2015 at 12:54:56 PM UTC+1, Tobias Kohlbau wrote:

    Hello,

    i'm writing an library for communication between minecraft and golang.
    After a quick search i can't find something similar in go so i decided to
    build some. Minecraft is opening a network socket and you have to establish
    a tcp connection to communicate. There is a documentation of the protocol
    to interact with the game:
    https://github.com/salimfadhley/dojo-minecraft/blob/master/mcpi/api/spec/mcpi_protocol_spec.txt

    My idea is that you have Player, World and Camera as Objects and you can
    interact with them like setPosition. At the moment i'm passing arround the
    connection to all of the objects. It doesn't feel right to do it in this
    way. The only idea i came up with was to save the connection as a global
    variable but i think this is also not the best way to do it.

    Do you have some ideas to implement it? Maybe i'm totally wrong with my
    ideas because it's one of my first projects in golang.

    Would be kind if you could point me into the right direction.

    There is a very early stage of implementation on my github account:
    https://github.com/tobiaskohlbau/mcpigo
    Maybe you have also some improvements to my actual implementation.

    Thanks for your help.

    Greetings
    Tobias


    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedFeb 3, '15 at 11:54a
activeFeb 3, '15 at 5:01p
posts3
users2
websitegolang.org

2 users in discussion

Tobias Kohlbau: 2 posts Ian Davis: 1 post

People

Translate

site design / logo © 2021 Grokbase