Creating a custom world

To start, go to the landing page and select one of the three starter projects: Somnia City - Start from the Somnia City. Customize and create your own cityscape. Somnia Village - Start from the Somnia village. Customize and create your own medieval space. Blank Space - Start from a blank space and build anything you can imagine! In this example we will start from the Somnia city project.

Open the city project in the MML editor and click fork

This will create a version of the City space you can customize. For this tutorial, we are going to place a few preset objects in the space. With the World Builder, you can upload your own assets and add code to create interactive experiences!

Go to the assets tab in the world builder.

Here you will see all the premade assets you can add to the scene. I'm going to add a few palm trees to make the city feel a bit more tropical. To do this click and drag the palmtree.glb into the edit window.

Intially the tree will probably be in a random place. Move it using the location gizmo, which allows you to move it up, down, left, right, forward and back. You click hold and drag to do this.

I've now moved the tree into a better position. You will also notice the MML code below has updated to reflect my changes. You can move the tree around by directly updating the code as well. I am now going to go back to the scene view and make a few copies of the tree.

To do this, I will copy and paste the m-model code that references the tree (the second line). This will put three trees in the scene. However, currently, they are all on top of each other!

I will now select the other two trees and move them around to make a little tropical forest.

Remember you can move the camera around in the editor window. More detail on this can be found in the mml editor tour. Ok now I've got a cool looking space I'm going to mint it into an NFT and load it into the playground! First copy the mml code of your world. Then go to the world builder app.

Copy the mml code from the editor into the world definition box:

Go through the next step and take a picture of your world:

Give your world a name and a description.

Review everything and mint your world. If anything is wrong you can hit back to repeat previous steps.

You will need to confirm the transaction to mint the NFT in your wallet:

Once minted you can go to the playground and load your world!

Click the button and you will be loaded in the Playground.

Here click the load world button. You will then be presented with a prompt:

Click the load world button and you will be able to select your custom world from the list!

Last updated