At Microsoft's May 2 event that focused on education, the company announced Code Builder for Minecraft: Education Edition. Offering a beta that day, Microsoft said that it "allows educators and students to explore, create, and play in an immersive Minecraft world – all by writing code."
Almost three weeks later, Microsoft today announced that the extension is generally available as the Code Builder Update, which also includes new in-game features and improvements to Classroom Mode. Those improvements include "new controls for weather, destructive items like lava & TNT, mobs, muting chat and immutable world."
Command Blocks will allow players to "attach Minecraft commands to activated blocks within the game", and with them, you'll be able to create "teleport stations, give items, change the weather, and more." The Worldbuilder feature was introduced with today's update as well.
While Microsoft provided the above ten examples that teachers can try with students, it offers a website with a variety of lesson plans too. You'll also be able to find other resources, such as support and training.