Un-hardcoded smooth stone chiseling and made it configurable

This commit is contained in:
Tonius committed 2015-01-14 11:10:29 +01:00
1 parent 54514b6b72
commit 93465884ab
3 files changed
+4 -3

No files matched your search

@@ -2021,6 +2021,8 @@ public enum Features {
void addBlocks() {
BlockCarvable stonebricksmooth = (BlockCarvable) new BlockCarvable(Material.rock).setCreativeTab(ChiselTabs.tabStoneChiselBlocks).setHardness(1.5F).setResistance(10.0F)
.setStepSound(Block.soundTypeStone);
if (Configurations.allowSmoothStone)
Carving.chisel.addVariation("stonebricksmooth", Blocks.stone, 0, -1);
for (int i = 0; i < 4; i++) {
if (i == 1) {
if (Configurations.allowMossy)
@@ -100,9 +100,6 @@ public class Carving {
}
public CarvingGroup getGroup(Block block, int metadata) {
if (block.equals(Blocks.stone))
block = Blocks.stonebrick;
// Check name first
CarvingGroup res;
int i = OreDictionary.getOreID(block.getUnlocalizedName());
@@ -18,6 +18,7 @@ public class Configurations {
public static boolean ghostCloud;
public static int factoryBlockAmount;
public static boolean allowMossy;
public static boolean allowSmoothStone;
public static boolean chiselRecipe;
public static boolean enableFMP;
public static boolean chiselStoneToCobbleBricks;
@@ -54,6 +55,7 @@ public class Configurations {
ghostCloud = config.get(category, "doesCloudRenderLikeGhost", true).getBoolean(true);
factoryBlockAmount = config.get(category, "amountYouGetFromFactoryBlockCrafting", 32).getInt(32);
allowMossy = config.get(category, "allowCobbleToMossyInChisel", true).getBoolean(true);
allowSmoothStone = config.get(category, "allowSmoothStoneToStoneBricksAndBack", true).getBoolean(true);
chiselRecipe = config.get(category, "chiselAlternateRecipe", false, "Use alternative crafting recipe for the chisel").getBoolean(false);
enableFMP = config.get(category, "enableFMP", true, "Do you want to enable FMP").getBoolean(true);
chiselStoneToCobbleBricks = config.get(category, "chiselStoneToCobbleBricks", true, "Chisel stone to cobblestone and bricks by left clicking.").getBoolean(false);