Skip to content

Instantly share code, notes, and snippets.

@suppergerrie2
Created October 29, 2017 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suppergerrie2/aebeb4ecc66973c6fcd7108a1bf23c37 to your computer and use it in GitHub Desktop.
Save suppergerrie2/aebeb4ecc66973c6fcd7108a1bf23c37 to your computer and use it in GitHub Desktop.
Multiple Items Drop
@Override
public ArrayList<ItemStack> getDrops(IBlockAccess world, BlockPos pos, IBlockState blockstate, int fortune){
ArrayList<ItemStack> drops = new ArrayList<ItemStack>();
drops.add(new ItemStack(Items.REDSTONE, 10));
drops.add(new ItemStack(Items.DIAMOND, RANDOM.nextInt(10)));
return drops;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment