Hi, hi everyone, i have an question : In the code, this line is execute how many times in one second ? world.getBlockAt(new Location(world, x, y, z)).setType(Material.ICE); Once or until the loop isn't finished ? Code:java public void Timer(final Location pos1, final Location pos2) { final double blockToDeplace = 0; getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable() { @Override public void run() { World world = pos1.getWorld(); double counter = blockToDeplace; if(pos1.getY() < pos2.getY()) counter = (pos1.getY() - pos2.getY()); elsee counter = (pos2.getY() - pos1.getY()); if(pos1.getX() < pos2.getX()) { if(pos1.getZ() < pos2.getZ()) { for(int x = (int) (pos1.getX()); x < pos2.getX() + 1; x++) { for(int y = (int) (pos1.getY()); y < pos2.getY() + 1; y++) { for(int z = (int) (pos1.getZ()); z < pos2.getZ() + 1; z++) { world.getBlockAt(new Location(world, x, y, z)).setType(Material.ICE); } } } } } }, 0, 20L); } Thanks
that depens soly on the processing power and memory allocation of the server running the plugin. there is no set speed, you could easily measure it by simple adding a counter variable that increments every time it is called. then printing that value to the console by using a tasktimer every second.