# I've made a randomized terrain generator similar to minecraft's

**URL:** https://forum.makecode.com/t/ive-made-a-randomized-terrain-generator-similar-to-minecrafts/9289
**Category:** Arcade
**Tags:** game
**Created:** [July 19, 2021, 4:26pm UTC](https://forum.makecode.com/t/ive-made-a-randomized-terrain-generator-similar-to-minecrafts/9289 "2021-07-19T16:26:32Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)
#### Post date: [July 19, 2021, 4:26pm UTC](https://forum.makecode.com/t/ive-made-a-randomized-terrain-generator-similar-to-minecrafts/9289/1 "2021-07-19T16:26:32Z")

</div>

This is 2d because I don’t know much about javascript and 3d raycasting.

> **[procedral generation???](https://arcade.makecode.com/72924-01370-08058-72007)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)
#### Post date: [July 19, 2021, 7:03pm UTC](https://forum.makecode.com/t/ive-made-a-randomized-terrain-generator-similar-to-minecrafts/9289/2 "2021-07-19T19:03:32Z")

</div>

Quick update: Added ores, added digging down, spelling error fixed in the title, and 30 jumps instead of 2, so digging down doesn’t softlock you.

> **[Procedural Generation???](https://arcade.makecode.com/58638-20058-11546-21077)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![I\_Love\_HxH](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/i_love_hxh/32/4494_2.png) [@I\_Love\_HxH](https://forum.makecode.com/u/I_Love_HxH)
#### Post date: [July 20, 2021, 1:19am UTC](https://forum.makecode.com/t/ive-made-a-randomized-terrain-generator-similar-to-minecrafts/9289/3 "2021-07-20T01:19:37Z")

</div>

It’s a nice game butI have a question, how do you digg?

---

<div class="post-metadata">

### Author: ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)
#### Post date: [July 20, 2021, 4:14pm UTC](https://forum.makecode.com/t/ive-made-a-randomized-terrain-generator-similar-to-minecrafts/9289/4 "2021-07-20T16:14:09Z")

</div>

Sorry, there was a bug, and I didn’t test it because the loading time was to long, but now I fixed it and tested it, and it now works. click B to dig down. You can’t get items (yet), and you can’t dig sideways (yet).Here’s the fixed version.

> **[Procedural Generation???](https://arcade.makecode.com/03320-75055-22569-68929)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![I\_Love\_HxH](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/i_love_hxh/32/4494_2.png) [@I\_Love\_HxH](https://forum.makecode.com/u/I_Love_HxH)
#### Post date: [July 20, 2021, 10:46pm UTC](https://forum.makecode.com/t/ive-made-a-randomized-terrain-generator-similar-to-minecrafts/9289/5 "2021-07-20T22:46:29Z")

</div>

Ok thanks!

---

<div class="post-metadata">

### Author: ![Primal\_Nexus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/primal_nexus/32/3540_2.png) [@Primal\_Nexus](https://forum.makecode.com/u/Primal_Nexus)
#### Post date: [July 26, 2021, 3:42pm UTC](https://forum.makecode.com/t/ive-made-a-randomized-terrain-generator-similar-to-minecrafts/9289/6 "2021-07-26T15:42:40Z")

</div>

Wait @Kiwiphoenix364, is the abnormal loading time a glitch or is it supposed to be there to load up the chunks?  
PS: this is for my game (Minecraft Arcade), which you have already told me about (great effort btw!).

---

<div class="post-metadata">

### Author: ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)
#### Post date: [July 27, 2021, 1:22am UTC](https://forum.makecode.com/t/ive-made-a-randomized-terrain-generator-similar-to-minecrafts/9289/7 "2021-07-27T01:22:11Z")

</div>

It takes so long because it has 1: it generates in layers. if it didn’t do as many layers as it does now, it would look like this: [https://makecode.com/\_LEr3MMKgrd6c](https://makecode.com/_LEr3MMKgrd6c)  
2. To smooth out the terrain. If it doesn’t it just looks like this: [https://makecode.com/\_3YmA03C0RK9p](https://makecode.com/_3YmA03C0RK9p)

---

<div class="post-metadata">

### Author: ![Primal\_Nexus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/primal_nexus/32/3540_2.png) [@Primal\_Nexus](https://forum.makecode.com/u/Primal_Nexus)
#### Post date: [July 28, 2021, 4:22pm UTC](https://forum.makecode.com/t/ive-made-a-randomized-terrain-generator-similar-to-minecrafts/9289/8 "2021-07-28T16:22:43Z")

</div>

@Kiwiphoenix364 ok, the thing is, @UnsignedArduino has already made a full extension for random terrain generation, so I might not use your code ☹

---

<div class="post-metadata">

### Author: ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)
#### Post date: [July 28, 2021, 4:48pm UTC](https://forum.makecode.com/t/ive-made-a-randomized-terrain-generator-similar-to-minecrafts/9289/9 "2021-07-28T16:48:51Z")

</div>

Ok, you can do that! I know that my code is not the most efficient and there are better ways. I was just giving you a possibility to try so you might not have to put into too much effort, and I didn’t know UnsignedArduino already made an extension!

---

<div class="post-metadata">

### Author: ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)
#### Post date: [August 5, 2021, 4:32pm UTC](https://forum.makecode.com/t/ive-made-a-randomized-terrain-generator-similar-to-minecrafts/9289/10 "2021-08-05T16:32:52Z")

</div>

Nice work! But why does it take so long to load?

---

<div class="post-metadata">

### Author: ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)
#### Post date: [August 5, 2021, 11:28pm UTC](https://forum.makecode.com/t/ive-made-a-randomized-terrain-generator-similar-to-minecrafts/9289/11 "2021-08-05T23:28:12Z")

</div>

I smooth out the terrain like 32 times so its not all jagged

---

<div class="post-metadata">

### Author: ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)
#### Post date: [August 9, 2021, 3:34pm UTC](https://forum.makecode.com/t/ive-made-a-randomized-terrain-generator-similar-to-minecrafts/9289/12 "2021-08-09T15:34:15Z")

</div>

I’m making a code that uses actual seeds instead of the default make code % blocks, and it should be a lot faster.
