How to Write Your First Minecraft Mod
When you’re ready to write your first Minecraft mod, click on the Learn tab to go back to the list of badges, and then click on the Write Your First Mod badge.
You can also find these steps in the left column of the badge by watching a video or reading written instructions.
You should watch the video before continuing.
You use a function in this challenge. A function is a way to group tasks together and name them. For example, if you write a function named jump rope, it might contain the tasks hop and spin rope.
To earn the second badge, follow these steps:
Drag a function into the programming environment and rename it main.
This is where to find the function block
Click on the text do something.
This is located in the function block.
Type main to create a main function.
Main will appear in the function block.
Click on the Minecraft category.
Then, click Players.
Click to select the send message block.
Then drag it to connect it to the main function.
Click to select the Text code category.
Then locate the text block.
Drag the text block to connect it to the send message block.
Then type Hello, World! inside the text block.
Click the Minecraft category and then Players.
Then locate the me block.
Drag the me block.
Connect it to the second space on the send message block.
Click the Test In Simulator button.
This is located at the bottom of the four steps for this challenge.
Click in the simulator, and then press the M key on your keyboard.
You see the message Hello, World!.
When the badge you have earned pops up, you can click Back to Badges.
Congratulations! You have written your first Minecraft mod.
You can select the link on the progress bar at the top or ask a question by clicking the link in the upper right corner of the screen.
This is a good place to check if you have problems.