Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void spawn() {
- int radius = Config.WORLD_SIZE.getInteger() / 2;
- for (int x = -radius; x <= radius; x++) {
- for (int z = -radius; z <= radius; z++) {
- for (int y = 0; y <= 256; y++) {
- Block block = world.getBlockAt(x, y, z);
- Logger.getLogger(x + " " + y + " " + z).warning();
- if (block.getType() != Material.WOOL) continue;
- LootBoxes.spawnLoc(block.getLocation());
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement