Skip to content

Commit

Permalink
Make biomes around player change instead
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyCurtis committed Dec 5, 2016
1 parent 6cbd35c commit 1f60d15
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/java/roycurtis/testdummy/TestDummy.java
Expand Up @@ -20,12 +20,14 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
try
{
Biome biome = Biome.valueOf(biomeArg);
int posX = player.getLocation().getBlockX();
int posZ = player.getLocation().getBlockZ();

for (int x = -256; x < 256; x++)
for (int z = -256; z < 256; z++)
for (int x = posX - 256; x < posX + 256; x++)
for (int z = posZ - 256; z < posZ + 256; z++)
player.getWorld().setBiome(x, z, biome);

player.sendMessage("Set biomes from -256,-256 to 256,256 to " + biome);
player.sendMessage("Set biomes in 256 block radius around you to " + biome);
}
catch (Exception e)
{
Expand Down

0 comments on commit 1f60d15

Please sign in to comment.