dimanche 5 avril 2015

Bukkit Generating Worlds


Vote count:

0




I'm trying to generate a world I have it to currently generate to empty. That's what I want but now I want to generate a square or land for each player when they join. I would like to make it look like a grid. The squares will not connect. I can do it in a diagonal fashion but I don't know how to go about making it a grid.



for(int x = 0; x < 32; x++) {
for(int z = 0; z < 32; z++) {
Location l = new Location(getClashWorld(), x, 64, z);
getClashWorld().getBlockAt(l).setType(Material.GRASS);
}
}


That's how I create a 32x32 plot of land in the world and i can just change the x and z along with the x < and the z < to move it diagonally. How would I make this into a grid?



asked 46 secs ago







Bukkit Generating Worlds

Aucun commentaire:

Enregistrer un commentaire