Yet if you followed a coding tutorial written even a year ago, you might hit a frustrating wall the moment you open the editor. Across late 2025 and early 2026, Microsoft and Mojang substantially reshaped how in-game coding works inside Minecraft Education—retiring legacy editors, changing how code executes, and expanding AI-literacy lessons. Whether you are a student, a parent setting up a Windows 11 laptop, an IT administrator managing school tenants, or a hobbyist developer, here is the complete, up-to-date guide to coding in Minecraft.
Inside Code Builder: How MakeCode and the Agent Work
All native, in-game coding lives inside Code Builder, a built-in development window exclusive to Minecraft Education (which runs on Windows—where the desktop .exe client switched to 64-bit by default in mid-2025—alongside macOS, Chromebook, and iPad). Inside Code Builder, you write scripts using Microsoft MakeCode, then watch an in-world robot companion called the Agent execute your instructions block by block.
Prerequisites and First-Time Setup
Before opening the editor, there is one critical world-setting toggle that trips up newcomers, as documented in Microsoft MakeCode's official setup instructions:
- Launch and sign in (or pick a demo): Open Minecraft Education and sign in with a licensed account, or launch an open demo lesson if you are just testing the waters (more on demo limits below).
- Create a world with cheats enabled: Click Play, choose Create New (or Create New World), and open the world settings. Set Activate Cheats to ON—MakeCode requires cheats to be active to unlock all coding features.
- Open Code Builder: Once inside your world, press
Con a Windows or Mac keyboard to summon Code Builder. On touch-screen devices, tap the Agent icon positioned at the top center of the screen next to the pause and chat buttons. (Note: Older guides sometimes tell you to type/codein chat, but Microsoft Education support confirms that/codeno longer works.) - Choose Microsoft MakeCode: Select Microsoft MakeCode and click New Project (or pick a starter tutorial). Within MakeCode, you can start with Blocks and switch directly to JavaScript or Python inside the same workspace.
Running Your First Script (and the 2025 Execution Change)
In a typical starter project, you trigger code with an in-game chat command—for instance, dragging out an on chat command block, renaming it something short like tp, and placing movement or building instructions inside it.
Here is where recent updates catch returning users off guard. Historically, MakeCode automatically ran your project whenever you clicked back into the game or closed Code Builder. Beginning with the October 2025 MakeCode update (paired with Minecraft Education 1.21.93), auto-run on close was removed to prevent accidental script triggers in classrooms. Today, you must explicitly click the green Play button inside MakeCode before returning to your world. From there, press T to open the in-game chat, type your command name (such as tp), and press Enter.
What the Agent Can Do—and Where Permissions Matter
The Agent is strictly literal: it moves, turns, breaks blocks, tills soil, and places blocks only as your code instructs. That makes it ideal for automating repetitive tasks like raising perimeter walls, building fences, or planting automated farms.
Keep three practical caveats from Minecraft Education's official support documentation in mind when your Agent refuses to cooperate:
- Inventory vs. Operator permissions: By default, the Agent can only place blocks stored in its own inventory—so either give it materials in code or load its inventory first. Actions that behave like server cheats, including placing blocks not in the Agent's inventory or spawning creatures, require Operator permissions.
- Finding or resetting your Agent: Use
/summon agentor the Agent Spawn Egg to bring the robot to your location. In commands,@ctargets your own Agent, while@vtargets all Agents (restricted to users with Worldbuilder permissions, which default tofalsefor all players). Use/remove @cto despawn your Agent cleanly. - Known quirks and data safety: Microsoft notes that the Agent's
detect up/downcheck does not work reliably on half-blocks (slabs). More importantly, always export and save your MakeCode projects; clearing your browser or client webview cache permanently deletes locally cached projects.
Core Computer Science Concepts You Will Learn
Programming the Agent maps cleanly onto an introductory computer science syllabus:
- Sequencing and Debugging: Ordering instructions precisely and diagnosing why your robot walked into a lava pit instead of building a bridge.
- Loops: Repeating build or harvest steps (for example, looping four times to construct a square tower).
- Conditionals: Letting the Agent inspect the block ahead of it and branch accordingly, or reacting to world events via MakeCode's Events extension.
- Variables: Storing reusable parameters, such as wall height or row length, so one script can scale on demand.
Section Summary: Pressing C with cheats enabled puts MakeCode's Blocks, JavaScript, and Python editors inside any Minecraft Education world—just remember to hit the Play button before testing in chat, manage your Agent's inventory and Operator permissions, and back up your .mkcd project files.
The 2025–2026 Code Builder Shake-Up: Goodbye Tynker and Python Notebooks
If you have been searching Code Builder for Tynker or Python Notebooks and wondering where they vanished, you are not losing your mind—Microsoft retired both to consolidate around MakeCode.
| Release / Milestone | Date | Version | Code Builder & Platform Impact |
|---|---|---|---|
| Chase the Clouds Update | July 22, 2025 | 1.21.91 (1.21.90.1) | Removed Tynker as a supported IDE; issued notice that Python Notebooks would leave no earlier than January 2026; introduced MakeCode file read/write support. |
| Beta / Preview Removal | October 1, 2025 | 1.21.110.1 | Removed Python Notebooks from Beta/Preview clients ahead of stable deprecation. |
| Copper, Collaborate, and Compete | February 17, 2026 | 1.21.132 | Officially deprecated/removed Python Notebooks in stable Code Builder; consolidated all Blocks, JavaScript, and Python coding into MakeCode. |
| Subsequent 2026 Updates | April – Oct 2026 | 1.21.133 → 26.33 | Added Code Builder stability fixes (1.21.133), transitioned to year-based versioning (26.30+), and expanded Dedicated Server features. |
Did Microsoft Remove Python? No—Just the Notebook IDE
A common misconception is that Python disappeared from Minecraft Education in 2026. In reality, only the standalone Python Notebooks interface was retired; Python remains a first-class language inside MakeCode alongside Blocks and JavaScript.
Still, educators and students with legacy Notebook lessons face a real migration hurdle. Saved Python Notebook projects no longer run in current builds of Minecraft Education. While Microsoft urged creators starting in mid-2025 to move Python projects over to MakeCode, there is no magic one-click converter that guarantees every old script works identically. Because the legacy Notebook environment and MakeCode Python use different underlying APIs, function signatures, and module conventions—as educators in Minecraft Education's support forums have noted when porting import statements and helper calls—you should preserve your original Notebook source code, paste it into a new MakeCode Python project, rename mismatched functions and variables, and test each routine carefully.
Why Consolidate—and What Are the Trade-offs?
From an engineering and IT administration standpoint, consolidating onto MakeCode makes obvious sense. Maintaining multiple embedded web IDEs across Windows, macOS, ChromeOS, and iOS multiplied troubleshooting headaches. Focusing on one editor allowed Microsoft's MakeCode team to ship cross-cutting improvements in late 2025 and 2026, including full Keyboard Controls for accessibility (toggled via Settings or Tab), expanded mob/event blocks, and a File Read & Write extension for Windows and Mac users (note that Chromebook and iOS devices do not support the File Read & Write extension in the default gallery).
The trade-off is real for advanced high school computer science instructors who relied on Notebook-style Python imports and step-by-step cell execution. For everyone else, having one stable editor where beginners can inspect a block structure and immediately view the equivalent Python or JavaScript code is a cleaner classroom experience.
Section Summary: Tynker left in July 2025 and Python Notebooks exited stable builds in February 2026 (v1.21.132). MakeCode now handles Blocks, JavaScript, and Python under one roof, though legacy Notebook scripts require manual porting and testing.
Free Minecraft Coding Paths: Hour of AI Demos vs. Code.org
You do not necessarily need a school IT budget to test-drive Minecraft programming. Between Microsoft's Hour of AI initiative and Code.org's web catalog, there are genuinely free entry points—provided you understand where "free demo" stops and "licensed software" begins.
Minecraft Hour of AI: The First Night and Field Agent
Building on a decade of Hour of Code, Microsoft, Minecraft Education, and Code.org evolved the annual campaign into Hour of AI. In Hour of AI: The First Night (launched in November 2025 and refreshed in October 2026), learners ages 6 to 18 use MakeCode Blocks or Python to train an AI Agent and coordinate mini-agents to recognize resources, craft tools, and construct shelter before nightfall. When the Agent forgets key survival steps, the puzzle highlights why AI systems still require human oversight.
One important clarification: the "AI helper" in The First Night—as well as in Code.org's newer Minecraft Hour of AI: Field Agent (training a farm helper with clean data) and Reed Smart: AI Detective—is part of those guided lesson scenarios. MakeCode itself does not embed an autonomous generative AI assistant inside ordinary sandbox worlds.
What "Free" Actually Covers in Minecraft Education
Games guides often summarize Minecraft Education's Hour of AI as "free with no license required." That is true for trying the demo, but Microsoft's official support policy draws sharp boundaries between its free tiers:
| Access Tier | Account Required? | Key Capabilities | Major Limitations |
|---|---|---|---|
| Demo Lessons | None ("Try a demo lesson" on Welcome screen) | Unlimited access to select Library lessons, including Hour of AI | Cannot save worlds or progress; no multiplayer or Dedicated Servers; cannot create or load custom worlds. |
| Academic Free Trial | Verified Microsoft Entra ID (M365 / Office 365 Education) | Full paid-version features, world saving, and Classroom Mode | Strictly capped at 25 logins for teachers and 10 logins for other users (logins do not reset). |
| Paid License (Academic / Commercial) | Verified organizational account | Persistent worlds, OneDrive cloud backups, custom worlds, Dedicated Servers | Requires per-user academic or commercial licensing. |
Zero-Install Browser and Tablet Coding on Code.org
If you do not want to install a multi-hundred-megabyte desktop client—or you are on a locked-down tablet or Chromebook—head straight to Code.org. Its curriculum catalog hosts free, browser-based Minecraft tutorials rated for grades 2 through 12, including Minecraft: Voyage Aquatic, Minecraft: Hero's Journey (which introduces the Agent), Minecraft Adventurer, and Minecraft Designer. All run inside modern web browsers and on tablets across dozens of languages with no local game installation required.
Section Summary: Anyone on Windows, Mac, Chromebook, or iPad can run Hour of AI inside Minecraft Education's demo mode without a license—just expect zero world saving—while Code.org delivers full browser-and-tablet coding puzzles for grades 2–12 with nothing to install.
Coding Beyond Education: Regular Windows Bedrock and Java Editions
What if you already own consumer Minecraft on your Windows 10 or Windows 11 PC and want to write real code inside it? Neither Bedrock Edition nor Java Edition includes Code Builder. Instead, both push you closer to genuine software engineering workflows:
| Platform / Edition | Primary Language | Tooling & Packaging | Best Suited For |
|---|---|---|---|
| Minecraft Education | Blocks, JavaScript, Python | In-game Code Builder (MakeCode) | Classrooms, beginners, STEM clubs, rapid Agent automation. |
| Bedrock Edition (Windows 10/11) | JavaScript (or TypeScript compiled to JS) | Script API (@minecraft/server), Behavior Packs, Visual Studio Code | Cross-platform custom add-ons, server logic, UI scripting. |
| Java Edition (PC) | Java | .jar Mods via Fabric, NeoForge, or Forge | Deep engine modifications, custom dimensions, technical modpacks. |
Bedrock Edition on Windows 10/11: The Script API and VS Code
In Minecraft: Bedrock Edition, coding revolves around the official Script API (@minecraft/server and companion modules). Rather than clicking blocks together in-game, you build a Behavior Pack containing a manifest.json file that registers a "script" module using "language": "javascript" and points to an entry file such as scripts/main.js.
On a Windows 10 or 11 PC, the standard setup pairs Visual Studio Code with Microsoft's Minecraft Bedrock Edition Debugger extension (allowing live breakpoint debugging via the in-game /script debugger command) and scaffolding tools like Minecraft Creator Tools (mctools.dev), which can also spin up TypeScript starter templates compiled with Node.js.
Java Edition: Mods and Mod Loaders
Minecraft: Java Edition takes a completely different architectural path. Because the game itself runs on Java, community developers write native Java mods packaged as .jar files and loaded through frameworks like Fabric, NeoForge, or Forge. Note that Bedrock behavior packs and Java mods are completely incompatible—a Java .jar mod will never load in Bedrock Edition, and vice versa.
As for sharing your coded creations: regular Bedrock and Java players can invite friends via Minecraft Realms or private servers, whereas Minecraft Education introduced Dedicated Servers in 2026 (v1.21.132+) alongside OneDrive world backups to support large classrooms, esports, and cross-tenant builds.
Section Summary: Consumer Minecraft drops the training wheels—Windows Bedrock creators build JavaScript/TypeScript behavior packs with VS Code and the Script API, while Java Edition tinkerers write full Java mods for Fabric, NeoForge, or Forge.
Which Minecraft Coding Path Should You Pick Today?
If you are choosing where to start this week, let your hardware, licensing, and goals decide:
- Zero setup or quick browser session: Open Code.org and launch Hero's Journey or Voyage Aquatic in any modern browser.
- Free desktop coding with an AI twist: Download Minecraft Education, click Try a demo lesson, and play Hour of AI: The First Night.
- Classroom or persistent Agent projects: Sign in with a licensed Microsoft 365 Education account, enable Activate Cheats, press
Cfor MakeCode, and remember to click Play and export your project files. - Real-world software development on Windows 11: Install Visual Studio Code, spin up a Bedrock Script API behavior pack, or dive into Fabric/NeoForge development for Java Edition.
Minecraft's coding tools have grown up considerably over the past year—and once you know which buttons changed in 2026, getting your first blocky robot to do your chores takes less time than surviving your first night.
References
- Minecraft Coding Guide: Code Builder, MakeCode and Python - games.gg games.gg · 2026-11-29T08:49:17.063000+00:00
- Minecraft Education Setup for MakeCode minecraft.makecode.com
- makecode.com makecode.com