In the workshop, Subarno demonstrated the Drone object. This a great helper library that comes with ScriptCraft and makes a lot of building tasks easy. It’s explained in a fair amount of detail in The Young Person’s Guide to Programming in Minecraft and in more extensive detail in the ScriptCraft API Reference.
For example, if you want to make a block of stone that is five bricks wide, five bricks high, and five bricks deep, you’d use the following command to invoke the drone.
The first argument is the ID of the type of block. It can be a number like 1 for granite and 46 for TNT, or you can use one of the constants like
blocks.oak. The following three numbers are the width, height, and depth. To make the same size shape, but hollow inside and open at the top and bottom, you’d use:
Subarno showed off a plugin he’d built called “My Fortress”. Here is the code for it…
Then there’s Subarno’s pretty fun Exploding Fortress…
And last, Subarno’s