teachwithict
  • Home
  • Teaching & Learning
    • Tools for Teachers >
      • Web 2.0 >
        • Top 10 Web 2.0 Tools
        • Classroom Response Tools
      • Quiz Tools
      • Classroom Management Tools
      • Software >
        • Media Conversion Tools
        • Application Software
      • Multimedia >
        • Free Music
    • Digital Leaders >
      • Digital Leaders Blog >
        • DL Archive
      • DL Tips
      • Quotes
      • Links
    • BYOD
    • Flipped Learning >
      • Flipped Classroom vs. Blended Classroom
    • Gamification >
      • Gamification vs. Game Based Learning vs. Game Design
    • Game Based Learning >
      • Minecraft >
        • Minecraft in Education
        • Minecraft Lesson Ideas
        • Minecraft Literacy
        • Minecraft Coding Tutorials >
          • Minecraft Code Builder Setup
          • Minecraft Code: Walking on Air
          • Minecraft Code: Hello World
          • Minecraft Code: Functions
          • Minecraft Code: Rainbow
          • Minecraft Code: Skyscraper
          • Minecraft Pixel Art
    • The magic of >
      • The magic of Computing
      • The magic of Maths
      • The magic of Science
      • The magic of Literacy
    • Breakout Edu
    • PLN Challenge >
      • Covering your backside
      • Twitter Challenge >
        • Challenge 1
        • Challenge 2
        • Challenge 3
        • Tips for staying safe on Twitter
        • Tips for hosting Edu Twitter Chats
        • Tips for taking part in Twitter chats
        • How to storify a chat
        • How to schedule Tweets
        • Twitter Lists
        • It's all about the hashtag! Essential chats for educators
      • Facebook Challenge >
        • Challenge 4
        • Challenge 5
        • Challenge 6
        • Tips for staying safe on Facebook
      • Google Challenge >
        • Challenge 7
        • Challenge 8
        • Challenge 9
      • Pinterest Challenge >
        • Challenge 10
        • Challenge 11
        • Challenge 12
        • Tips for using Pinterest
      • Blog Challenge >
        • Challenge 13
        • Challenge 14
        • Challenge 15
        • How to create a classroom blog
      • Staffrm Challenge >
        • Challenge 16
        • Challenge 17
        • Challenge 18
      • Skype Challenge >
        • Challenge 19
        • Challenge 20
        • Challenge 21
      • Edmodo Challenge >
        • Challenge 22
        • Challenge 23
        • Challenge 24
      • TeachMeet Challenge >
        • Challenge 25
        • Challenge 26
        • Challenge 27
      • In-school challenge >
        • Challenge 28
        • Challenge 29
        • Challenge 30
      • 30 ways to grow your PLN
    • T&L Blog
  • Computing
    • Computing Blog >
      • GCSE Computer Science
      • General
    • CPD >
      • Blocks to Code
      • Tutorials >
        • How to embed Flash into PowerPoint
        • How to embed YouTube videos in to PowerPoint
        • How to create a wiki
        • How to create a classroom blog
    • Teaching Computer Science >
      • Schemes of Work
      • Programming Resources
      • Theory
      • Posters
    • Theory Lessons >
      • Theory Tests
      • Computer Hardware >
        • Input / Output
        • CPU
        • LMC
        • Storage Devices
        • Memory (RAM / ROM)
      • Binary Lessons >
        • Units of Data
        • Binary Representation
        • Binary Representation of Images
        • Binary Representation of Characters
        • Binary Representation of Sound
        • Binary Representation of Instructions
        • Binary Addition
        • Hexadecimal
      • Software >
        • Operating System
        • Types of Software
        • Utility Software
      • Programming >
        • Flowcharts
    • Game Design
    • App Creation
    • Digital Literacy >
      • Social Media (Good or Bad thing?)
      • Cyberbullying
      • Staying Safe Online
    • ICT Strand >
      • Spreadsheet Modelling
      • Superhero Movie Trailer
      • PowerPoint Task
      • Paint 3D Tutorial
    • Programming Lessons >
      • Microbit >
        • Magic 8 Ball
        • Harry Potter Sorting Hat
        • Music
        • Music (Festive)
        • Quick Start Guide
        • Microbit Simulator
      • TouchDevelop >
        • TouchDevelop Challenge
        • Scheme of Work
        • TouchDevelop Lessons >
          • 8 bit challenge
          • Turing Test
          • Turtle Power
          • 8 Ball
          • Under the hood
        • Tutorials
      • Raspberry Pi >
        • Networking the Pi
        • Minecraft Pi
        • Harry Potter Sorting Hat >
          • Harry Potter Sorting Hat (GPIO)
        • Raspberry Pi LTSP (Networked Classroom)
        • Astro Pi
      • Scratch
      • Python >
        • Chatbot
        • Coding Golf
        • Magic 8 ball
        • Python Mad Libs
        • Shakespearean Insult Generator >
          • Shakespearean Insult Generator Part 2
        • Sorting Hat
      • Little Man Computer
      • Hour of Code >
        • HoC 8-Bit Challenge
  • 21 Things
  • Microbit
    • Physical Computing >
      • micro:bit LEDs
  • About
  • Blog
  • Home
  • Teaching & Learning
    • Tools for Teachers >
      • Web 2.0 >
        • Top 10 Web 2.0 Tools
        • Classroom Response Tools
      • Quiz Tools
      • Classroom Management Tools
      • Software >
        • Media Conversion Tools
        • Application Software
      • Multimedia >
        • Free Music
    • Digital Leaders >
      • Digital Leaders Blog >
        • DL Archive
      • DL Tips
      • Quotes
      • Links
    • BYOD
    • Flipped Learning >
      • Flipped Classroom vs. Blended Classroom
    • Gamification >
      • Gamification vs. Game Based Learning vs. Game Design
    • Game Based Learning >
      • Minecraft >
        • Minecraft in Education
        • Minecraft Lesson Ideas
        • Minecraft Literacy
        • Minecraft Coding Tutorials >
          • Minecraft Code Builder Setup
          • Minecraft Code: Walking on Air
          • Minecraft Code: Hello World
          • Minecraft Code: Functions
          • Minecraft Code: Rainbow
          • Minecraft Code: Skyscraper
          • Minecraft Pixel Art
    • The magic of >
      • The magic of Computing
      • The magic of Maths
      • The magic of Science
      • The magic of Literacy
    • Breakout Edu
    • PLN Challenge >
      • Covering your backside
      • Twitter Challenge >
        • Challenge 1
        • Challenge 2
        • Challenge 3
        • Tips for staying safe on Twitter
        • Tips for hosting Edu Twitter Chats
        • Tips for taking part in Twitter chats
        • How to storify a chat
        • How to schedule Tweets
        • Twitter Lists
        • It's all about the hashtag! Essential chats for educators
      • Facebook Challenge >
        • Challenge 4
        • Challenge 5
        • Challenge 6
        • Tips for staying safe on Facebook
      • Google Challenge >
        • Challenge 7
        • Challenge 8
        • Challenge 9
      • Pinterest Challenge >
        • Challenge 10
        • Challenge 11
        • Challenge 12
        • Tips for using Pinterest
      • Blog Challenge >
        • Challenge 13
        • Challenge 14
        • Challenge 15
        • How to create a classroom blog
      • Staffrm Challenge >
        • Challenge 16
        • Challenge 17
        • Challenge 18
      • Skype Challenge >
        • Challenge 19
        • Challenge 20
        • Challenge 21
      • Edmodo Challenge >
        • Challenge 22
        • Challenge 23
        • Challenge 24
      • TeachMeet Challenge >
        • Challenge 25
        • Challenge 26
        • Challenge 27
      • In-school challenge >
        • Challenge 28
        • Challenge 29
        • Challenge 30
      • 30 ways to grow your PLN
    • T&L Blog
  • Computing
    • Computing Blog >
      • GCSE Computer Science
      • General
    • CPD >
      • Blocks to Code
      • Tutorials >
        • How to embed Flash into PowerPoint
        • How to embed YouTube videos in to PowerPoint
        • How to create a wiki
        • How to create a classroom blog
    • Teaching Computer Science >
      • Schemes of Work
      • Programming Resources
      • Theory
      • Posters
    • Theory Lessons >
      • Theory Tests
      • Computer Hardware >
        • Input / Output
        • CPU
        • LMC
        • Storage Devices
        • Memory (RAM / ROM)
      • Binary Lessons >
        • Units of Data
        • Binary Representation
        • Binary Representation of Images
        • Binary Representation of Characters
        • Binary Representation of Sound
        • Binary Representation of Instructions
        • Binary Addition
        • Hexadecimal
      • Software >
        • Operating System
        • Types of Software
        • Utility Software
      • Programming >
        • Flowcharts
    • Game Design
    • App Creation
    • Digital Literacy >
      • Social Media (Good or Bad thing?)
      • Cyberbullying
      • Staying Safe Online
    • ICT Strand >
      • Spreadsheet Modelling
      • Superhero Movie Trailer
      • PowerPoint Task
      • Paint 3D Tutorial
    • Programming Lessons >
      • Microbit >
        • Magic 8 Ball
        • Harry Potter Sorting Hat
        • Music
        • Music (Festive)
        • Quick Start Guide
        • Microbit Simulator
      • TouchDevelop >
        • TouchDevelop Challenge
        • Scheme of Work
        • TouchDevelop Lessons >
          • 8 bit challenge
          • Turing Test
          • Turtle Power
          • 8 Ball
          • Under the hood
        • Tutorials
      • Raspberry Pi >
        • Networking the Pi
        • Minecraft Pi
        • Harry Potter Sorting Hat >
          • Harry Potter Sorting Hat (GPIO)
        • Raspberry Pi LTSP (Networked Classroom)
        • Astro Pi
      • Scratch
      • Python >
        • Chatbot
        • Coding Golf
        • Magic 8 ball
        • Python Mad Libs
        • Shakespearean Insult Generator >
          • Shakespearean Insult Generator Part 2
        • Sorting Hat
      • Little Man Computer
      • Hour of Code >
        • HoC 8-Bit Challenge
  • 21 Things
  • Microbit
    • Physical Computing >
      • micro:bit LEDs
  • About
  • Blog
Search by typing & pressing enter

YOUR CART

Picture

Minecraft coding tutorials: Pixel Art

​In this tutorial, you will learn how to create Pixel Art in Minecraft using Microsoft MakeCode.

Part 1

Picture
​Creeper template.
1. Launch the Microsoft 'MakeCode' editor and create a new project.

2. Select the 'PLAYER' tab (A). Click and drag the 'on chat command' block (B) onto a blank canvas and change the text option to 'creeper' (see image below).
Picture
Picture
3. Click on 'ADVANCED' (C). Select the 'BUILDER' tab (D). Click and drag the 'builder teleport to' block (E) and attach it to the 'creeper' block (see image below).
Picture
Picture
​4. Select the 'PLAYER' tab (F). Click and drag the 'player world position' block (G) and attach it to the 'builder teleport to' coordinates (see image below).
Picture
Picture
5. Next, let's move the builder forward.

​​Select the 'BUILDER' tab (I). Click and drag the 'builder move' block (J) and attach it to the 'builder teleport to' block. Change the forward value to '10' (see image below).
Picture
Picture
6. Next, let's set the builder's origin. This will allow us to teleport the builder back to the starting position (origin) after printing each line of blocks.
Picture
Picture
​​7. Next, let's create a new variable to store each line number.

​
Select the 'VARIABLE' tab (M). Click on 'Make a Variable'. Call the new variable 'lineNumber' and click 'OK'.
Picture
Picture
8. ​Select the 'VARIABLE' tab. Click and drag the 'lineNumber' block (O) and attach it to the 'builder set origin' block. Change the lineNumber '1' (see image below).​
Picture
Picture
9. Next, let's add our first line of pixels (blocks). We will use an array to store each line of blocks.

​​​Click on 'ADVANCED' (P). Select the 'ARRAYS' tab (Q). Click and drag the 'set list to' block (R) and attach it to the end of your code. 

​Add the values inside your array for your first line of pixels.
Picture
Picture

Picture

Part 2​​10. Next, let's create a function to print our blocks (pixel art).

​​​​Click on 'ADVANCED' (S). Select the 'FUNCTIONS' tab (T). Click on 'Make a Function...' block (U). 

Name the new function 'pixelArt' and click 'Done'
Picture
Picture
​​11. Next, let's add a for loop to place each block in our array.

Click on the 'Loops' tab (V). Select the 'for index from 0 to 4' (W) block and drag it inside your function. 

Our array contains 8 slots but, because our for loop starts at 0 instead of 1,
 ​​we need to set our for loop to 'from 0 to 7'. (see below)
Picture
Picture
12. Next, let's place our block builder.

Select the 'ADVANCED' tab
. Click on 'BUILDER' (X). Select and drag the 'builder move forward by (1)' block and place it inside the 'for loop' block.

Change 'forward' to 'right' (see image below).
 
Picture
Picture
13. ​​​Select the 'ADVANCED' tab and click on 'BUILDER'. Click and drag the 'place' block (Z) and place it inside the for loop.
Picture
Picture
14. Select the 'BLOCKS' tab. Click and drag the 'with data' block and place it inside the place block (see image below). ​
Picture
Picture
17. Next, change the block type to 'Wool' (see image below).
Picture
16. Next, lets use our array to tell the place block which colour wool to place.

Click on 'ADVANCED' (2) and select 'ARRAYS' (3). Select the 'list get value at' block (4) and place it inside the data value (see image below).
Picture
Picture
17. Click on 'VARIABLES'. Select the 'index' block (3) and place it inside the 'get value at (0)' placeholder (see image below).
Picture
Picture
18. Next, lets tell the builder to go back to the start at the end of each line.

Click on 'ADVANCED' and select 'BUILDER'. Select the 'builder teleport to origin' block (6) and place it below the for loop (see image below).
Picture
Picture
​19. Next, let's tell the builder to go to the next line.

Click on 'ADVANCED' and select 'BUILDER'. Select the 'builder move forward by' block (6) and place it at the end of your code.

Change forward to 'up' (see image below).
Picture
Picture
20. Click on 'VARIABLES. Select 'lineNumber' (8) and place it inside the builder move up block (see image below).
Picture
Picture
21. Finally, let's add the line of code to call our new function.
​
​Click on the 'ADVANCED' tab (9) and select 'FUNCTIONS' (10). Select the 'call pixelArt' block and place it beneath the array for line 1.
Picture
Your code should look something like this:
Picture

Part 321. Finish coding your Pixel Art Creeper by adding the following lines:
Picture

​Your finished code should look like this:
Picture

22. Open Minecraft and click on 't' top open the chat window.

23. Type in 'creeper' in the command line (followed by the Enter key) to run your code.
Picture
Picture
​Creeper Pixel Art

​Resources

minecraft-creeper.mkcd
File Size: 1 kb
File Type: mkcd
Download File

Creeper Pixel Art source code.

Challenge 2

Try improving your Creeper Pixel Art by adding more colours. For example:
Picture

Challenge 2

Have a go at coding your own Pixel Art work. Here's an example of what is possible:
Pikachu Pixel Art created entirely out of code.

You may also be interested in:

​You may also be interested in:​
  • Using Minecraft in Education
  • Minecraft in Education - 30 lesson ideas
  • Minecraft coding tutorials
​​
This work is not affiliated in any way with Mojang AB. Minecraft is a trademark of Mojang AB. The Minecraft Name, the Minecraft Brand and the Minecraft Assets are all property of Mojang AB or their respectful owner. This work adheres to the terms set out by Mojang AB at https://www.minecraft.net/terms
Powered by Create your own unique website with customizable templates.