Earning Modding Badges
In this project, I help you grasp the basic concepts of programming, by completing challenges and earning badges. I give you the steps to earn different kinds of badges while learning about functions, and I encourage you to try writing your own mods (see the end of Project 1).
Write Mods with Functions
In Project 1, I describe how to write a mod that has a function named
main (refer to Figure 1-27, over in Project 1). From now on, I’ll call it the
main function. When you run a mod in Minecraft, your mod always starts running from the
Notice that the Saying Hello badge is similar to the Write Your First Mod badge, except that it has three messages instead of two. Figure 2-1 shows the code you should write to complete the Saying Hello badge.