Prerequisites:
We will need a UV Texture for GridMap Meshes.
Before we create GridMap, let’s create a mesh that we will use on a GridMap.
We can do this by making a 3D Scene with sub-nodes of MeshInstance3D.
Let’s add MeshInstance3D subnode to the 3D Scene.
Let’s set the MeshInstance3D to BoxMesh Instance.
Now let’s import and place our UV Texture over the Box Mesh Instance Mesh Material.
Renaming and adding Collision Box for the MeshInstance3D
Now we have a mesh instance for our GridMap. Mesh is only a visual representation so let’s also add a collision box so the players can collide and walk on these meshes when placed in a GridMap.
Now Add StaticBody and Collision Box.
GridMap Setup
We are now ready for going back to actual GridMap Setup.
This is going to be another different scene.
First let’s add GridMap to the scene.
Next we will need a new mesh library for the GridMap.
Now we need to click on the newly created MeshLibrary
And then click import from scene.
Select the somemesh scene.
And the results should be something like this.
Note/bug: For these results to be visible: you might need to refresh scene by clicking any other scene and then going back to GridMap Scene.
Note: For our setup we also use
1.0m cell size for GridMap, to make it more like Minecraft spaced world.

















