
Learning
Getting Started
Learning
Nodes
Nodes Properties
Connections
Custom Variables
Simulations
Collaboration
Unity Plugin (UP) & API
Account & Billing
Loot & Craft
This tutorial will introduce you to the basics of Machinations while you will build a simple Loot & craft system.

The basic action the player performs in this example is to chop trees. For each tree they cut down, loot will be generated to provide 1 piece of wood to the player.

△ Sources generate an infinite amount of resources and can be triggered in different ways. For this example we will use an Automatic* source to do exactly that.
- Click the △ Source icon in the components panel or use the keyboard shortcut “s”.
Notice that the source is now attached to your mouse cursor. - Click on the canvas to place the source.
No worries, you can always select components and reposition them.
Once you have added a component to the canvas, the Properties Panel on the right-hand side will display the available properties for the selected component(s). Let’s give the source a name and change its color.
- Click inside the Label text field and type “Spawn tree”.
- Hit Enter to confirm the new name. Labels are displayed below the component by default. You can select a label with your mouse and move it around.
Best Practice: Using Labels will make your life much easier once your diagram becomes bigger and more complex.
- Locate the Style area in the properties panel and change the stroke color of the source to green. Use one of the predefined colors or add your own, by clicking on a color. This will open the color dialog where you can adjust it.
You need to connect the source and the pool, so that the resources can flow from the source into the pool.
- Select the → Resource connection (c) from the components bar.
- Click on the source to start your connection.
You will notice that the source will be highlighted in yellow as soon as you hover over it to indicate it is ready to receive a connection. - Click on the pool to establish the connection between the two components.
- Type “chop” into the Label text field and hit Enter to confirm.
Take a look at the Navigation bar at the top. You will notice that the name is still “New Diagram” but all your changes have been saved. Diagrams are saved automatically, so there is no need to do this manually. However, you should always give them a proper name.

- Click on the filename to open the File Management dialog.
- Type the new name of your diagram into the first text field.
- Click save to confirm your changes.

You can also add a description, an APi token (for game engine integration) and Tags to your diagram. The little bin icon allows you to delete it.