This commit is contained in:
oitsjustjose 2013-07-12 09:37:07 -05:00
commit 6f0ba09fa6
10 changed files with 25 additions and 17 deletions

View file

@ -25,6 +25,8 @@ public class BlockPlanks extends Block {
setHardness(2.5F);
setResistance(10F);
setCreativeTab(MysticStones.MysticStonesTab);
setUnlocalizedName("BlockMysticPlanks");
setStepSound(Block.soundWoodFootstep);
}
@Override
@ -59,7 +61,7 @@ public class BlockPlanks extends Block {
for (int i = 0; i < 7; i++)
{
textures[i] = iconRegister.registerIcon("MysticTextures" + ":" + ItemBlockPlanks.PLANK_TYPE[i] + " Planks");
textures[i] = iconRegister.registerIcon("MysticTextures" + ":" + ItemBlockPlanks.PLANK_TYPE[i]);
}
}

View file

@ -26,6 +26,8 @@ public class BlockReinforced extends Block {
setHardness(4F);
setResistance(2000F);
setCreativeTab(MysticStones.MysticStonesTab);
setUnlocalizedName("BlockMysticReinforcedBrick");
setStepSound(Block.soundMetalFootstep);
}
@Override

View file

@ -25,6 +25,8 @@ public class BlockStoneBricks extends Block {
setHardness(2F);
setResistance(5F);
setCreativeTab(MysticStones.MysticStonesTab);
setUnlocalizedName("BlockMysticStoneBricks");
setStepSound(Block.soundStoneFootstep);
}
@Override

View file

@ -25,6 +25,8 @@ public class BlockStones extends Block {
setHardness(1F);
setResistance(5F);
setCreativeTab(MysticStones.MysticStonesTab);
setUnlocalizedName("BlockMysticStones");
setStepSound(Block.soundStoneFootstep);
}
@Override

View file

@ -12,7 +12,7 @@ import net.minecraft.util.MathHelper;
public class ItemBlockPlanks extends ItemBlock {
public static String[] PLANK_TYPE = new String[] {"Purple", "Green", "Black", "Orange", "Red", "Blue", "Yellow"};
public static String[] PLANK_TYPE = new String[] {"Purple Planks", "Green Planks", "Black Planks", "Orange Planks", "Red Planks", "Blue Planks", "Yellow Planks"};
public ItemBlockPlanks(int par1) {
super(par1);

View file

@ -41,17 +41,16 @@ public class MysticStones
private Configuration config;
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
Config.initialize(new File(event.getModConfigurationDirectory(), "Mystic Mods/Mystic Stones.cfg"));
Config.save();
Planks = new BlockPlanks(Config.PlanksID).setStepSound(Block.soundWoodFootstep);
Stones = new BlockStones(Config.StonesID).setStepSound(Block.soundStoneFootstep);
StoneBricks = new BlockStoneBricks(Config.StoneBricksID).setStepSound(Block.soundStoneFootstep);
ReinforcedBricks = new BlockReinforced(Config.ReinforcedBricksID).setStepSound(Block.soundMetalFootstep);
Planks = new BlockPlanks(Config.PlanksID);
Stones = new BlockStones(Config.StonesID);
StoneBricks = new BlockStoneBricks(Config.StoneBricksID);
ReinforcedBricks = new BlockReinforced(Config.ReinforcedBricksID);
GameRegistry.registerBlock(Planks, ItemBlockPlanks.class, "Planks");
GameRegistry.registerBlock(Stones, ItemBlockStones.class, "Stones");
@ -64,7 +63,6 @@ public class MysticStones
RecipeHandler.CraftElse();
RecipeHandler.CraftReinforced();
GameRegistry.registerWorldGenerator(new WorldgenSmoothAnorthosite());
GameRegistry.registerWorldGenerator(new WorldgenSmoothLimestone());
GameRegistry.registerWorldGenerator(new WorldgenSmoothMarble());