Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void run() {
- for(int i = 0; i < inv.getContents().length; i++) {
- ItemStack is = inv.getItem(i);
- ItemStack BlackStain = new ItemStack(Material.STAINED_GLASS_PANE, 1, (byte)15);
- if(is.getType() == Material.STAINED_GLASS || is.getType() == Material.STAINED_GLASS_PANE) {
- if (is.getItemMeta()) {
- inv.setItem(i, new ItemStack(Material.STAINED_GLASS_PANE, 1, (byte) (new Random().nextInt(6)+1)));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement