SlideShare a Scribd company logo
Task 1 is testing your file handling
& typing skills on RaspPi.
Step1/ open IDLE.

Task 2 is about Looping, Sleeping &
Moving the player with Python.
Step1/ Create a new python script

Step2/ Try to copy the code without
making any mistakes.

Step2/ Save it in

Step3/ Save it in

/home/pi/mcpi/api/python/mcpi

or change your old one!

/home/pi/mcpi/api/python/mcpi
as task1.py
Step4/ Go to

/home/pi/mcpi/

as task2.py
Step3/ Type in the code so that the
script repeatedly -

Waits for a bit.
& start MC

Step5/ Build a house like normal
Step6/ When you are ready for a
challenge—run the game (F5)

THEN
Teleports You!
Step4/ Press F5 & return to MC to
play with it.
Task 3 is practising your looping &
introducing 3D cords, vars & if.

Task 4 is about using the minecraft
chat window to show python vars.

Step1/ copy the code.

Step1/ copy the code.

Step2/ Test the script by digging.

Step2/ Test the script by moving
around on minecraft.

Step3/ How deep do u have 2 dig?
Change it.
Step4/ How high RU teleported?
Change it.
Step5/ Try to create a Wormhole.
Step6/ Attempt the extension task.
Tip: change xyz.y
to xyz.x
Find the xyz of your
minecraft home.

Step3/ What are all the numbers?
(Ext—Can you “format” them?)
Step4/ remember the if statement?
if xyz.y>some_number:

Step5/ Use the postToChat method
to send a funny message.
Tip: If height is greater than
50 then

say “Ha ha”
Task 5 builds things next to where
the player is currently standing

Task 6 introduces us to “for” loops.

Step1/ copy the code.

Step1/ copy the code.

Step2/ it may be easier to
understand the code if you press
enter after each comma.

Step2/ Make the Tower taller then
shorter.

Step3/ setBlock needs 2 things-

Step3/ Use a “nested” for loop to
build a wall.

An xyz position to build at

&
A type of block to build.

Ext—Make the tower multicoloured

Tip:

for column in range(0,10):
for row in range(0,10):
Build(row,column,10,WOOL)

Change where the blocks appear.

Change the colour of the blocks.

Ext—Build a Rainbow (hard!)
Task 7 gets you building out
of different materials

Task 8 gets minecraft talking to
python & python talking back

Step1/ Read the code.

Step1/ Read the code but wait!

Step2/ Try to explain to the
person next to you what the
code does.

Step2/ Do you understand what
the first two lines are doing?

Step3/ What is “red” doing?
Change this variable name as
you type the code in.

Step4/ What is countUp
doing?

Type them up without looking at
the sheet.
Step3/ Why does the code say y-1
How could we change it to find
out which block is in front of us?

Change this var to countAlong

Step4/ What does the + do in line
5?
Change it to comma.

Step5/

What does the str do?

Change the Torch to a Train.
Try to add wheels, windows…

Try it without str.
Step5/ Make sure you try the EXT

More Related Content

Similar to Learning Python through Minecraft on the Raspberry Pi - Worksheets

Uccn1003 -may10_-_lab_04_-_intro_to_layer-1_network_devices-updated_30_june2...
Uccn1003  -may10_-_lab_04_-_intro_to_layer-1_network_devices-updated_30_june2...Uccn1003  -may10_-_lab_04_-_intro_to_layer-1_network_devices-updated_30_june2...
Uccn1003 -may10_-_lab_04_-_intro_to_layer-1_network_devices-updated_30_june2...Shu Shin
 
Mastering Python lesson 3a
Mastering Python lesson 3aMastering Python lesson 3a
Mastering Python lesson 3a
Ruth Marvin
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to pythonmckennadglyn
 
Python Course Basic
Python Course BasicPython Course Basic
Python Course Basic
Naiyan Noor
 
Hack Rio/OS
Hack Rio/OSHack Rio/OS
Hack Rio/OS
Kishore Neelamegam
 
Test
TestTest
Coding in Disaster Relief - Worksheet (Advanced)
Coding in Disaster Relief - Worksheet (Advanced)Coding in Disaster Relief - Worksheet (Advanced)
Coding in Disaster Relief - Worksheet (Advanced)Charling Li
 
Bugs from Outer Space | while42 SF #6
Bugs from Outer Space | while42 SF #6Bugs from Outer Space | while42 SF #6
Bugs from Outer Space | while42 SF #6
While42
 
ElixirConf 2017 - Writing an Editor in Elixir - Ian Duggan
ElixirConf 2017 - Writing an Editor in Elixir - Ian DugganElixirConf 2017 - Writing an Editor in Elixir - Ian Duggan
ElixirConf 2017 - Writing an Editor in Elixir - Ian Duggan
ijcd
 
Killer Bugs From Outer Space
Killer Bugs From Outer SpaceKiller Bugs From Outer Space
Killer Bugs From Outer Space
Jérôme Petazzoni
 
Smart DoorBell - Make your door smart with Raspberry Pi!
Smart DoorBell - Make your door smart with Raspberry Pi!Smart DoorBell - Make your door smart with Raspberry Pi!
Smart DoorBell - Make your door smart with Raspberry Pi!
Mattia Brunetti
 
Python and Pytorch tutorial and walkthrough
Python and Pytorch tutorial and walkthroughPython and Pytorch tutorial and walkthrough
Python and Pytorch tutorial and walkthrough
gabriellekuruvilla
 
ForLoops.pptx
ForLoops.pptxForLoops.pptx
ForLoops.pptx
RabiyaZhexembayeva
 
Archeology for Entertainment, or Checking Microsoft Word 1.1a with PVS-Studio
Archeology for Entertainment, or Checking Microsoft Word 1.1a with PVS-StudioArcheology for Entertainment, or Checking Microsoft Word 1.1a with PVS-Studio
Archeology for Entertainment, or Checking Microsoft Word 1.1a with PVS-Studio
Andrey Karpov
 
writing self-modifying code and utilizing advanced assembly techniques
writing self-modifying code and utilizing advanced assembly techniqueswriting self-modifying code and utilizing advanced assembly techniques
writing self-modifying code and utilizing advanced assembly techniques
Russell Sanford
 
week1.ppt
week1.pptweek1.ppt
week1.ppt
Usman Ahmed
 
Rubykin
Rubykin Rubykin
Rubykin
Trần Thiện
 
Multithread Your Application
Multithread Your ApplicationMultithread Your Application
Multithread Your Application
Andy Su
 
Exploring the Internet of Things Using Ruby
Exploring the Internet of Things Using RubyExploring the Internet of Things Using Ruby
Exploring the Internet of Things Using Ruby
Mike Hagedorn
 
Reversing Google Protobuf protocol
Reversing Google Protobuf protocolReversing Google Protobuf protocol
Reversing Google Protobuf protocol
n|u - The Open Security Community
 

Similar to Learning Python through Minecraft on the Raspberry Pi - Worksheets (20)

Uccn1003 -may10_-_lab_04_-_intro_to_layer-1_network_devices-updated_30_june2...
Uccn1003  -may10_-_lab_04_-_intro_to_layer-1_network_devices-updated_30_june2...Uccn1003  -may10_-_lab_04_-_intro_to_layer-1_network_devices-updated_30_june2...
Uccn1003 -may10_-_lab_04_-_intro_to_layer-1_network_devices-updated_30_june2...
 
Mastering Python lesson 3a
Mastering Python lesson 3aMastering Python lesson 3a
Mastering Python lesson 3a
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Python Course Basic
Python Course BasicPython Course Basic
Python Course Basic
 
Hack Rio/OS
Hack Rio/OSHack Rio/OS
Hack Rio/OS
 
Test
TestTest
Test
 
Coding in Disaster Relief - Worksheet (Advanced)
Coding in Disaster Relief - Worksheet (Advanced)Coding in Disaster Relief - Worksheet (Advanced)
Coding in Disaster Relief - Worksheet (Advanced)
 
Bugs from Outer Space | while42 SF #6
Bugs from Outer Space | while42 SF #6Bugs from Outer Space | while42 SF #6
Bugs from Outer Space | while42 SF #6
 
ElixirConf 2017 - Writing an Editor in Elixir - Ian Duggan
ElixirConf 2017 - Writing an Editor in Elixir - Ian DugganElixirConf 2017 - Writing an Editor in Elixir - Ian Duggan
ElixirConf 2017 - Writing an Editor in Elixir - Ian Duggan
 
Killer Bugs From Outer Space
Killer Bugs From Outer SpaceKiller Bugs From Outer Space
Killer Bugs From Outer Space
 
Smart DoorBell - Make your door smart with Raspberry Pi!
Smart DoorBell - Make your door smart with Raspberry Pi!Smart DoorBell - Make your door smart with Raspberry Pi!
Smart DoorBell - Make your door smart with Raspberry Pi!
 
Python and Pytorch tutorial and walkthrough
Python and Pytorch tutorial and walkthroughPython and Pytorch tutorial and walkthrough
Python and Pytorch tutorial and walkthrough
 
ForLoops.pptx
ForLoops.pptxForLoops.pptx
ForLoops.pptx
 
Archeology for Entertainment, or Checking Microsoft Word 1.1a with PVS-Studio
Archeology for Entertainment, or Checking Microsoft Word 1.1a with PVS-StudioArcheology for Entertainment, or Checking Microsoft Word 1.1a with PVS-Studio
Archeology for Entertainment, or Checking Microsoft Word 1.1a with PVS-Studio
 
writing self-modifying code and utilizing advanced assembly techniques
writing self-modifying code and utilizing advanced assembly techniqueswriting self-modifying code and utilizing advanced assembly techniques
writing self-modifying code and utilizing advanced assembly techniques
 
week1.ppt
week1.pptweek1.ppt
week1.ppt
 
Rubykin
Rubykin Rubykin
Rubykin
 
Multithread Your Application
Multithread Your ApplicationMultithread Your Application
Multithread Your Application
 
Exploring the Internet of Things Using Ruby
Exploring the Internet of Things Using RubyExploring the Internet of Things Using Ruby
Exploring the Internet of Things Using Ruby
 
Reversing Google Protobuf protocol
Reversing Google Protobuf protocolReversing Google Protobuf protocol
Reversing Google Protobuf protocol
 

More from ManchesterBudo

MCPI at Edge Hill
MCPI at Edge HillMCPI at Edge Hill
MCPI at Edge Hill
ManchesterBudo
 
Slideshare
SlideshareSlideshare
Slideshare
ManchesterBudo
 
AKS Computing Schemes of Work 201314
AKS Computing Schemes of Work 201314AKS Computing Schemes of Work 201314
AKS Computing Schemes of Work 201314
ManchesterBudo
 
Alevel Boolean Logic Questions
Alevel Boolean Logic QuestionsAlevel Boolean Logic Questions
Alevel Boolean Logic Questions
ManchesterBudo
 
Boolean addition part2a
Boolean addition part2aBoolean addition part2a
Boolean addition part2a
ManchesterBudo
 
Minecraft stepbystep
Minecraft stepbystepMinecraft stepbystep
Minecraft stepbystep
ManchesterBudo
 
Blender with blooms v2
Blender with blooms v2Blender with blooms v2
Blender with blooms v2ManchesterBudo
 

More from ManchesterBudo (8)

MCPI at Edge Hill
MCPI at Edge HillMCPI at Edge Hill
MCPI at Edge Hill
 
Slideshare
SlideshareSlideshare
Slideshare
 
AKS Computing Schemes of Work 201314
AKS Computing Schemes of Work 201314AKS Computing Schemes of Work 201314
AKS Computing Schemes of Work 201314
 
Alevel Boolean Logic Questions
Alevel Boolean Logic QuestionsAlevel Boolean Logic Questions
Alevel Boolean Logic Questions
 
Boolean addition part2a
Boolean addition part2aBoolean addition part2a
Boolean addition part2a
 
Minecraft stepbystep
Minecraft stepbystepMinecraft stepbystep
Minecraft stepbystep
 
Blender games so wb
Blender games so wbBlender games so wb
Blender games so wb
 
Blender with blooms v2
Blender with blooms v2Blender with blooms v2
Blender with blooms v2
 

Recently uploaded

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 

Recently uploaded (20)

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 

Learning Python through Minecraft on the Raspberry Pi - Worksheets

  • 1. Task 1 is testing your file handling & typing skills on RaspPi. Step1/ open IDLE. Task 2 is about Looping, Sleeping & Moving the player with Python. Step1/ Create a new python script Step2/ Try to copy the code without making any mistakes. Step2/ Save it in Step3/ Save it in /home/pi/mcpi/api/python/mcpi or change your old one! /home/pi/mcpi/api/python/mcpi as task1.py Step4/ Go to /home/pi/mcpi/ as task2.py Step3/ Type in the code so that the script repeatedly - Waits for a bit. & start MC Step5/ Build a house like normal Step6/ When you are ready for a challenge—run the game (F5) THEN Teleports You! Step4/ Press F5 & return to MC to play with it.
  • 2. Task 3 is practising your looping & introducing 3D cords, vars & if. Task 4 is about using the minecraft chat window to show python vars. Step1/ copy the code. Step1/ copy the code. Step2/ Test the script by digging. Step2/ Test the script by moving around on minecraft. Step3/ How deep do u have 2 dig? Change it. Step4/ How high RU teleported? Change it. Step5/ Try to create a Wormhole. Step6/ Attempt the extension task. Tip: change xyz.y to xyz.x Find the xyz of your minecraft home. Step3/ What are all the numbers? (Ext—Can you “format” them?) Step4/ remember the if statement? if xyz.y>some_number: Step5/ Use the postToChat method to send a funny message. Tip: If height is greater than 50 then say “Ha ha”
  • 3. Task 5 builds things next to where the player is currently standing Task 6 introduces us to “for” loops. Step1/ copy the code. Step1/ copy the code. Step2/ it may be easier to understand the code if you press enter after each comma. Step2/ Make the Tower taller then shorter. Step3/ setBlock needs 2 things- Step3/ Use a “nested” for loop to build a wall. An xyz position to build at & A type of block to build. Ext—Make the tower multicoloured Tip: for column in range(0,10): for row in range(0,10): Build(row,column,10,WOOL) Change where the blocks appear. Change the colour of the blocks. Ext—Build a Rainbow (hard!)
  • 4. Task 7 gets you building out of different materials Task 8 gets minecraft talking to python & python talking back Step1/ Read the code. Step1/ Read the code but wait! Step2/ Try to explain to the person next to you what the code does. Step2/ Do you understand what the first two lines are doing? Step3/ What is “red” doing? Change this variable name as you type the code in. Step4/ What is countUp doing? Type them up without looking at the sheet. Step3/ Why does the code say y-1 How could we change it to find out which block is in front of us? Change this var to countAlong Step4/ What does the + do in line 5? Change it to comma. Step5/ What does the str do? Change the Torch to a Train. Try to add wheels, windows… Try it without str. Step5/ Make sure you try the EXT