Re:Pycraft: Minecraft engine in Python
by asimuvPR on Monday April 18, 2016 @10:53PM
(#11524596)
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.
[ Parent
| on HN ]
Re:Pycraft: Minecraft engine in Python
by NoWhiteHorse on Tuesday April 19, 2016 @06:40AM
(#11526038)
There is also ScriptCraft - https://github.com/walterhiggins/ScriptCraft
Here you can hook JavaScript code into Minecraft events.
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!
You could always give me a hand to get https://github.com/voltagex/minecraft-rebridge up and running again, and then use HTTP from Python to talk to Minecraft-proper ;)
Seems interesting! Would this run on a raspberry pi?
I'd love to email to see if we can collaborate in some way. My address is in my profile. :)
If you can run a Forge-enabled standard Minecraft server on the Pi, then yes. Development on the Pi would be painful, though.
Oh, the Rpi is the target platform, not the dev environment. I will look into the Forge-enabled MC server, thanks!
Re:Pycraft: Minecraft engine in Python
by traverseda on Tuesday April 19, 2016 @02:59PM
(#11529289)
It will not. We're still very early, and definitely not feature complete with minecraft. We're still working on some very fundamental things.
Do do that, you first have to write code for pulling levers, which will first require some digging around with how pycraft handles textures to make it more generic.
Check back in a few months.
I will definitely do so! Thank you. :)
By the way, accepting contributors? Maybe I can help out in some way...
Re:Pycraft: Minecraft engine in Python
by traverseda on Saturday April 23, 2016 @09:37PM
(#11558210)
We are very much accepting contributions.
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.
That point was when Minecraft was worthless. It's currently somewhere around the $2.5b mark in value. But that's just splitting hairs, it won't likely ever be open-sourced after MS acquired it.
That said, they also promised a modding API too...
Re:Pycraft: Minecraft engine in Python
by VikingCoder on Tuesday April 19, 2016 @10:10AM
(#11527061)
I dunno... Microsoft has been open sourcing some pretty awesome stuff lately.
What he actually said was "Once sales start dying and a minimum time has passed, I will release the game source code as some kind of open source." [0]. Sales haven't died down and he doesn't own it anymore anyway.
[0] http://web.archive.org/web/20100301103851/http://www.minecra...
Seems like selling it is the broken promise. If sales die down, and a minimum time passes, he still can't OS it because he sold it.
Still, as long as the idea's out there... I heard the codebase isn't actually that great...
Re:Pycraft: Minecraft engine in Python
by idle_zealot on Tuesday April 19, 2016 @12:05AM
(#11524803)
Couldn't something like that be done in Minetest?