From b7435ed598f24170b5189fcced76b59c1e7f1003 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Fri, 27 Dec 2013 20:21:50 +1100 Subject: [PATCH] Fixed the block hardness and step sounds of hopefully all of the blocks --- .../biomesoplenty/common/blocks/BlockAsh.java | 3 +++ .../common/blocks/BlockBOPCoral.java | 6 ++++++ .../common/blocks/BlockBOPFlower.java | 6 ++++++ .../common/blocks/BlockBOPFlower2.java | 6 ++++++ .../common/blocks/BlockBOPFoliage.java | 10 ++++++---- .../common/blocks/BlockBOPGeneric.java | 2 +- .../common/blocks/BlockBOPGrass.java | 7 +++++-- .../common/blocks/BlockBOPLeaves.java | 10 ++++++---- .../common/blocks/BlockBOPMushroom.java | 6 ++++++ .../common/blocks/BlockBOPPlank.java | 8 ++++++-- .../common/blocks/BlockBOPPlant.java | 10 ++++++---- .../common/blocks/BlockBOPStairs.java | 17 +++++++++++++++++ .../common/blocks/BlockBamboo.java | 6 ++++++ .../common/blocks/BlockCloud.java | 9 +++++++++ .../common/blocks/BlockFlesh.java | 6 ++++++ .../biomesoplenty/common/blocks/BlockHive.java | 6 ++++++ .../common/blocks/BlockHoney.java | 6 ++++++ .../biomesoplenty/common/blocks/BlockIvy.java | 7 +++++++ .../common/blocks/BlockLongGrass.java | 6 ++++++ .../biomesoplenty/common/blocks/BlockMoss.java | 6 ++++++ .../biomesoplenty/common/blocks/BlockMud.java | 1 + .../common/blocks/BlockOriginGrass.java | 6 ++++++ .../blocks/BlockOvergrownNetherrack.java | 6 ++++++ .../common/blocks/BlockPromisedPortal.java | 8 ++++++++ .../common/blocks/BlockStoneFormations.java | 6 ++++++ .../common/blocks/BlockTreeMoss.java | 7 +++++++ .../common/blocks/BlockWillow.java | 7 +++++++ .../biomesoplenty/common/core/BOPBlocks.java | 18 ++++++++++++++++++ 28 files changed, 185 insertions(+), 17 deletions(-) diff --git a/src/main/java/biomesoplenty/common/blocks/BlockAsh.java b/src/main/java/biomesoplenty/common/blocks/BlockAsh.java index 75aa2ac42..10aa86ebc 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockAsh.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockAsh.java @@ -22,6 +22,9 @@ public class BlockAsh extends Block //TODO: Material.sand super(Material.field_151595_p); + //TODO: this.setHardness + this.func_149711_c(0.4F); + //TODO setStepSound(Block.soundSandFootstep) this.func_149672_a(Block.field_149776_m); diff --git a/src/main/java/biomesoplenty/common/blocks/BlockBOPCoral.java b/src/main/java/biomesoplenty/common/blocks/BlockBOPCoral.java index 1465c5956..de90ff444 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockBOPCoral.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockBOPCoral.java @@ -28,6 +28,12 @@ public class BlockBOPCoral extends BlockBush //TODO: Material.water super(Material.field_151586_h); + //TODO: this.setHardness + this.func_149711_c(0.0F); + + //TODO setStepSound(Block.soundGrassFootstep) + this.func_149672_a(Block.field_149779_h); + //TODO: setTickRandomly() this.func_149675_a(true); diff --git a/src/main/java/biomesoplenty/common/blocks/BlockBOPFlower.java b/src/main/java/biomesoplenty/common/blocks/BlockBOPFlower.java index 9d1196f92..974ba6e9f 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockBOPFlower.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockBOPFlower.java @@ -41,6 +41,12 @@ public class BlockBOPFlower extends BlockBush //TODO: Material.plants super(Material.field_151585_k); + //TODO: this.setHardness + this.func_149711_c(0.0F); + + //TODO setStepSound(Block.soundGrassFootstep) + this.func_149672_a(Block.field_149779_h); + //TODO: setTickRandomly() this.func_149675_a(true); diff --git a/src/main/java/biomesoplenty/common/blocks/BlockBOPFlower2.java b/src/main/java/biomesoplenty/common/blocks/BlockBOPFlower2.java index 5e1c89cfe..a40d729d3 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockBOPFlower2.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockBOPFlower2.java @@ -34,6 +34,12 @@ public class BlockBOPFlower2 extends BlockBush //TODO: Material.plants super(Material.field_151585_k); + //TODO: this.setHardness + this.func_149711_c(0.0F); + + //TODO setStepSound(Block.soundGrassFootstep) + this.func_149672_a(Block.field_149779_h); + //TODO: setTickRandomly() this.func_149675_a(true); float var4 = 0.2F; diff --git a/src/main/java/biomesoplenty/common/blocks/BlockBOPFoliage.java b/src/main/java/biomesoplenty/common/blocks/BlockBOPFoliage.java index 4cdffc637..9baa5e083 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockBOPFoliage.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockBOPFoliage.java @@ -51,14 +51,16 @@ public class BlockBOPFoliage extends BlockTallGrass implements IShearable { float f = 0.4F; + //TODO: this.setHardness + this.func_149711_c(0.0F); + + //TODO setStepSound(Block.soundGrassFootstep) + this.func_149672_a(Block.field_149779_h); + //TODO: setBurnProperties() getIdFromBlock() Blocks.fire.func_149842_a(func_149682_b(this), 60, 100); //TODO: setBlockBounds this.func_149676_a(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.8F, 0.5F + f); - //TODO: this.setHardness - this.func_149711_c(0.0F); - //TODO setStepSound(Block.soundGrassFootstep) - this.func_149672_a(Block.field_149779_h); //TODO: this.setCreativeTab() this.func_149647_a(BiomesOPlenty.tabBiomesOPlenty); diff --git a/src/main/java/biomesoplenty/common/blocks/BlockBOPGeneric.java b/src/main/java/biomesoplenty/common/blocks/BlockBOPGeneric.java index 6d021c551..4de20d874 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockBOPGeneric.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockBOPGeneric.java @@ -96,7 +96,7 @@ public class BlockBOPGeneric extends Block //TODO: this.setResistance this.func_149752_b(5.0F); //TODO: this.setLightValue - this.func_149715_a(1.0F); //I think? + this.func_149715_a(1.0F); //TODO setStepSound(Block.soundGravelFootstep) this.func_149672_a(Block.field_149778_k); break; diff --git a/src/main/java/biomesoplenty/common/blocks/BlockBOPGrass.java b/src/main/java/biomesoplenty/common/blocks/BlockBOPGrass.java index 0308baf7b..359f7f2a2 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockBOPGrass.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockBOPGrass.java @@ -28,12 +28,15 @@ public class BlockBOPGrass extends Block //TODO: Material.grass super(Material.field_151577_b); + //TODO: this.setHardness + this.func_149711_c(0.6F); + this.setHarvestLevel("shovel", 0); + //TODO: setTickRandomly() this.func_149675_a(true); //TODO setStepSound(Block.soundGrassFootstep) this.func_149672_a(Block.field_149779_h); - //TODO: this.setHardness - this.func_149711_c(0.6F); + //setLightValue(0.25F); //TODO: this.setCreativeTab() diff --git a/src/main/java/biomesoplenty/common/blocks/BlockBOPLeaves.java b/src/main/java/biomesoplenty/common/blocks/BlockBOPLeaves.java index 90efd469c..606e2d3b1 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockBOPLeaves.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockBOPLeaves.java @@ -68,13 +68,15 @@ public class BlockBOPLeaves extends BlockLeavesBase implements IShearable super(Material.field_151584_j, false); category = cat; + + //TODO: this.setHardness + this.func_149711_c(0.2F); + + //TODO setStepSound(Block.soundGrassFootstep) + this.func_149672_a(Block.field_149779_h); //TODO: setTickRandomly() this.func_149675_a(true); - //TODO: this.setHardness - this.func_149711_c(0.2F); - //TODO setStepSound(Block.soundGrassFootstep) - this.func_149672_a(Block.field_149779_h); //TODO: this.setCreativeTab() this.func_149647_a(BiomesOPlenty.tabBiomesOPlenty); diff --git a/src/main/java/biomesoplenty/common/blocks/BlockBOPMushroom.java b/src/main/java/biomesoplenty/common/blocks/BlockBOPMushroom.java index cca67fae8..f48030c28 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockBOPMushroom.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockBOPMushroom.java @@ -26,6 +26,12 @@ public class BlockBOPMushroom extends BlockBush //TODO: Material.plants super(Material.field_151585_k); + //TODO: this.setHardness + this.func_149711_c(0.0F); + + //TODO setStepSound(Block.soundGrassFootstep) + this.func_149672_a(Block.field_149779_h); + //TODO: setTickRandomly() this.func_149675_a(true); diff --git a/src/main/java/biomesoplenty/common/blocks/BlockBOPPlank.java b/src/main/java/biomesoplenty/common/blocks/BlockBOPPlank.java index 367ec47ab..6e5c7eceb 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockBOPPlank.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockBOPPlank.java @@ -22,11 +22,15 @@ public class BlockBOPPlank extends Block //TODO: Material.wood super(Material.field_151575_d); - //TODO: setBurnProperties() getIdFromBlock() - Blocks.fire.func_149842_a(func_149682_b(this), 5, 20); //TODO: this.setHardness this.func_149711_c(2.0F); + //TODO setStepSound(Block.soundWoodFootstep) + this.func_149672_a(Block.field_149766_f); + + //TODO: setBurnProperties() getIdFromBlock() + Blocks.fire.func_149842_a(func_149682_b(this), 5, 20); + //TODO: this.setCreativeTab() this.func_149647_a(BiomesOPlenty.tabBiomesOPlenty); } diff --git a/src/main/java/biomesoplenty/common/blocks/BlockBOPPlant.java b/src/main/java/biomesoplenty/common/blocks/BlockBOPPlant.java index 90c1c70a7..6198f954d 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockBOPPlant.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockBOPPlant.java @@ -46,15 +46,17 @@ public class BlockBOPPlant extends BlockBush implements IShearable //TODO: Material.plants super(Material.field_151585_k); + //TODO: this.setHardness + this.func_149711_c(0.0F); + + //TODO setStepSound(Block.soundGrassFootstep) + this.func_149672_a(Block.field_149779_h); + //TODO: setTickRandomly() this.func_149675_a(true); float var3 = 0.4F; //TODO: setBurnProperties() getIdFromBlock() Blocks.fire.func_149842_a(func_149682_b(this), 60, 100); - //TODO: this.setHardness - this.func_149711_c(0.0F); - //TODO setStepSound(Block.soundGrassFootstep) - this.func_149672_a(Block.field_149779_h); //TODO: setBlockBounds this.func_149676_a(0.5F - var3, 0.0F, 0.5F - var3, 0.5F + var3, 0.8F, 0.5F + var3); diff --git a/src/main/java/biomesoplenty/common/blocks/BlockBOPStairs.java b/src/main/java/biomesoplenty/common/blocks/BlockBOPStairs.java index c4d16cdd5..bf6adb371 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockBOPStairs.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockBOPStairs.java @@ -38,6 +38,23 @@ public class BlockBOPStairs extends BlockStairs category = cat; + if (isWoodCategory(category.toString())) + { + //TODO: this.setHardness + this.func_149711_c(2.0F); + + //TODO setStepSound(Block.soundWoodFootstep) + this.func_149672_a(Block.field_149766_f); + } + else + { + //TODO: this.setHardness + this.func_149711_c(3.0F); + + //TODO setStepSound(Block.soundStoneFootstep) + this.func_149672_a(Block.field_149780_i); + } + //TODO: setBurnProperties() getIdFromBlock() Blocks.fire.func_149842_a(func_149682_b(this), 5, 20); diff --git a/src/main/java/biomesoplenty/common/blocks/BlockBamboo.java b/src/main/java/biomesoplenty/common/blocks/BlockBamboo.java index 5a5078bbf..6e4e2ef24 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockBamboo.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockBamboo.java @@ -25,6 +25,12 @@ public class BlockBamboo extends Block //TODO: Material.plants super(Material.field_151585_k); + //TODO: this.setHardness + this.func_149711_c(0.2F); + + //TODO setStepSound(Block.soundWoodFootstep) + this.func_149672_a(Block.field_149766_f); + //TODO: setBurnProperties() getIdFromBlock() Blocks.fire.func_149842_a(func_149682_b(this), 5, 5); //TODO: setTickRandomly() diff --git a/src/main/java/biomesoplenty/common/blocks/BlockCloud.java b/src/main/java/biomesoplenty/common/blocks/BlockCloud.java index bc64a4532..316045f54 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockCloud.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockCloud.java @@ -16,6 +16,15 @@ public class BlockCloud extends Block //TODO: Material.cloth super(Material.field_151580_n); + //TODO: this.setHardness + this.func_149711_c(0.1F); + + //TODO setStepSound(Block.soundClothFootstep) + this.func_149672_a(Block.field_149775_l); + + //TODO: setLightOpacity() + this.func_149713_g(3); + //TODO: this.setCreativeTab() this.func_149647_a(BiomesOPlenty.tabBiomesOPlenty); } diff --git a/src/main/java/biomesoplenty/common/blocks/BlockFlesh.java b/src/main/java/biomesoplenty/common/blocks/BlockFlesh.java index ad6a2b57f..319ac162d 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockFlesh.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockFlesh.java @@ -21,6 +21,12 @@ public class BlockFlesh extends Block //TODO: Material.sponge super(Material.field_151583_m); + //TODO: this.setHardness + this.func_149711_c(0.4F); + + //TODO setStepSound(Block.soundGravelFootstep) + this.func_149672_a(Block.field_149767_g); + //TODO: this.setCreativeTab() this.func_149647_a(BiomesOPlenty.tabBiomesOPlenty); } diff --git a/src/main/java/biomesoplenty/common/blocks/BlockHive.java b/src/main/java/biomesoplenty/common/blocks/BlockHive.java index 8892ce95d..d4100a807 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockHive.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockHive.java @@ -24,6 +24,12 @@ public class BlockHive extends Block //TODO: Material.wood super(Material.field_151575_d); + //TODO: this.setHardness + this.func_149711_c(0.5F); + + //TODO setStepSound(Block.soundGrassFootstep) + this.func_149672_a(Block.field_149779_h); + //TODO: this.setCreativeTab() this.func_149647_a(BiomesOPlenty.tabBiomesOPlenty); } diff --git a/src/main/java/biomesoplenty/common/blocks/BlockHoney.java b/src/main/java/biomesoplenty/common/blocks/BlockHoney.java index 6c9d5bcda..dff3e5ac3 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockHoney.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockHoney.java @@ -13,6 +13,12 @@ public class BlockHoney extends Block //TODO: Material.glass super(Material.field_151592_s); + //TODO: this.setHardness + this.func_149711_c(0.5F); + + //TODO setStepSound(Block.soundStoneFootstep) + this.func_149672_a(Block.field_149780_i); + //TODO: this.setCreativeTab() this.func_149647_a(BiomesOPlenty.tabBiomesOPlenty); } diff --git a/src/main/java/biomesoplenty/common/blocks/BlockIvy.java b/src/main/java/biomesoplenty/common/blocks/BlockIvy.java index 1a913531f..ff56c87db 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockIvy.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockIvy.java @@ -1,5 +1,6 @@ package biomesoplenty.common.blocks; +import net.minecraft.block.Block; import net.minecraft.block.BlockVine; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraftforge.common.IShearable; @@ -9,6 +10,12 @@ public class BlockIvy extends BlockVine implements IShearable { public BlockIvy() { + //TODO: this.setHardness + this.func_149711_c(0.2F); + + //TODO setStepSound(Block.soundGrassFootstep) + this.func_149672_a(Block.field_149779_h); + //TODO: setTickRandomly() this.func_149675_a(true); diff --git a/src/main/java/biomesoplenty/common/blocks/BlockLongGrass.java b/src/main/java/biomesoplenty/common/blocks/BlockLongGrass.java index 727d31593..7495e1db8 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockLongGrass.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockLongGrass.java @@ -24,6 +24,12 @@ public class BlockLongGrass extends Block //TODO: Material.grass super(Material.field_151577_b); + //TODO: this.setHardness + this.func_149711_c(0.6F); + + //TODO setStepSound(Block.soundGrassFootstep) + this.func_149672_a(Block.field_149779_h); + //TODO: setTickRandomly() this.func_149675_a(true); diff --git a/src/main/java/biomesoplenty/common/blocks/BlockMoss.java b/src/main/java/biomesoplenty/common/blocks/BlockMoss.java index 1ac9eeecc..14f80d071 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockMoss.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockMoss.java @@ -18,6 +18,12 @@ public class BlockMoss extends BlockVine { public BlockMoss() { + //TODO: this.setHardness + this.func_149711_c(0.2F); + + //TODO setStepSound(Block.soundGrassFootstep) + this.func_149672_a(Block.field_149779_h); + //TODO: setBurnProperties() getIdFromBlock() Blocks.fire.func_149842_a(func_149682_b(this), 15, 100); //TODO: setTickRandomly() diff --git a/src/main/java/biomesoplenty/common/blocks/BlockMud.java b/src/main/java/biomesoplenty/common/blocks/BlockMud.java index ae53b5975..36476363e 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockMud.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockMud.java @@ -26,6 +26,7 @@ public class BlockMud extends Block public BlockMud() { + //TODO: Material.sand super(Material.field_151595_p); //TODO: this.setHardness diff --git a/src/main/java/biomesoplenty/common/blocks/BlockOriginGrass.java b/src/main/java/biomesoplenty/common/blocks/BlockOriginGrass.java index bca4560ca..1f73787be 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockOriginGrass.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockOriginGrass.java @@ -24,6 +24,12 @@ public class BlockOriginGrass extends Block //TODO: Material.grass super(Material.field_151577_b); + //TODO: this.setHardness + this.func_149711_c(0.6F); + + //TODO setStepSound(Block.soundGrassFootstep) + this.func_149672_a(Block.field_149779_h); + //TODO: setTickRandomly() this.func_149675_a(true); diff --git a/src/main/java/biomesoplenty/common/blocks/BlockOvergrownNetherrack.java b/src/main/java/biomesoplenty/common/blocks/BlockOvergrownNetherrack.java index e709eea37..4bc3f0b52 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockOvergrownNetherrack.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockOvergrownNetherrack.java @@ -22,6 +22,12 @@ public class BlockOvergrownNetherrack extends Block //TODO: Material.rock super(Material.field_151576_e); + //TODO: this.setHardness + this.func_149711_c(0.4F); + + //TODO setStepSound(Block.soundGrassFootstep) + this.func_149672_a(Block.field_149779_h); + //TODO: setTickRandomly() this.func_149675_a(true); diff --git a/src/main/java/biomesoplenty/common/blocks/BlockPromisedPortal.java b/src/main/java/biomesoplenty/common/blocks/BlockPromisedPortal.java index e040f04fb..5bfe42fd1 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockPromisedPortal.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockPromisedPortal.java @@ -18,6 +18,14 @@ public class BlockPromisedPortal extends Block { //TODO: Material.portal super(Material.field_151567_E); + + //TODO: this.setUnbreakable() + this.func_149722_s(); + //TODO: this.setResistance + this.func_149752_b(6000000.0F); + + //TODO: this.setLightValue + this.func_149715_a(1.0F); } @Override diff --git a/src/main/java/biomesoplenty/common/blocks/BlockStoneFormations.java b/src/main/java/biomesoplenty/common/blocks/BlockStoneFormations.java index b69c0d5bc..084f02df2 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockStoneFormations.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockStoneFormations.java @@ -27,6 +27,12 @@ public class BlockStoneFormations extends BlockBush //TODO: Material.vine super(Material.field_151582_l); + //TODO: this.setHardness + this.func_149711_c(0.5F); + + //TODO setStepSound(Block.soundStoneFootstep) + this.func_149672_a(Block.field_149780_i); + //TODO: setTickRandomly() this.func_149675_a(true); float var4 = 0.2F; diff --git a/src/main/java/biomesoplenty/common/blocks/BlockTreeMoss.java b/src/main/java/biomesoplenty/common/blocks/BlockTreeMoss.java index b35b4a9a8..e955e5750 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockTreeMoss.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockTreeMoss.java @@ -1,5 +1,6 @@ package biomesoplenty.common.blocks; +import net.minecraft.block.Block; import net.minecraft.block.BlockVine; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.init.Blocks; @@ -9,6 +10,12 @@ public class BlockTreeMoss extends BlockVine { public BlockTreeMoss() { + //TODO: this.setHardness + this.func_149711_c(0.2F); + + //TODO setStepSound(Block.soundGrassFootstep) + this.func_149672_a(Block.field_149779_h); + //TODO: setTickRandomly() this.func_149675_a(true); //TODO: setBurnProperties() getIdFromBlock() diff --git a/src/main/java/biomesoplenty/common/blocks/BlockWillow.java b/src/main/java/biomesoplenty/common/blocks/BlockWillow.java index 6f28861fc..33164047c 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockWillow.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockWillow.java @@ -1,5 +1,6 @@ package biomesoplenty.common.blocks; +import net.minecraft.block.Block; import net.minecraft.block.BlockVine; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.init.Blocks; @@ -9,6 +10,12 @@ public class BlockWillow extends BlockVine { public BlockWillow() { + //TODO: this.setHardness + this.func_149711_c(0.2F); + + //TODO setStepSound(Block.soundGrassFootstep) + this.func_149672_a(Block.field_149779_h); + //TODO: setBurnProperties() getIdFromBlock() Blocks.fire.func_149842_a(func_149682_b(this), 15, 100); //TODO: setTickRandomly() diff --git a/src/main/java/biomesoplenty/common/core/BOPBlocks.java b/src/main/java/biomesoplenty/common/core/BOPBlocks.java index f1a0c4260..f66b1f136 100644 --- a/src/main/java/biomesoplenty/common/core/BOPBlocks.java +++ b/src/main/java/biomesoplenty/common/core/BOPBlocks.java @@ -3,6 +3,7 @@ package biomesoplenty.common.core; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.item.ItemBlock; +import net.minecraftforge.common.MinecraftForge; import biomesoplenty.api.BOPBlockHelper; import biomesoplenty.common.blocks.BlockAsh; import biomesoplenty.common.blocks.BlockBOPAppleLeaves; @@ -212,6 +213,23 @@ public class BOPBlocks registerBlock(new BlockBOPColorizedLeaves(ColourizedLeafCategory.CAT2).func_149663_c("colorizedLeaves2"), ItemBlockColorizedLeaves.class); } + private static void setHarvestLevels() + { + /*TODO MinecraftForge.setBlockHarvestLevel(Blocks.originGrass.get(), "shovel", 0); + MinecraftForge.setBlockHarvestLevel(Blocks.longGrass.get(), "shovel", 0); + MinecraftForge.setBlockHarvestLevel(Blocks.hardSand.get(), "shovel", 0); + MinecraftForge.setBlockHarvestLevel(Blocks.holyGrass.get(), 0, "pickaxe", 0); + + MinecraftForge.setBlockHarvestLevel(Blocks.driedDirt.get(), "pickaxe", 0); + MinecraftForge.setBlockHarvestLevel(Blocks.amethystOre.get(), 0, "pickaxe", 3); + MinecraftForge.setBlockHarvestLevel(Blocks.amethystOre.get(), 2, "pickaxe", 2); + MinecraftForge.setBlockHarvestLevel(Blocks.amethystOre.get(), 4, "pickaxe", 2); + MinecraftForge.setBlockHarvestLevel(Blocks.amethystOre.get(), 6, "pickaxe", 2); + MinecraftForge.setBlockHarvestLevel(Blocks.amethystOre.get(), 8, "pickaxe", 2); + MinecraftForge.setBlockHarvestLevel(Blocks.amethystOre.get(), 10, "pickaxe", 2); + MinecraftForge.setBlockHarvestLevel(Blocks.amethystOre.get(), 12, "pickaxe", 2);*/ + } + public static void registerBlock(Block block) { //TODO: getUnlocalizedName()