Instead of having to target a block each time we rebuild the library like we did with the Temple Dungeon, we are going to define a location where it builds every time.
You may want to use
/js box(blocks.air, 30, 20, 30) to clear out some space.
With the drone, you need to know two things:
- where it is (X, Y, Z)
- which way it is facing (yaw).
Yaw means which way you are facing, if you look from left to right. It is also the North, South, East, and West in the game.
The drone only has 4 possibilities, so we will always give it either 0, 90, -90, or 180.
Pitch refers to the angle up and down. This doesn't affect the drone, so we will always give a pitch of *0
This challenge is optional, but if you want to see out, add some windows!
That's it for the outside of the library!
In the next lesson, we will learn how to add our own custom methods to the Drone, and use those to build out the inside of the library.