Lesson · with Voxel · Engineer rank
Variable Vision
Give your build a dial. Store the tower height in a variable, then change one number to change the whole build.
You need
- Minecraft Education
- A new flat creative world
- The printable mission sheet (optional)
Steps
Make a variable
In Variables click 'Make a Variable' and name it height. Add 'set height to 10' at the top of a new command called tower.
Use it in a loop
Add 'repeat height times' and inside it 'agent place down', then 'agent move up by 1'.
Turn the dial
Run tower. Then change 10 to 20 and run it again somewhere else. Same code, taller tower.
Build task
Sky Scaffold
Build a tower at least 20 blocks tall with a 3 × 3 platform on top. Use a variable for the height.
Finish line: Changing only the height number changes the tower height.