MINECRAFT / JAVA FOUNDATIONS

Start with Java.Build your world.

Turn your Minecraft ideas into code. Go from your first line of output to pixel builds and Paper plugins, one step at a time.

40 free lessons · No experience needed · English & Chinese

Welcome.javaJAVA / 01
public class Welcome {
  public static void main(
      String[] args) {
    String player = "Steve";
    System.out.println(
        "Welcome, " + player);
  }
}
OUTPUTWelcome, Steve
Your first line of code starts here.

LEARN IT / BUILD IT

40 lessons. One step at a time.

Follow the lessons in order, with complete code, diagrams and exercises online. Download a PDF in English or Chinese from any lesson. No sign-in needed.

LESSONS 01–10

Write your first Java program

Start with output and variables, then make decisions and repeat actions with loops.

  1. 01 Steve's First Line 90 minutes
  2. 02 Variable Boxes in Your Inventory 90 minutes
  3. 03 Blocks Have Data Types, Too 90–110 minutes
  4. 04 The Miner's Calculator 90–110 minutes
  5. 05 String Magic in Chat 100–120 minutes
  6. 06 Let the Player Type a Command 90–110 minutes
  7. 07 Night Falls: if or else? 90–110 minutes
  8. 08 The Biome Navigator 100–120 minutes
  9. 09 The Loop Builder 90–110 minutes
  10. 10 Keep Mining Until You Find Diamonds 90–110 minutes
LESSONS 11–20

Build a world with code

Combine methods, arrays and objects to create pixel builds and manage players and items.

  1. 11 Build Pixel Art with Loops 90–110 minutes
  2. 12 Pack Recipes into Methods 90–110 minutes
  3. 13 Parameters and Return Values 100–120 minutes
  4. 14 World Rules and Scope 90–110 minutes
  5. 15 Hotbar Arrays 90–110 minutes
  6. 16 Project: The Inventory Manager 110–120 minutes
  7. 17 Design Mobs with Classes 90–110 minutes
  8. 18 An Army of Objects 90–110 minutes
  9. 19 Spawn Points and Constructors 90–110 minutes
  10. 20 Lock Your Chest 100–120 minutes
LESSONS 21–30

Manage your world’s data

Design mob families, organize collections and save data to keep your world running.

  1. 21 The Mob Family Tree 90–110 minutes
  2. 22 One Command, Different Attacks 90–110 minutes
  3. 23 Behavior Contracts 90–110 minutes
  4. 24 Coordinates, Directions and Enums 90–110 minutes
  5. 25 A Mob List That Grows 90–110 minutes
  6. 26 Scoreboards and HashMap 90–110 minutes
  7. 27 Random Loot Tables 90–110 minutes
  8. 28 Protect Your Program from Errors 100–120 minutes
  9. 29 Save Your World 100–120 minutes
  10. 30 The Block Data Pipeline 100–120 minutes
LESSONS 31–40

Create a server plugin

Connect Paper commands, events and timers, then test and release your own project.

  1. 31 Your First Plugin 150–180 minutes
  2. 32 Add Server Commands 100–120 minutes
  3. 33 The Block Event Detective 100–120 minutes
  4. 34 Data for Every Player 100–120 minutes
  5. 35 Schedule Tasks 100–120 minutes
  6. 36 Let Server Owners Configure It 110–130 minutes
  7. 37 Create Custom Items 100–120 minutes
  8. 38 Project: The Ore Sprint 150–180 minutes
  9. 39 The Server Emergency Room 110–130 minutes
  10. 40 Release Your Block Legend 120–150 minutes