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

  1. 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.

  2. Use it in a loop

    Add 'repeat height times' and inside it 'agent place down', then 'agent move up by 1'.

  3. 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.

Check your understanding

1. What is a variable?
2. Your tower is 10 tall and you want 25. With a height variable, what do you change?
Guest mode: your result is saved on this device only.