Skip to content
This repository has been archived by the owner on May 2, 2018. It is now read-only.

Commit

Permalink
Make Yttrium ore drop dusts as it's far too rare otherwise
Browse files Browse the repository at this point in the history
  • Loading branch information
Aesen Vismea committed Mar 8, 2015
1 parent 94cfc53 commit 44bc8c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@
.classpath
.project
/branding/
/NBTEdit.log.lck
7 changes: 6 additions & 1 deletion src/main/java/com/gameminers/farrago/block/BlockOre.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@ public BlockOre() {
@Override
public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int metadata, int fortune) {
ArrayList<ItemStack> drops = Lists.newArrayList();
drops.add(new ItemStack(this, 1, metadata));
if (metadata == 0) {
for (int i = 0; i < world.rand.nextInt(fortune+3)+1; i++) {
drops.add(new ItemStack(FarragoMod.DUST, 1, 5));
}
if (world.rand.nextInt(8) == 0) {
drops.add(new ItemStack(FarragoMod.DUST, 1, 6));
}
if (FarragoMod.copperlessEnvironment) {
for (int i = 0; i < world.rand.nextInt(fortune+2); i++) {
drops.add(new ItemStack(FarragoMod.DUST, 1, 7));
Expand Down

0 comments on commit 44bc8c0

Please sign in to comment.