Minecraft Modding For Kids For Dummies
Book image
Explore Book Buy On Amazon

Before you jump in and begin coding your Minecraft mod, you first need to outline it. After you understand the structure of your mod and how you want to approach breaking it up into functions, you can outline it in LearnToMod.

Follow these steps:

  1. Go to mod.learntomod.com and click on Mod at the top of the screen.

  2. Create a new mod and choose Blockly (Multiplayer) as the language.

  3. Click the Code button to go to the coding environment.

  4. Create all the functions that you outlined in your planning, but don’t fill them in yet.

    Just let the functions sit in your mod, empty, with names and parameters.

    Though these functions may end up changing as you iterate over your gameplay loop, it’s important to start piecing together the code early on so that you don’t miss any crucial actions.

  5. Call the functions from the other functions as you think you would need to. For example: You will have a main function, and it might be that the main function calls all the other functions. If that is the case, put a call to each function inside of main.

These steps are important because it helps you visualize your code!

About This Article

This article is from the book:

About the book authors:

Sarah Guthals, Ph.D. is the CTO of ThoughtSTEM and has dedicated her life to coding education.

Stephen Foster, Ph.D. is the CEO of ThoughtSTEM, a company that teaches computer science to kids across America.

Lindsey Handley, Ph.D. is the COO of ThoughtSTEM and has hundreds of hours of experience as a classroom instructor for Minecraft based science and computer science classes.

This article can be found in the category: