Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void BlockChanger(Block block) {
- Wool wool = (Wool) block.getState().getData();
- Random random = new Random();
- DyeColor randomColor = DyeColor.values()[random.nextInt(DyeColor.values().length)];
- wool.setColor(randomColor);
- block.getState().update();
- }
Add Comment
Please, Sign In to add comment