October 2014
Beginner to intermediate
285 pages
6h 24m
English
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 |
| | BuildAHouse.java MyHouse.java |
You’re going to edit the file MyHouse.java, which is one small part of this whole plugin (don’t look at the rest yet!). Right now it looks like this:
| BuildAHouse/src/buildahouse/MyHouse.java | |
| | 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, ... |
Read now
Unlock full access