SHARE
TWEET

Untitled

a guest Feb 20th, 2020 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.        public Item getItemDropped(IBlockState state, Random rand, int fortune) {
  2.         return this == Blocks.coal_ore ? Items.coal :
  3.         (this == Blocks.diamond_ore ? Items.diamond :
  4.          (this == Blocks.lapis_ore ? Items.dye :
  5.             (this == Blocks.emerald_ore ? Items.emerald :
  6.                    (this == Blocks.random_ore ? this.randomOre() :
  7.                          (this == Blocks.quartz_ore ? Items.quartz :
  8.                             Item.getItemFromBlock(this))))));
  9.     }
  10.  
  11.     private Item randomOre() {
  12.         Item[] listeDeDrop = new Item[100];
  13.         Arrays.fill(listeDeDrop, 0, 39, Items.calcite);
  14.         Arrays.fill(listeDeDrop, 40, 69, Items.khorium);
  15.         Arrays.fill(listeDeDrop, 70, 89, Items.aragonite);
  16.         Arrays.fill(listeDeDrop, 90, 100, Items.rykazium_fragment);
  17.         return listeDeDrop[new Random().nextInt(100 + 1)];
  18.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top