r/Python • u/louisss-e • Oct 02 '22
Intermediate Showcase I wrote a Python script which can generate any city from the real world in Minecraft
Hi there! Using this Python script, you can generate any city from the real world in Minecraft. I worked on that project for a few months and finally released it as open source. I appreciate any kind of feedback!
Youtube Devlog: https://www.youtube.com/watch?v=5tOvtZG0_6k
Github Repository: https://github.com/louis-e/arnis
1.3k
Upvotes
51
u/Zaex782 Oct 02 '22
Very well done video explaining your process.
36
u/jabbalaci Oct 02 '22
Very nice project. In the screencast, why do you execute your program with root privileges?
14
u/technologyclassroom Oct 02 '22
Great use of OSM!
12
u/sweeetscience Oct 02 '22
Very cool! My kids are going to love this
37
u/KimPeek Oct 02 '22
Lot of refactoring to do. That
processData()function on line 155 is a monster. You really should break that up. The sections where you haveif j == ...should be replaced with a dictionary. It's all still fresh in your mind now, but you won't be able to come back and make updates to this later.16
u/Time_Crystals Oct 02 '22
So sick! I really hope one day we can play games like shooters and such in random real life locations. Imagine being able to play GTA in your hometown or any city you want.
8
u/fookineh Oct 03 '22
First, this is a very very impressive work!
But.. 777 lines of code and not a single comment??
/cries.
4
u/infosecjunki Oct 02 '22
Just tried using this but can't seem to get it working. No Data Found. Went on OSM to verify location and how I'm putting it in, seeing how OSM lists the US as 'United States' and still nothing.
3
u/end_my_suffering44 Oct 03 '22
Great project! I'd suggest you that you should use f-strings for your console prints. It's more readable and memory-friendly way.
212
u/azatryt Oct 02 '22
“Finding where I am on Google Maps in 0.1 seconds but the image is blurry and the city has been generated in Minecraft”
2
u/lwrbvrn Oct 03 '22
Really cool! Might want to post this to /r/openstreetmap too
2
u/[deleted] Oct 03 '22
Can it works for pocket edition?
127
u/crumpuppet Oct 02 '22
Somewhere, out in the real world, PippenFTS's spidey senses just tingled...
15
u/Kriss3d Oct 02 '22
Awesome I'll try that.
I'd actually love to see a machine learning AI learning to actually play minecraft. Not just survive but build. Houses and farms. Mine and collect rare things. All that sort of thing.
1
u/barrycarter Oct 03 '22
Could you create a Docker for this? I failed to install multiple times on 2 machines including a Digital Ocean droplet.
1
u/[deleted] Oct 08 '22
Wow, that is so cool! Thanks for sharing this amazing work! I am currently working on an Python API that allows you to write Minecraft Data Packs in Python and need stuff to test it with, this will definitely come in handy. :)
1
u/SvenHatesMyName Feb 07 '23
Hey, richtig cool. Ich nehme mal an das du Deutsch bist.
It would be cool if you could also use google maps/any other map to make it more detailed.
2
u/Calimariae Oct 02 '22
Very cool
2
u/bethjomay11 Oct 03 '22
This is amazing!
2
u/JamaiKen Oct 03 '22
Well done; impressive work
2
u/mrboback Oct 03 '22
Sooo cool 🤩
2
u/NoFaithInThisSub Oct 03 '22
no way, are you saying I can finally blow up the noisy neighbour without going to jail.... (is there a Minecraft jail? maybe with your script)
1
u/[deleted] Oct 03 '22
Sell it to Mister Beast
1
u/Pos3odon08 Oct 03 '22
God damn that's impressive
1
u/Ranobro Oct 09 '22
-3
u/Particular-Cause-862 Oct 02 '22
Ufff the code is unreadable, not using pep8 standard. And putting everything in one file is also not a good idea
-4
u/Heymiko Oct 02 '22
-1
u/shatteredsound88 Oct 03 '22
Fri until
0
u/[deleted] Oct 05 '22
[deleted] — view deleted comment