Hey guys! Welcome to part 18 of this 3D minecraft series. In this video, I spent a few weeks trying to program biomes and trees! Without biomes, trees can't really possible exist, so, I had to code biomes as well. Coding biomes was quite easy. Similar to the depth method of blocks, I did the same, but for biomes. I created a new noise function for biomes. When the noise of this function is within certain ranges, the biome will vary between plains and desert (you can add your own custom biomes). The generation for trees work similarly, but was a lot harder to code efficiently! Now, we have infinite terrain generation, different blocks, different biomes, and trees! Next, we can add inventories, crafting, water, caves and so much more! Even animals...!
00:00 - Start
00:08 - Showcase of Trees and Biomes
00:44 - Introduction
02:18 - Adding Different Textures
03:51 - World, Biome and Trees Noise
06:36 - getBiome Function
08:22 - New Property and Objects in Blocks Variable
11:07 - Changing Depth Loops
12:35 - Creating the Tree Trunk
15:27 - Creating the Leaves for the Trees
20:03 - Infinite Terrain Generation Code Edits
23:09 - Outro
Links:
Check out the code in my GitHub repository : https://github.com/HritikRC/Minecraft...
Intro to this series : • Coding Minecraft With THREE.js! | Ser...
Series Playlist : • How to Code Minecraft
THREE.js : https://threejs.org/
Perlin Noise Library (remember to include the license!) : https://github.com/josephg/noisejs
Perlin Noise Tutorial : • 3D Terrain Generation with Perlin Noi...
Download Python : https://www.python.org
Minecraft World Generation Algorithm : https://github.com/UnknownShadow200/C...