Fixed tool effectiveness on blocks
This commit is contained in:
parent
8499d70b43
commit
390e989cf9
9 changed files with 22 additions and 22 deletions
|
@ -24,6 +24,7 @@ public class BlockAsh extends Block
|
|||
|
||||
//TODO: this.setHardness
|
||||
this.func_149711_c(0.4F);
|
||||
this.setHarvestLevel("shovel", 0);
|
||||
|
||||
//TODO setStepSound(Block.soundSandFootstep)
|
||||
this.func_149672_a(Block.field_149776_m);
|
||||
|
|
|
@ -26,6 +26,13 @@ public class BlockBOPGems extends Block
|
|||
//TODO: Material.rock
|
||||
super(Material.field_151576_e);
|
||||
|
||||
this.setHarvestLevel("pickaxe", 3, 0);
|
||||
|
||||
for (int i = 1; i < 16; i++)
|
||||
{
|
||||
this.setHarvestLevel("pickaxe", 2, i);
|
||||
}
|
||||
|
||||
//TODO setStepSound(Block.soundStoneFootstep)
|
||||
this.func_149672_a(Block.field_149780_i);
|
||||
|
||||
|
|
|
@ -49,6 +49,8 @@ public class BlockBOPGeneric extends Block
|
|||
case DRIED_DIRT:
|
||||
//TODO: this.setHardness
|
||||
this.func_149711_c(0.1F);
|
||||
this.setHarvestLevel("pickaxe", 0);
|
||||
|
||||
//TODO setStepSound(Block.soundStoneFootstep)
|
||||
this.func_149672_a(Block.field_149780_i);
|
||||
break;
|
||||
|
@ -70,6 +72,8 @@ public class BlockBOPGeneric extends Block
|
|||
case HARD_SAND:
|
||||
//TODO: this.setHardness
|
||||
this.func_149711_c(0.7F);
|
||||
this.setHarvestLevel("shovel", 0);
|
||||
|
||||
//TODO setStepSound(Block.soundSandFootstep)
|
||||
this.func_149672_a(Block.field_149776_m);
|
||||
break;
|
||||
|
|
|
@ -60,6 +60,8 @@ public class BlockBOPLog extends Block
|
|||
|
||||
//TODO: this.setHardness
|
||||
this.func_149711_c(2.0F);
|
||||
this.setHarvestLevel("axe", 0);
|
||||
|
||||
//TODO: this.setResistance
|
||||
this.func_149752_b(5.0F);
|
||||
//TODO setStepSound(Block.soundWoodFootstep)
|
||||
|
|
|
@ -24,6 +24,7 @@ public class BlockBOPPlank extends Block
|
|||
|
||||
//TODO: this.setHardness
|
||||
this.func_149711_c(2.0F);
|
||||
this.setHarvestLevel("axe", 0);
|
||||
|
||||
//TODO setStepSound(Block.soundWoodFootstep)
|
||||
this.func_149672_a(Block.field_149766_f);
|
||||
|
|
|
@ -26,6 +26,7 @@ public class BlockLongGrass extends Block
|
|||
|
||||
//TODO: this.setHardness
|
||||
this.func_149711_c(0.6F);
|
||||
this.setHarvestLevel("shovel", 0);
|
||||
|
||||
//TODO setStepSound(Block.soundGrassFootstep)
|
||||
this.func_149672_a(Block.field_149779_h);
|
||||
|
|
|
@ -26,6 +26,7 @@ public class BlockOriginGrass extends Block
|
|||
|
||||
//TODO: this.setHardness
|
||||
this.func_149711_c(0.6F);
|
||||
this.setHarvestLevel("shovel", 0);
|
||||
|
||||
//TODO setStepSound(Block.soundGrassFootstep)
|
||||
this.func_149672_a(Block.field_149779_h);
|
||||
|
|
|
@ -233,23 +233,6 @@ 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()
|
||||
|
|
|
@ -68,11 +68,11 @@ public class BOPItems
|
|||
registerItem(new ItemBOPAxe(BOPItemHelper.toolMaterialMud, 0).setUnlocalizedName("axeMud"));
|
||||
registerItem(new ItemBOPHoe(BOPItemHelper.toolMaterialMud, 0).setUnlocalizedName("hoeMud"));
|
||||
|
||||
registerItem(new ItemBOPSword(BOPItemHelper.toolMaterialMud, 1).setUnlocalizedName("swordAmethyst"));
|
||||
registerItem(new ItemBOPSpade(BOPItemHelper.toolMaterialMud, 1).setUnlocalizedName("shovelAmethyst"));
|
||||
registerItem(new ItemBOPPickaxe(BOPItemHelper.toolMaterialMud, 1).setUnlocalizedName("pickaxeAmethyst"));
|
||||
registerItem(new ItemBOPAxe(BOPItemHelper.toolMaterialMud, 1).setUnlocalizedName("axeAmethyst"));
|
||||
registerItem(new ItemBOPHoe(BOPItemHelper.toolMaterialMud, 1).setUnlocalizedName("hoeAmethyst"));
|
||||
registerItem(new ItemBOPSword(BOPItemHelper.toolMaterialAmethyst, 1).setUnlocalizedName("swordAmethyst"));
|
||||
registerItem(new ItemBOPSpade(BOPItemHelper.toolMaterialAmethyst, 1).setUnlocalizedName("shovelAmethyst"));
|
||||
registerItem(new ItemBOPPickaxe(BOPItemHelper.toolMaterialAmethyst, 1).setUnlocalizedName("pickaxeAmethyst"));
|
||||
registerItem(new ItemBOPAxe(BOPItemHelper.toolMaterialAmethyst, 1).setUnlocalizedName("axeAmethyst"));
|
||||
registerItem(new ItemBOPHoe(BOPItemHelper.toolMaterialAmethyst, 1).setUnlocalizedName("hoeAmethyst"));
|
||||
|
||||
registerItem(new ItemBOPScythe(ToolMaterial.WOOD, 0).setUnlocalizedName("scytheWood"));
|
||||
registerItem(new ItemBOPScythe(ToolMaterial.STONE, 1).setUnlocalizedName("scytheStone"));
|
||||
|
|
Loading…
Reference in a new issue