Skip to content

Commit

Permalink
Adjust harvest level for water tank and coke oven brick pt 2 (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
Caedis authored and serenibyss committed Feb 17, 2025
1 parent d3fc007 commit 3560a0b
Showing 1 changed file with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.IIcon;
Expand Down Expand Up @@ -166,23 +164,6 @@ public boolean isSideSolid(IBlockAccess world, int x, int y, int z, ForgeDirecti
return true;
}

@Override
public void harvestBlock(World world, EntityPlayer entityplayer, int i, int j, int k, int l) {}

@Override
public boolean removedByPlayer(World world, EntityPlayer player, int x, int y, int z, boolean willHarvest) {
player.addStat(StatList.mineBlockStatArray[getIdFromBlock(this)], 1);
player.addExhaustion(0.025F);
if (Game.isHost(world) && !player.capabilities.isCreativeMode)
if (canSilkHarvest(world, player, x, y, z, 0) && EnchantmentHelper.getSilkTouchModifier(player)) {
List<ItemStack> drops = getBlockDroppedSilkTouch(world, x, y, z, 0, 0);
for (ItemStack stack : drops) {
dropBlockAsItem(world, x, y, z, stack);
}
} else dropBlockAsItem(world, x, y, z, 0, 0);
return world.setBlockToAir(x, y, z);
}

@Override
public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int metadata, int fortune) {
TileEntity tile = world.getTileEntity(x, y, z);
Expand Down

0 comments on commit 3560a0b

Please sign in to comment.