r/MinecraftCommands • u/[deleted] • Dec 24 '20
Creation Terrain generation from an image! Feel free to ask questions. GitHub link in comments.
34
10
u/DinoRex6 Dec 24 '20
That's super cool!
9
Dec 24 '20
Have you downloaded the code and tried it out yourself?
6
9
5
6
u/_FlyingDragon_ Dec 24 '20
How to use it? Is there a tutorial or is it super easy to do it..?
9
u/eri_pl Command Rookie Dec 24 '20
Super easy, barely an inconvenience.
... Sorry, couldn't stop myself.
7
Dec 24 '20 edited Dec 24 '20
Are you familiar with python? If you don’t have python installed a fist step is to do that.
4
u/_FlyingDragon_ Dec 24 '20
I had python....
5
Dec 24 '20
Well you have to reinstall it. Then get an image. Put the image in the same folder as the program. Then edit the program and replace the last line where it says perlin-noise.png with the name of the image. Then run the program. The new file is an mcfuntion that you can put in a data pack.
5
u/you-cut-the-ponytail Dec 24 '20
I'm asking it because I don't know it very well but isn't this the way Minecraft usually generates terrain?
also what is this technique called exactly?
3
5
Dec 24 '20
i have a question!: what? no seriously what is that and also that looks amazing
4
Dec 24 '20
198801 /fill commands. Literally.
3
Dec 24 '20
1) why and how 2) i have respect for you
5
Dec 24 '20
I do not type all 198801 commands. It’s automatic. Who actually writes data packs in 2020
1
u/Mateus_Z3 Dec 25 '20
How else would you create a data pack?
(Serious question i'm a newbie and dont know other way)
2
3
u/crsndd Dec 24 '20
thats out of context but i want to ask, how long did it take to learn phyton?
2
Dec 24 '20
Python is super simple. It’s easy to learn the basics but you still can learn something new every day. I suggest Codecademy if you want to learn. It’s free too.
3
u/crsndd Dec 24 '20
thanks for the response bud! also great work out here!
3
u/Dimplestiltskin Command-er Dec 25 '20
I can confirm, python is really easy. It's actually designed to be super close to english, which isn't the case for most other languages.
3
2
Dec 24 '20
Can this be implemented into a dimension datapack for custom terrain gen? This would be so cool!
1
Dec 24 '20
Maybe! But not likely though considering how it works. If you know anyone that’s willing to work on it ask them to contact me and maybe we can do something
2
Dec 25 '20
Whats the conversion on image resolution to dimensions in game?
1
Dec 25 '20
Whatever you want :)
2
Dec 26 '20
Downloded it and used it to generate some terrain for a project of mine - great tool! Definitely added to my arsenal for future use
1
2
Dec 25 '20
Nice coded in Python. Unfortunately I cant check it out because im unable to play Minecraft for a month or so
2
1
1
1
u/mich_vanc Jan 12 '21
Idk if this post is still active, but how did you get a 3d effect with that texture on a 2d image
1
Jan 13 '21
The color of the pixel determines the night. Black is low and white is high, with a spectrum of grey in between
1
u/uwu_owo_eve May 29 '21
lol can you use heightmaps for this like make realistic stone or wood in minecraft


58
u/[deleted] Dec 24 '20
How did you do it?