How to change the color of a wool block?

Discussion in 'Plugin Development' started by darknesschaos, Jan 26, 2011.

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

    darknesschaos

    ((Wool) event.getBlock()).setColor(DyeColor.BLACK);
    also tried ((Wool) wool.getState().getData()).setColor(DyeColor.SILVER); with no luck either.

    This does not work for me. Checking the docs didn't help either.

    Anybody know how to fix this?
     
  2. Offline

    eisental

    I'm sure you can use MaterialData somehow, but this is how I do it:
    Code:
            block.setData(DyeColor.SILVER.getData());
    
     
  3. Offline

    darknesschaos

    works like a charm!
     
Thread Status:
Not open for further replies.

Share This Page