📋 Setup Guide
Getting Your Tools Ready
What You Need
Different phases require different tools. Here's what you need for each:
Phase 1: Command Blocks
- ✅ Minecraft Bedrock Edition
- ✅ A world with cheats enabled
- ✅ That's it!
Phase 2 & 3: MakeCode & JavaScript
- ✅ Windows 10/11 PC
- ✅ Minecraft Bedrock Edition (Windows 10 version)
- ✅ Code Connection software
- ✅ Internet connection (for MakeCode website)
Setting Up for Phase 1
Step 1: Enable Cheats in Minecraft
Command blocks only work when cheats are enabled.
For a New World:
- Open Minecraft Bedrock Edition
- Click "Play" → "Create New" → "Create New World"
- Scroll down to "Game" section
- Toggle "Activate Cheats" to ON
- Set "Default Game Mode" to Creative (recommended for learning)
- Toggle "Show Coordinates" to ON (very helpful!)
- Click "Create" to create the world
For an Existing World:
- Open the world
- Press Escape (or pause button)
- Go to Settings → Game
- Toggle "Activate Cheats" to ON
- Toggle "Show Coordinates" to ON
⚠️ Note: Enabling cheats will disable achievements for that world. That's why we recommend creating a separate "Coding Practice" world!
Step 2: Get Your First Command Block
- In your world, press T to open chat
- Type:
/give @s command_block
- Press Enter
- The command block appears in your inventory!
Setting Up for Phase 2 & 3
⚠️ Important Update (2025): Code Connection was discontinued by Microsoft in December 2023. We now have better, easier options! Choose the method that works best for you below.
Choose Your Setup Method
🎓 Method 1: Minecraft Education Edition (RECOMMENDED)
Best for: Easy setup, built-in coding, works great!
What You Need:
- Windows 10/11, Mac, iPad, or Chromebook
- Free Minecraft Education Edition account
Setup Steps:
- Go to education.minecraft.net/get-started
- Click "Get Started" and create a free account (use any email)
- Download Minecraft Education Edition
- Install and open Minecraft Education Edition
- Create a new world with cheats enabled
- Press C key or type /code to open Code Builder
- Select "MakeCode" from the options
- Start coding!
✅ Easiest Option! Code Builder is built right into the game - no external apps needed!
🔧 Method 2: MakeCode Web Editor (Alternative)
Best for: If you already have regular Bedrock Edition and want to keep using it
What You Need:
- Minecraft Bedrock Edition (regular version)
- Web browser
Setup Steps:
- Open Minecraft Bedrock Edition
- Create a new world with cheats enabled
- In your web browser, go to minecraft.makecode.com
- Click "New Project"
- Code in the web browser
- Export as a behavior pack when done
- Import the behavior pack into Minecraft
💡 Note: This method requires exporting/importing, so it's a bit less convenient than Education Edition, but it still works great!
🛠️ Method 3: CodeConnectFix (Advanced)
Best for: Advanced users who want the old Code Connection experience
There's a community-maintained tool called CodeConnectFix that makes Code Connection work with newer Minecraft versions. This is more technical and requires following GitHub instructions.
⚠️ Advanced: This method is more complex. We recommend Method 1 (Education Edition) for beginners!
Our Recommendation
👍 Use Minecraft Education Edition! It's free, easy to set up, and has Code Builder built right in. It works exactly the same as regular Minecraft but with better coding tools!
Head to the
Phase 2 Tutorial once you're set up!
Troubleshooting
Problem: Code Connection won't connect to Minecraft
Solutions to try:
- Make sure cheats are enabled in your Minecraft world
- Close Code Connection and Minecraft, then restart both
- Try typing the connect command again
- Make sure you're using Bedrock Edition, not Java Edition
- Check that no firewall is blocking Code Connection
- Try a different port:
/connect localhost:8001 or /connect localhost:8002
Problem: MakeCode won't open or shows errors
Solutions to try:
- Check your internet connection
- Try a different web browser (Chrome, Edge, or Firefox work best)
- Clear your browser cache
- Disable browser extensions that might interfere
- Try going directly to minecraft.makecode.com
Problem: Code runs in MakeCode but nothing happens in Minecraft
Solutions to try:
- Check that Code Connection shows "Connected"
- Make sure you're looking at Minecraft - sometimes the code works but you don't notice!
- Try a simple test: drag "say hello" block and run it - you should see a chat message
- Disconnect and reconnect (close Code Connection and start fresh)
- Restart Minecraft
Problem: Command blocks not working
Solutions to try:
- Double-check that cheats are enabled
- Make sure the command block is set to the right type (Impulse, Chain, Repeat)
- Check that "Needs Redstone" is set correctly
- Verify the command is typed correctly (no typos!)
- Enable "Command Block Output" in settings to see error messages
- Test the command in chat first (press T) before putting it in a command block
Still Having Problems?
PC Requirements
Minimum Specs for MakeCode:
- OS: Windows 10 or Windows 11
- RAM: 4GB (8GB recommended)
- Storage: 2GB free space
- Internet: Required for MakeCode website
- Browser: Modern browser (Chrome, Edge, Firefox)
💡 Good News! If your PC can run Minecraft Bedrock Edition, it can almost certainly run Code Connection and MakeCode. They're very lightweight!
Optional: Visual Studio Code (Advanced)
For Phase 3, if you want to use a professional code editor instead of the MakeCode website:
Install Visual Studio Code
- Go to code.visualstudio.com
- Click "Download for Windows"
- Run the installer
- Follow the installation wizard
Install Minecraft Extensions
- Open Visual Studio Code
- Click the Extensions icon (or press Ctrl+Shift+X)
- Search for "Minecraft Bedrock Edition Debugger"
- Click "Install"
💡 Don't worry about this for now! Start with MakeCode in your browser. Once you're comfortable with JavaScript, you can explore VS Code later.
Creating a Dedicated Coding World
We recommend creating a separate world just for coding practice. Here's the ideal setup:
Recommended World Settings:
- Game Mode: Creative (so you can fly and have unlimited blocks)
- Difficulty: Peaceful (no hostile mobs to interrupt you)
- Activate Cheats: ON
- Show Coordinates: ON
- World Type: Flat (makes building and testing easier)
- Random Seed: Leave blank (random is fine)
Setting Up Your Coding Area:
- Create a large flat area for testing
- Build a "Command Block Control Room" where you keep your command block creations
- Mark coordinates with signs for important locations
- Keep different projects in different areas
Quick Reference: Connection Steps
Once everything is installed, here's the quick process to start coding:
Every Time You Want to Code:
- Launch Code Connection
- Open Minecraft Bedrock Edition
- Load your coding world
- Press T and type
/connect localhost:8000
- Click "MakeCode" in Code Connection
- Start coding!
🎉 You're all set! Now head to the tutorials and start creating amazing things!
Start Phase 1 →
Start Phase 2 →
← Back to Home