how do i change a list of red blocks to blue slowly

Discussion in 'Plugin Development' started by vengaminghd, Oct 19, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    vengaminghd

    ok i have an ArrayList of red wool Blocks that makes a 7*7 square what is the best way to change 1 every second to blue? i want is so you can gradually see the square change colour
     
  2. Offline

    Shzylo

    I'm guessing make a timer :p
    I wrote this, but I am not sure if it will work.
    Code:
    for (Block b : list) {
        new BukkitRunnable() {
            b.setBlock(<block>);
        }.runTaskTimer(<plugin>, 0L, 20L);
    }
     
Thread Status:
Not open for further replies.

Share This Page