# Optimized Minecraft Clone in Processing

**URL:** https://discourse.processing.org/t/optimized-minecraft-clone-in-processing/45422
**Category:** Gallery
**Created:** [December 3, 2024, 3:00am UTC](https://discourse.processing.org/t/optimized-minecraft-clone-in-processing/45422 "2024-12-03T03:00:06Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![HerbertTheBird](https://avatars.discourse-cdn.com/v4/letter/h/85e7bf/32.png) [@HerbertTheBird](https://discourse.processing.org/u/HerbertTheBird)
#### Post date: [December 3, 2024, 3:00am UTC](https://discourse.processing.org/t/optimized-minecraft-clone-in-processing/45422/1 "2024-12-03T03:00:06Z")

</div>

![MinecraftImage](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/1/a/1a00368454e424d6b04bd5fdd970f7267a4994db.jpeg)  
 ![Screenshot 2024-12-02 at 6.49.22 PM](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/2/b/2b71f115a940853a715c69a3a7b343df5621f377.jpeg)  
 ![Screenshot 2024-12-02 at 6.50.02 PM](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/8/4/84e7a9819ee56d5a7424c18fed3e41a605a8a31a.jpeg)

I made a Minecraft clone in processing java. It has basic functions like placing/breaking blocks, sprinting, flying, ambient music, sound effects, and random world generation. The whole thing is about 1000 lines long and took about 10 hours. It’s somewhat optimized (backface/occlusion culling) so it can render 25k blocks at 30 fps.

Any suggestions or feedback would be appreciated.

---

<div class="post-metadata">

### Author: ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)
#### Post date: [December 3, 2024, 9:38am UTC](https://discourse.processing.org/t/optimized-minecraft-clone-in-processing/45422/2 "2024-12-03T09:38:56Z")

</div>

Hi and welcome to the forum.

Amazing what can be done with just 1000 lines of code. 😄

> [@HerbertTheBird](#):
>
> Any suggestions or feedback would be appreciated.

If you make the sketch code available it might be possible to provide suggestions or feedback.

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [December 3, 2024, 11:27pm UTC](https://discourse.processing.org/t/optimized-minecraft-clone-in-processing/45422/3 "2024-12-03T23:27:59Z")

</div>

I’d be interested in code

Did you make a sky sphere?

How do you steer the player, with the mouse?

---

<div class="post-metadata">

### Author: ![HerbertTheBird](https://avatars.discourse-cdn.com/v4/letter/h/85e7bf/32.png) [@HerbertTheBird](https://discourse.processing.org/u/HerbertTheBird)
#### Post date: [December 4, 2024, 5:11am UTC](https://discourse.processing.org/t/optimized-minecraft-clone-in-processing/45422/4 "2024-12-04T05:11:21Z")

</div>

I don’t understand what you mean by ‘sky sphere’, I just set the background color, and anything not covered by blocks will be the sky. For steering, wasd for movement and mouse is for looking around. I used java.awt.Robot to lock the mouse to the center of the screen.

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [December 4, 2024, 9:09am UTC](https://discourse.processing.org/t/optimized-minecraft-clone-in-processing/45422/5 "2024-12-04T09:09:19Z")

</div>

Thanks for that!

I would be glad to see the code

---

<div class="post-metadata">

### Author: ![HerbertTheBird](https://avatars.discourse-cdn.com/v4/letter/h/85e7bf/32.png) [@HerbertTheBird](https://discourse.processing.org/u/HerbertTheBird)
#### Post date: [December 20, 2024, 3:05am UTC](https://discourse.processing.org/t/optimized-minecraft-clone-in-processing/45422/6 "2024-12-20T03:05:18Z")

</div>

Sorry for the delay.

The code is on [Github](https://github.com/HerbertTheBird/ProcessingMinecraft).

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [January 2, 2025, 12:45pm UTC](https://discourse.processing.org/t/optimized-minecraft-clone-in-processing/45422/7 "2025-01-02T12:45:06Z")

</div>

Thank you so much!

Chrisir
