Skip to content

Commit

Permalink
Add more stuff to Pile of Rubble drops
Browse files Browse the repository at this point in the history
  • Loading branch information
OreCruncher committed Jun 3, 2015
1 parent cc9e02b commit 69ff9dd
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ public class PileOfRubble extends Block {
.getItemFromBlock(Blocks.torch), 0, 1, 8, 8));
rubbleContent.addItem(new WeightedRandomChestContent(Item
.getItemFromBlock(Blocks.iron_ore), 0, 1, 3, 5));
rubbleContent.addItem(new WeightedRandomChestContent(ItemStackHelper
.getItemStack("ThermalFoundation:Ore:0"), 1, 3, 5));
rubbleContent.addItem(new WeightedRandomChestContent(ItemStackHelper
.getItemStack("ThermalFoundation:Ore:1"), 1, 3, 5));
rubbleContent.addItem(new WeightedRandomChestContent(Item
.getItemFromBlock(Blocks.gold_ore), 0, 1, 2, 3));
rubbleContent.addItem(new WeightedRandomChestContent(Items.redstone, 0,
Expand Down Expand Up @@ -145,11 +149,13 @@ public int getRenderType() {

@Override
protected boolean canSilkHarvest() {
// No silk touch - gotta break it
return false;
}

@Override
public int quantityDropped(Random random) {
// Prevent the Pile of Scrap from dropping
return 0;
}

Expand Down Expand Up @@ -193,6 +199,7 @@ public IIcon getIcon(final int side, int metadata) {
}

public boolean canBlockStay(World world, int x, int y, int z) {
// Make sure the block underneath is solid
return world.getBlock(x, y - 1, z).getMaterial().isSolid();
}

Expand Down

0 comments on commit 69ff9dd

Please sign in to comment.