0 votes

How could I generate blocky worlds procedurally like Minecraft? I know there is the Voxel Tools plugin but I don't want to use a plugin. I am learning C# so I will use Godot C# unless it would be easier to do in GDScript?

Godot version 3.3.2
in Engine by (15 points)

1 Answer

0 votes
Best answer

something like this? https://www.youtube.com/watch?v=cBXG-1L0qLY
try this project (GDScript): https://github.com/AiTechEye/Godot-Voxel-Prototype

I used Vector3 as keys in a dictionary, and put a number of a block/node, just so you know what node it is about, check that dictionary everytime a block will be set.
draw a amount of blocks in a mesh, a popular number is 16x16x16, but in my project i prefer to use 8x8x8 cuz it is way faster, when you generating and updating the meshes.

by (193 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.