Live data from Hacker News

Pycraft: Minecraft engine in Python

github.com

1–10 of 49 posts

Re: Pycraft: Minecraft engine in Python

#2
I've always wanted to have an MC clone in Python with GUI event hooks to run scripts. Like pull a lever and an email is sent sort of thing. Will this fork allow for something like that? I'm not against adding it myself if allowed, btw.

Re: Pycraft: Minecraft engine in Python

#3
I've been teaching a class (http://apprenticeworks.us) based on the same original repo it seems like you found. I made a lot of the same changes as you as well. I ended up abstracting a lot of the "optimization" type code (the sectors for example) and changed the way the state of the player is kept to support multiple players in the future.

Not sure if you'd be interested, but I have some content I'd be happy to add for background type information (i.e. degrees of freedom, calculating movement, frames of reference, etc). Might make a good starting point for contributors but not sure if that's the direction you see your documentation taking.

Re: Pycraft: Minecraft engine in Python

#4

I've been teaching a class ( http://apprenticeworks.us ) based on the same original repo it seems like you found. I made a lot of the same changes as you as well. I ended up abstracting a lot of the "optimization" type code (the sectors for example) and changed the way the state of the player is kept to support multiple players in the future. Not sure if you'd be interested, but I have some content I'd be happy to ad…

It's not my project but in sure the repo maintainers would be interested!

Re: Pycraft: Minecraft engine in Python

#6
post #2

I've always wanted to have an MC clone in Python with GUI event hooks to run scripts. Like pull a lever and an email is sent sort of thing. Will this fork allow for something like that? I'm not against adding it myself if allowed, btw.

Isn't this already possible with normal Minecraft? I mean obviously you have to write your mod with Java, but still.

Re: Pycraft: Minecraft engine in Python

#7
post #2

I've always wanted to have an MC clone in Python with GUI event hooks to run scripts. Like pull a lever and an email is sent sort of thing. Will this fork allow for something like that? I'm not against adding it myself if allowed, btw.

It's build on top of pyglet which is built around event-based programming, so it's already got the ability to do low-level callbacks from key/mouse events built in [1]. GUI widgets are a separate matter though and would probably require a separate library to do OpenGL GUI elements on top of this.

[1] https://pyglet.readthedocs.org/en/pyglet-1.2-maintenance/pro...

Re: Pycraft: Minecraft engine in Python

#8
post #6
post #2

I've always wanted to have an MC clone in Python with GUI event hooks to run scripts. Like pull a lever and an email is sent sort of thing. Will this fork allow for something like that? I'm not against adding it myself if allowed, btw.

Isn't this already possible with normal Minecraft? I mean obviously you have to write your mod with Java, but still.

Yes, you are correct. But normal MC is not open source. :)

Re: Pycraft: Minecraft engine in Python

#9
post #2

I've always wanted to have an MC clone in Python with GUI event hooks to run scripts. Like pull a lever and an email is sent sort of thing. Will this fork allow for something like that? I'm not against adding it myself if allowed, btw.

It's build on top of pyglet which is built around event-based programming, so it's already got the ability to do low-level callbacks from key/mouse events built in [1]. GUI widgets are a separate matter though and would probably require a separate library to do OpenGL GUI elements on top of this. [1] https://pyglet.readthedocs.org/en/pyglet-1.2-maintenance/pro...

Reading the docs, thanks!

Re: Pycraft: Minecraft engine in Python

#10
post #8
post #6

Earlier quoted context omitted.

Isn't this already possible with normal Minecraft? I mean obviously you have to write your mod with Java, but still.

Yes, you are correct. But normal MC is not open source. :)

Even though Notch was supposed to make it open source at some point. Another broken promise.
Post reply on HN