Hi, so my aim is to send a block change of a pillar to the player, here is the code;
Any ideas?
Location loc = new Location(player.getWorld(), coord.getX(), coord.getZ(), player.getLocation().getY());
for (int y = (int) loc.getY(); y < loc.getWorld().getMaxHeight(); y++) {
if (loc.getBlock().getType() != Material.AIR) {
continue;
}
player.sendBlockChange(loc, 113, (byte) 0);
loc.add(0, 1, 0);
}
It isn't working.for (int y = (int) loc.getY(); y < loc.getWorld().getMaxHeight(); y++) {
if (loc.getBlock().getType() != Material.AIR) {
continue;
}
player.sendBlockChange(loc, 113, (byte) 0);
loc.add(0, 1, 0);
}
Any ideas?
