Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WORLD GEN DUNGEONS CODE:
- private ItemStack pickCheckLootItem(Random par1Random)
- {
- int i = par1Random.nextInt(15);
- if (i == 0)
- {
- return new ItemStack(Item.saddle);
- }
- if (i == 1)
- {
- return new ItemStack(Item.ingotIron, par1Random.nextInt(4) + 1);
- }
- if (i == 2)
- {
- return new ItemStack(Item.bread);
- }
- if (i == 3)
- {
- return new ItemStack(Item.wheat, par1Random.nextInt(4) + 1);
- }
- if (i == 4)
- {
- return new ItemStack(Item.gunpowder, par1Random.nextInt(4) + 1);
- }
- if (i == 5)
- {
- return new ItemStack(Item.silk, par1Random.nextInt(4) + 1);
- }
- if (i == 6)
- {
- return new ItemStack(Item.bucketEmpty);
- }
- if (i == 7 && par1Random.nextInt(100) == 0)
- {
- return new ItemStack(Item.appleGold);
- }
- if (i == 8 && par1Random.nextInt(2) == 0)
- {
- return new ItemStack(Item.redstone, par1Random.nextInt(4) + 1);
- }
- if (i == 9 && par1Random.nextInt(10) == 0)
- {
- return new ItemStack(Item.itemsList[Item.record13.shiftedIndex + par1Random.nextInt(2)]);
- }
- if (i == 10)
- {
- return new ItemStack(Item.dyePowder, 1, 3);
- }
- if (i == 11)
- {
- return new ItemStack(mod_tutorial.Skull,1);
- }
- if (i == 12 && (par1Random.nextInt(50) == 0))
- {
- return new ItemStack(mod_tutorial.Neutron, (1 + par1Random.nextInt(2)));
- }
- else
- {
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment