mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-19 11:59:17 +00:00
Added config option to disable reinforced obsidian.
This commit is contained in:
1 parent
4691db768f
commit
ca44f2742d
4 files changed
+17
-2
No files matched your search
@@ -9,6 +9,7 @@ import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import crazypants.enderio.BlockEio;
|
||||
import crazypants.enderio.ModObject;
|
||||
import crazypants.enderio.config.Config;
|
||||
import crazypants.enderio.gui.IResourceTooltipProvider;
|
||||
import crazypants.enderio.machine.painter.TileEntityPaintedBlock;
|
||||
import crazypants.enderio.material.BlockFusedQuartz;
|
||||
@@ -26,6 +27,10 @@ public class BlockReinforcedObsidian extends BlockEio implements IResourceToolti
|
||||
setHardness(50.0F);
|
||||
setResistance(2000.0F);
|
||||
setStepSound(soundTypePiston);
|
||||
|
||||
if(!Config.reinforcedObsidianEnabled) {
|
||||
setCreativeTab(null);
|
||||
}
|
||||
}
|
||||
|
||||
public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity) {
|
||||
|
||||
@@ -60,6 +60,8 @@ public final class Config {
|
||||
|
||||
public static final double DEFAULT_CONDUIT_SCALE = 0.5;
|
||||
|
||||
public static boolean reinforcedObsidianEnabled = true;
|
||||
|
||||
public static boolean useAlternateBinderRecipe;
|
||||
|
||||
public static boolean useAlternateTesseractModel;
|
||||
@@ -386,6 +388,9 @@ public final class Config {
|
||||
useSneakMouseWheelYetaWrench = true;
|
||||
}
|
||||
|
||||
reinforcedObsidianEnabled = config.get(sectionItems.name, "reinforcedObsidianEnabled", reinforcedObsidianEnabled,
|
||||
"When set to false reinforced obsidian is not craftable.").getBoolean(reinforcedObsidianEnabled);
|
||||
|
||||
travelAnchorEnabled = config.get(sectionItems.name, "travelAnchorEnabled", travelAnchorEnabled,
|
||||
"When set to false: the travel anchor will not be craftable.").getBoolean(travelAnchorEnabled);
|
||||
|
||||
|
||||
@@ -148,8 +148,10 @@ public class MaterialRecipes {
|
||||
GameRegistry.addShapedRecipe(enderCapacitor, " e ", "cgc", " e ", 'e', phasedGold, 'c', activatedCapacitor, 'g', Blocks.glowstone);
|
||||
}
|
||||
|
||||
ItemStack reinfObs = new ItemStack(EnderIO.blockReinforcedObsidian);
|
||||
GameRegistry.addShapedRecipe(reinfObs , "dbd", "bob", "dbd", 'd', darkSteel, 'b', EnderIO.blockDarkIronBars, 'o', Blocks.obsidian);
|
||||
if(Config.reinforcedObsidianEnabled) {
|
||||
ItemStack reinfObs = new ItemStack(EnderIO.blockReinforcedObsidian);
|
||||
GameRegistry.addShapedRecipe(reinfObs , "dbd", "bob", "dbd", 'd', darkSteel, 'b', EnderIO.blockDarkIronBars, 'o', Blocks.obsidian);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -30,6 +30,9 @@ public class NEIEnderIOConfig implements IConfigureNEI {
|
||||
if(!Config.travelAnchorEnabled) {
|
||||
API.hideItem(new ItemStack(EnderIO.itemTravelStaff));
|
||||
}
|
||||
if(!Config.reinforcedObsidianEnabled) {
|
||||
API.hideItem(new ItemStack(EnderIO.blockReinforcedObsidian));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user