tutorial 01: Hello World

Welcome to the tutorial on creating a universal "Hello World" recipe using Magnetron Dev! In this tutorial, you will learn how to create a new recipe, add a header, sign your recipe as a developer, print text to the console, and install and open Magnetron Dev.

To begin, make sure that you have installed and opened Magnetron Dev. Click on the "I agree" button to acknowledge the disclaimer, and the dev window will open. For more information on installing and opening Magnetron Dev, visit magnetron.dev/docs/install

Next, click the "File" menu option and select "New" to create a new recipe. You can remove all of the default example script and start with a clean slate by selecting all of the text and deleting it. Then, copy the following "Hello World" function into the editor:

function main()
    echo("hello world");


To add a unique spice to your recipe, click the smiley icon in the bottom left corner of the window. Select the "Create Spice" option in the pop-up menu, enter a recognizable name to identify yourself as chef, and click "Create it".

Once you have created your spice, it's time to save your new recipe. Click "Save" in the File menu and a dialog box will open with the main header properties. Enter a title and description as minium, and click "Update Spice" to save your recipe. For more information on header properties and spices, visit magnetron.dev/docs/writing-recipes/header

Congratulations, you have created your first recipe! To quickly test and debug your recipes, you can use the "Save & Run" option (Ctrl/Cmd + Shift + S). The "Hello World" text should be printed in the console tab of the Magnetron Dev window.