Added pine tree tool.

This commit is contained in:
sk89q
2011-01-17 17:05:18 -08:00
parent 39914155b6
commit df836d285d
3 changed files with 58 additions and 1 deletions

View File

@ -125,6 +125,7 @@ public class WorldEditController {
commands.put("/none", "Switch to no tool");
commands.put("/info", "Switch to the info tool");
commands.put("/tree", "Switch to the tree tool");
commands.put("/pinetree", "Switch to the pine tree tool");
commands.put("/bigtree", "Switch to the big tree tool");
commands.put("/repl", "[ID] - Switch to the block replacer tool");
commands.put("/brush", "[ID] <Radius> <NoReplace?> - Switch to the sphere brush tool");
@ -684,6 +685,13 @@ public class WorldEditController {
player.print("Big tree tool equipped. Right click with a pickaxe.");
return true;
// Pine tree tool
} else if (split[0].equalsIgnoreCase("/pinetree")) {
checkArgs(split, 0, 0, split[0]);
session.setRightClickMode(new PineTreePlanter());
player.print("Pine tree tree tool equipped. Right click with a pickaxe.");
return true;
// Info tool
} else if (split[0].equalsIgnoreCase("/info")) {
checkArgs(split, 0, 0, split[0]);