Skip to content
Example scene showing a UI
TypeScript Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Mining rocks

This simple scene shows how to use a custom UI.

Click on a rock to start mining it. If there are any valuable coins in it, a floating notification will appear.

Open the pop-up UI at any time by clicking the icon on the top-right corner to view your collected coins and the durability of your tool. You can also open it by clicking on the cube that's in the center of the scene.

Explore the scene: this link takes you to a copy of the scene deployed to a remote server where you can interact with it just as if you were running dcl start locally.

Install the CLI

Download and install the Decentraland CLI by running the following command

npm i -g decentraland

For a more details, follow the steps in the Installation guide.

Previewing the scene

Once you've installed the CLI, download this example and navigate to its directory from your terminal or command prompt.

from the scene directory:

$:  dcl start

Any dependencies are installed and then the CLI will open the scene in a new browser tab automatically.


Click on a rock to mine it, a health bar will appear over the rock until it's fully mined. If the rock contained any valuable coins, a floating notification will appear over the rock.

You can open the UI at any moment. This displays the durability of your tool and all of the coins you have collected so far.

If your tool's durability runs out, you won't be able to mine any more.

Learn more about how to build your own scenes in our documentation site.

Copyright info

This scene is protected with a standard Apache 2 licence. See the terms and conditions in the LICENSE file.

You can’t perform that action at this time.