Page 37 - Touchcode_C8_Flipbook
P. 37

Step 12: From the ‘animal’ drop-down select ‘pig’ and ‘panda’;
                            after that change the coordinates to 0, 10, 0 of both

                            blocks.

                  Step 13: Drop the ‘spawn’ block to ‘on start’ block and place
                            it in a ‘repeat’ block.

















                  Step 14: From variables, select ‘change animal by 1’ block,
                            and then drag-drop the block to ‘on start’ block
                            and place it below the ‘while’ block.


                  Step 15: Click  on  the  ‘Start’           button,  present  on

                            the bottom right side of the screen, to view the
                            output:

























                     Well done, you have learnt to make pig and pandas rain in block coding!




                                                                                           Coding in Minecraft   35
   32   33   34   35   36   37   38   39   40   41   42