Guest User

Untitled

a guest
Oct 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. public static void BlockChanger(Block block) {
  2. Wool wool = (Wool) block.getState().getData();
  3. Random random = new Random();
  4. DyeColor randomColor = DyeColor.values()[random.nextInt(DyeColor.values().length)];
  5. wool.setColor(randomColor);
  6. block.getState().update();
  7. }
Add Comment
Please, Sign In to add comment