This project is very slow on Scratch. I highly recommend you use TurboWarp, just go to this link: https://turbowarp.org/1080608744?fps=60&offscreen&limitless&hqpen Mobile controls are also supported (somewhat), enable them in the game's settings (Settings > Control > Mobile Control). WASD to move Space to jump Click to break a block F to place a block Left/Right arrow keys to change held block Q or \ to crouch or fly down Shift or R to sprint or fly quickly G to toggle flight Z while flying to fly slowly C to copy the block you're looking at P to pause the game/change settings Hold space when clicking "start" to create a flat world (click the green flag to clear your current world to make a new one). Scroll to zoom, and T to reset zoom. V to create a waypoint, E to edit (or delete) a waypoint (when looking at it). Some of those controls only work on TurboWarp. SAVING YOUR WORLD MIGHT NOT WORK: Saving your world is possible but not officially supported - the save codes are extremely long and could even crash your browser. Do not expect to share your worlds with others. These save codes easily get corrupted due to their size and that there's no error correction in the codes (yet). I'd suggest using a command or software on your computer that dumps clipboard contents into files rather than pasting them into text editors as this reduces the chances of world save codes being corrupted. If you don't know how to do this, don't expect save codes to work. Compression algorithms such as .zip reduce world save files very well, by the way. Bonus controls: 7 toggle wireframe view 8 toggle GUI 0 toggle debug menu (show FPS) Y to save your world - DO NOT RELY ON THIS U to load your world - you can only do this when you're already in a world. To use pointerlock, you have to edit the project on TurboWarp (not experiments.turbowarp.org). On TurboWarp, click "see inside", and you should be on the Thumbnail sprite by default. Just scroll slightly to the right and find the define enable/disable pointerlock blocks. Add the pointerlock extension, and add the enable and disable pointerlock blocks accordingly. Make sure in the game's settings you also set the camera control to "Pointerlock". To play the game in widescreen (TurboWarp only), go to Advanced (top left) > Custom Stage Size, and then set that to 640x360. Then in the game's settings, select 640 as the screen width (Settings > Other > Screen Width). Since this game is very demanding, to improve performance, try using the TurboWarp desktop offline editor if you have it (PC only).
This is my attempt at creating the highest performance Minecraft-like game on Scratch. This project boasts several unique features while maintaining decent FPS. In this game, create a unique world, fly around, and build whatever you want in a 1024x1024x1024 block world! This is the first version of the game, there's no survival mode yet. There's also only the forest, desert, and ocean biomes, and no caves. There are also no entities, crafting, or lighting yet. But it looks pretty good (yes, the menu background is an in-game screenshot)! What sets this apart from other recreations of Minecraft on Scratch? Well, this is the first one I've seen to aggressively use LODs, similarly to the Distant Horizons mod for Minecraft, to allow for a much larger view distance than would otherwise be possible. Other than that, this project doesn't do anything very special. In fact I'm not very happy with the performance yet, hopefully I can improve it. SHORT FEATURE LIST: - Smooth lighting effect (but not actual lighting) - Decent render distance - Textures - Procedural world generation - Large world - Runs >30FPS on TurboWarp on medium settings on my laptop (let me know what performance you can get on your faster computers! Can anyone run on Ultra settings??) If you're looking for a more advanced "Minecraft on Scratch" game, check this one out: https://scratch.mit.edu/projects/908626779/ It should have even more views than it currently does considering how many features are in the game. For even more "Minecraft on Scratch" projects, check out this studio: https://scratch.mit.edu/studios/33623882/ as there are some other fantastic games there! The perlin noise implementation (used for textures and terrain generation) is based on https://scratch.mit.edu/projects/319996699/. Sound effects are from the Scratch sound library, freesound (all of these ones are under the CC0 license), and Pixabay (these are under the Pixabay license). I have modified some of these sound effects. Everything else is by me - I think. Including the music, triangle filler, physics system, textures... actually, the textures have been randomly generated with perlin noise. By the way, the reason I made so much of this by myself rather than using existing work was because I made this game to challenge myself, and yes, it was very difficult! How does this project work? Well, the pen tool, and a lot of maths. But briefly, the world is stored as an octree, but there's also a block cache that's updated when you move. Old blocks get overwritten by blocks that enter the view distance. There are no chunks and no depth sorting - the block cache is traversed around the player every frame and block faces are drawn when they should be visible. This project uses a triangle filler and simple texture renderer; it's not raycasted. "Remove fencing" and "Remove miscellaneous limits" are enabled on TurboWarp for this project, but these are not required for it to work at all. They just give a free performance boost due to less overhead for the "go to x: y:" block, as far as I can tell. Oh, and by the way, if any other people who are recreating Minecraft in Scratch want to use any of my code or ideas in their project, feel free. I don't know if LODs are the last piece of the puzzle for your game engine, but if this project inspired you to improve yours, that's great. This project contains over 20,000 blocks (of code) so editing the code might be pretty laggy. Hey, since you've scrolled down this far, let me know what you think of this. Suggestions for new blocks would be greatly appreciated. To help Scratch categorize this project and improve search results accuracy, this is a #game based on #Minecraft. It's one of many #3D #voxel #sandbox #games. That should be enough...