Fixed the block hardness and step sounds of hopefully all of the blocks
This commit is contained in:
parent
4515c848a9
commit
b7435ed598
28 changed files with 185 additions and 17 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -69,13 +69,15 @@ public class BlockBOPLeaves extends BlockLeavesBase implements IShearable
|
|||
|
||||
category = cat;
|
||||
|
||||
//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: setTickRandomly()
|
||||
this.func_149675_a(true);
|
||||
|
||||
//TODO: this.setCreativeTab()
|
||||
this.func_149647_a(BiomesOPlenty.tabBiomesOPlenty);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -26,6 +26,7 @@ public class BlockMud extends Block
|
|||
|
||||
public BlockMud()
|
||||
{
|
||||
//TODO: Material.sand
|
||||
super(Material.field_151595_p);
|
||||
|
||||
//TODO: this.setHardness
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue