Содержание
- 2. LESSON A: Introduction to Coordinates
- 3. WHAT WE’LL LEARN The difference between relative coordinates and absolute coordinates in real life and Minecraft
- 4. WHY ARE COORDINATES IMPORTANT? To know the location of:
- 5. COORDINATES Tell a program where an action should take place A 3-dimensional position (X, Y, Z)
- 6. A HANDY TIP Use this to remember X, Y, Z axes
- 7. ABSOLUTE WORLD POSITION Based on distance from the world origin Minecraft world origin: (0, 0, 0)
- 8. RELATIVE PLAYER POSITION Based on the player’s current position Player’s current position is always: (~0,~0,~0) Relative
- 9. TO CALCULATE RELATIVE POSITION
- 10. IN REAL LIFE The earth’s geographical origin point, Null Island is at 0o N 0o E
- 11. LET’S DISCUSS What are the values for X, Y, Z for the world origin? Is the
- 12. CODE WITH COORDINATES Create a compass rose Use relative player positions Point to the four cardinal
- 13. LET’S DISCUSS What other ideas do you have to use positions when coding? What’s the difference
- 14. LESSON A What we learned today Why coordinates are important The difference between absolute and relative
- 15. NEXT TIME Turn our classroom into a Minecraft world More coding with coordinates to copy and
- 16. LESSON B: Coding with Coordinates
- 17. Pretend our classroom is a Minecraft world to calculate relative and absolute positions Code with relative
- 18. REVIEW COORDINATES What’s absolute world position? What’s relative player position? +Y Up -Y Down -Z North
- 19. LET’S DISCUSS Does the absolute position of an object with a permanent place change? Does the
- 20. MINECRAFT MOVING COMPANY Use on chat commands, coordinates and block operations Copy and paste entire portions
- 21. LET’S DISCUSS In Minecraft, what keyboard shortcut shows your players world position? How do you easily
- 22. LESSON B What we learned today Calculated relative and absolute positions in our “Minecraft” classroom Coded
- 23. NEXT TIME Spawn and herd sheep with code Take a short quiz
- 24. LESSON C: CODE WITH COORDINATES AND MOVING OBJECTS
- 25. WHAT WE’LL LEARN Calculate and code a four-sided pen in Minecraft to herd sheep that we
- 26. AUTO-FARMER Spawn sheep Use an on chat command to build a pen with coordinates Think of
- 27. LESSON C WHAT WE LEARNED TODAY Used coordinates to calculate and code a pen to herd
- 28. NEXT TIME Your independent project Think about how you could code with coordinates in a new
- 29. LESSON D : GET CREATIVE WITH COORDINATES
- 30. WHAT WE’LL LEARN Take what you’ve learned about coding to the next level Create your own
- 31. INDEPENDENT PROJECT Purpose: Create one or more commands that alter the landscape in some way Your
- 32. IDEAS TO CONSIDER In a set area, replace all blocks of a certain type with something
- 33. AN EXAMPLE
- 34. MINECRAFT DIARY ENTRY How did you come up with this idea? What problem are you trying
- 35. To apply our new coding skills with coordinates in original and creative ways Created your own
- 37. Скачать презентацию