Plugin: BuildAHouse

I’ve got a plugin already set up for you; all you need to do is declare some variables and you can give the /buildahouse command.

First make your way to the downloaded code, and into the BuildAHouse plugin:

$ ​cd Desktop
$ ​cd code/BuildAHouse/src/buildahouse
$ ​ls

You’re going to edit the file, which is one small part of this whole plugin (don’t look at the rest yet!). Right now it looks like this:

package​ buildahouse;
public​ ​class​ MyHouse {
public​ ​static​ ​void​ build_me() {
// Declare width
// Set width to the number of blocks
// Declare height
// Set height to the number of blocks
BuildAHouse.buildMyHouse(width, ...

Get Learn to Program with Minecraft Plugins, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.