Learning how to code is an important life skill for todays youth. It not only provides them with a greater understanding of thecomputers and software that surround us all in our daily lives, but also has the potential to lead them toward an amazing and fulfillingcareer in technology. The genius of the Minecraft modding community isthat it is helping to teach an enormous number of young programmersthat coding can be fun. The ability to enhance and modify a gameenjoyed by millions makes coding something that is approachable andenjoyable for kids of all ages.
The Eclipse Java IDE is one of the worlds most successful open sourcesoftware projects. Millions of developers use Eclipse every day astheir tooling platform. The Eclipse community has hundreds ofdedicated committers and thousands of contributors. Speaking on theirbehalf, it is incredibly gratifying for all of us to see our opensource Eclipse IDE being used to help so many young people get startedwith coding.
As a father-and-son team, Arun Gupta and Aditya Gupta have created anincredible resource to help get this next generation of coders off toa great start. Arun is a well-known and respected Javatechnology evangelist who has held positions at Sun, Oracle, and Red Hat. Both he and Adityahave been active for several years in the Minecraft and Devoxx4Kidscommunities, helping to demonstrate that Java, Eclipse, and Minecraftmodding are approachable and fun. I am sure that their book willprovide you with a great start for your coding adventures.
Preface
One day a couple of years ago, I was stunned when my son told me, Dad, my JAR snapshot messed up the configuration. As a curious dad and an experienced Java programmer, my question to him was, How do you know what a JAR is?
What I didnt anticipate at that time was how that one question would completely change our discussions over the ensuing months and years. I learned that the game of Minecraft is written in Java, and that my son had been installing mods, which are other JARs, to modify the gameplay. After helping him fix the configuration problem, my son expressed a desire to write a mod and we started exploring how to do that. This marked the beginning of an extremely rewarding and enjoyable journey for the both of us: he taught me about Minecraft, and I taught him basic Java programming concepts. Notes were exchanged over breakfast and dinner, during drives to school or classes while grocery shopping, and pretty much everywhere.
After building our first mod during Christmas 2012, we decided to share the knowledge with his Minecraft buddies. That gave rise to the first Minecraft modding workshop in our living room with about 12 kids. Most of the kids had no programming experience, let alone experience with Java. However, there was high Minecraft experience in the group, with some kids playing for about two years and up to two hours every day. When given the topic of Minecraft, the small group would talk excitedly about different aspects of the game, constantly using hundreds of game-specific terms and phrases as if speaking a different language. My goal was to leverage their passion and introduce them to Java programming.
We built our first trivial mod, but there were a lot of hiccups. After that, everything slowly started to get better. Once we learned more about modding and gained more experience, we were able to improve the quality of the workshops. Since then, my son and I have delivered multiple modding workshops in different cities around the world. Starting a .
Parents whose kids play Minecraft are well aware of how addicting the game can become. Playing the game is a lot of fun, but what makes it more engaging, entertaining, and educational is when kids start building mods. This book is targeted at parents and kids who would like to learn how to mod the game of Minecraft. It can be read by parents or kids independently, but it is more fun to read it together. No prior programming experience is required, but some familiarity with software installation will be very helpful (youll also need some basic troubleshooting know-how in case there is a problem with the installation, but this information can easily be found via a quick Google search).
How to Use This Book
This book does not intend to teach the game of Minecraft, as that is a vast topic by itself. Refer to the numerous articles at provides a basic introduction to Minecraft for readers who have never played the game.
starts with a quick overview of the tools required for modding, and provides step-by-step instructions on how to download and install them. The remainder of the chapter walks through how to verify the sample mod bundled in the downloads. We explain the key concepts of the modding tools and familiarize you with Minecraft Forge terminology. This chapter builds the fundamentals required to create mods in subsequent chapters. As with learning any new skill, the concepts covered in this first chapter might be overwhelming for some readers, but it will soon become more familiar.
Moving on from there, Chapters ). Some of the mods also have variations that you can try out.
Next, well explain how to add features to the game such as new commands (). This book shows multiple mods that you can build with Forge. Each chapter provides suggestions on what additional mods can be tried based upon what youve learned so far. You are encouraged to try them out.