Guest User

Untitled

a guest
Apr 25th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1. protected void dropFewItems(boolean flag, int i)
  2.     {
  3.         int j = rand.nextInt(2 + i);
  4.         for(int k = 0; k < j; k++)
  5.         {
  6.             dropItem(Item.rottenFlesh.shiftedIndex, 1);
  7.         }
  8.  
  9.         j = rand.nextInt(2 + i);
  10.         for(int l = 0; l < j; l++)
  11.         {
  12.             dropItem(Item.goldNugget.shiftedIndex, 1);
  13.         }
  14.        
  15.         j = rand.nextInt(15);
  16.         if(j==1)
  17.         {
  18.             dropItem(Item.swordDiamond.shiftedIndex, 1);
  19.         }
  20.        
  21.         dropItem(Item.swordGold.shiftedIndex, 1);
  22.  
  23.     }
Add Comment
Please, Sign In to add comment