Book description
The book is for anyone who wants to learn how to modify
Minecraft--no previous programming experience required! The book
uses JavaScript, a popular programming language for creating
websites and scripting.
Aimed at kids who already play Minecraft, this guide will teach
coding through a series of "Recipes" (the term used in-game when
crafting new objects). For example, in the game, one of the first
things any player must do is create a Workbench, or Crafting Table,
which will in turn enable the player to create sophisticated tools.
Recipe 1 in the book (the term Recipe and Chapter is
interchangeable) is 'A modding Workbench' and its ingredients are
the tools the reader will need to begin modding.
The goal of each Recipe/chapter is to introduce a new JavaScript
concept or expand upon a previously introduced concept. The author
will present each recipe as a useful addition to the game while
gently introducing programming concepts in an approachable style.
This unique approach gets over the problem of introducing
JavaScript in an interesting way and avoids spending 3 or 4
chapters explaining JavaScript core concepts in a vacuum.
Several Recipes will be covered, including Rolling Dice, Snowball
Fight, Piggie Pandemonium, Advanced Modding, and more.
Table of contents
- Title Page
- Copyright Page
- Dedication Page
- Acknowledgments
- About the Author
- Contents
- Preface
- Introduction
-
Part I: Building a Modding Workbench
- Chapter 1. Running Your Own Minecraft Server
- Chapter 2. Setting Up ScriptCraft
- Chapter 3. Exploring JavaScript in Minecraft
- Chapter 4. Choosing and Using a Text Editor
-
Part II: Basic Modding
- Chapter 5. Your First Minecraft Plugin
- Chapter 6. Rolling Dice
- Chapter 7. Multisided Die
- Chapter 8. Greeting Players
- Chapter 9. A Guessing Game
- Chapter 10. Animal Sounds
- Chapter 11. Leaderboards: More Fun with Arrays
- Chapter 12. Building a Skyscraper
- Chapter 13. Create a Fireworks Show
- Chapter 14. Animal Sounds Revisited
-
Part III: Advanced Modding
- Chapter 15. Saving Player Preferences
- Chapter 16. Add New Recipes: The Ender Bow
- Chapter 17. Arrows That Teleport You
-
Chapter 18. Protecting Your Server Against Griefing
- Simple Protection
- Canceling Events
- How to Stop Listening for Events
- Prohibiting TNT
- Prohibiting Lava
- Player Plots
- Safe Zones
- Refactoring
- Creating Plots
- Claiming Plots
- Preventing Griefing on Plots
- Abandoning Plots
- Sharing Plots
- Dynamic Command Options
- Updating Event Handling to Accommodate Trusted Players
- Summary
-
Chapter 19. Snowball Fight!
- Game Rules
- Logistics
- Keeping Score
- The Game Source Code
- Running the Game
- Allocating Teams
- The Game Loop
- Scope and Functions
- Listening for Snowball Hits
- Starting the Game
- Initializing and Updating the Scoreboard
- Displaying the Score
- Ending the Game
- Creating an Arena
- Making It Easy for Players to Start the Game
- Summary
- Conclusion
- Appendix A. ScriptCraft Variables
- Appendix B. Using ScriptCraft with Other Plugins
- Appendix C. Events Reference
- Appendix D. Items Reference
- Appendix E. Function Declarations vs. Function Expressions
- Index
- Code Snippets
Product information
- Title: A Beginner’s Guide to Writing Minecraft Plugins in JavaScript
- Author(s):
- Release date: April 2015
- Publisher(s): Peachpit Press
- ISBN: 9780133962567
You might also like
book
Minecraft Mods Programming Absolute Beginner’s Guide
Absolute Beginner's Guide to Minecraft® Mods Programming Minecraft® is a registered trademark of Mojang Synergies / …
book
Learn to Program with Minecraft Plugins, 2nd Edition
The bestselling, kid-tested book for Minecraft is now updated for CanaryMod! Write your own Minecraft plugins …
book
JavaScript Projects for Kids
Gear up for a roller-coaster ride into the world of JavaScript and programming with this easy-to-follow, …
book
Introducing JavaScript Game Development : Build a 2D Game from the Ground Up
Learn to build a fully-functional 2D game inspired by the 1979 Atari classic, Asteroids, using just …