Beginner Coding with Blocks
Chapter
>
Level
Variables and Data
String Variables
Objective
Pick up all three items, store them in individual variables, open the chests to place each variable in their own container and close them to complete the level.
Store the 3 different harvests in a bag and put them away.
There are 3 items, a "Pumpkin", an "Eggplant" and a "Tomato". You must collect them and store them in their own bag by using variables.
Create 3 variables named: bag1, bag2, bag3 using the set variable block. Each bag must contain one of the 3 items as text. Example: set bag1 to a text block containing "Pumpkin". Do this for all 3 items in each of the 3 bags, then place the bags in each of the 3 chests.
Walk over to each X mark in front of each chest and place the bags in each chest. Do this by using the open block to open the chest, then using the place block with the get variable block to store each bag. For example, use get variable for bag1 in the place block.
After you're done placing a bag close the chest using the close block, do this process for all 3 items.