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.
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 ;)
Pycraft: Minecraft engine in Python
41–49 of 49 posts
Re: Pycraft: Minecraft engine in Python
#42I'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…
Re: Pycraft: Minecraft engine in Python
#43I'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.
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.
Re: Pycraft: Minecraft engine in Python
#44"Permissive policy on pull requests" makes me fearful for the long-term maintainability.
A lot of people have been doing pull requests for unit-tests, documentation, and continuous integration. So I'm not too worried.
We're setting up a policy for requests, but that policy is living in code.
Re: Pycraft: Minecraft engine in Python
#45I cringe when I see code like this: if len(vals) in range(1, 5): It seems like a harmless enough thing to do but that code is effectively creating a new array with values [1, 2, 3, 4, 5] and testing if the result of len() is in that array by iterating over it. This check is happening multiple times for each draw call every frame. Sadly I see this kind of stuff in Python all the time and it just adds weight to the arg…
There are already some people talking about Cython for some of the fundamental graphics stuff.
Basically, this is just a base so that people can see what they're working towards.
Re: Pycraft: Minecraft engine in Python
#46I'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 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.
Re: Pycraft: Minecraft engine in Python
#47Earlier quoted context omitted.
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. :)
Re: Pycraft: Minecraft engine in Python
#48Earlier quoted context omitted.
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.
Re: Pycraft: Minecraft engine in Python
#49Earlier quoted context omitted.
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...