Compare commits

...
6 Commits
Author SHA1 Message Date
Dream-Master 48a1cdbe07 bump version 2017-05-21 11:30:33 +02:00
Daniel 2eaec0d010 Should fix issues with gears. 2017-05-15 07:34:57 +02:00
Dream-Master a2b24f95cd This will remove all the GT 00 ores and add some other to the Bedrock dimension 2017-04-09 22:43:42 +02:00
Martin Robertz 9bba1f209a Merge pull request #3 from Ugachaga/patch-2
Added Blacklist config for Focus of Dislocation
2017-03-18 11:38:24 +01:00
Ugachaga 8cfa60719d Added Blacklist config for Focus of Dislocation 2017-03-18 15:43:43 +07:00
Martin Robertz 67ee85b77d Update README.md 2017-03-01 23:31:50 +01:00
6 changed files with 36 additions and 17 deletions

No files matched your search

+6
View File
@@ -13,3 +13,9 @@ This mod is made with a Deobfuscated version of Thaumcraft, loaded as a Library.
![](http://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png)
Thaumic Tinkerer Was originally by Vazkii and is licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License](http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
# Fork
This mod was forked by the GT:NH Team to continue the development of the 1.7.10 Branch.
The up-to-date Master branch can be found on our Jenkins:
http://jenkins.usrv.de
+2 -2
View File
@@ -1,6 +1,6 @@
#Thu, 30 Jan 2014 18:26:58 +0000
version=2.5-1.7.10-549GTNH
build_number=538
version=2.5-1.7.10-543GTNH
build_number=543
mc_version=1.7.10
mod_name=ThaumicTinkerer
dir.repo=./
@@ -45,6 +45,7 @@ public final class ConfigHandler {
public static int endDimensionID = 1;
public static int bedrockDimensionID = 19;
public static String[] forbiddenDimensions;
public static String[] blockBlacklist;
public static boolean enableCake = true;
public static boolean enableFire = true;
@@ -76,6 +77,10 @@ public final class ConfigHandler {
forbiddenDimensions = config.getStringList("Forbidden Dimensions", Configuration.CATEGORY_GENERAL, new String[]{""}, "Disallow Bottomless Pouch inventory for certain dimension ID's");
Property propBlockBlacklist = config.get(Configuration.CATEGORY_GENERAL, "Focus of Dislocation Blacklist", new String[]{"avaritiaddons:CompressedChest", "avaritiaddons:InfinityChest"});
propBlockBlacklist.comment = "These blocks will be disallowed for Focus of Dislocation";
blockBlacklist = propBlockBlacklist.getStringList();
Property propEnableKami = config.get(Configuration.CATEGORY_GENERAL, "kami.forceenabled", true);
propEnableKami.comment = "Set to true to enable all kami stuff (note, either this OR the kami mod file will work)";
enableKami = Loader.isModLoaded("ThaumicTinkererKami") || propEnableKami.getBoolean(true);
@@ -167,12 +167,12 @@ public class AspectCropLootManager {
addAspectLoot(Aspect.LIGHT, new ItemStack(ThaumicTinkerer.registry.getFirstItemFromClass(ItemBrightNitor.class)));
addAspectLoot(Aspect.MECHANISM, new ItemStack(Blocks.piston, 8));
addAspectLoot(Aspect.MECHANISM, "gear");
//addAspectLoot(Aspect.MECHANISM, "gear");
addAspectLoot(Aspect.CROP, new ItemStack(Items.wheat, 32));
addAspectLoot(Aspect.METAL, new ItemStack(Items.iron_ingot, 4), 100);
addAspectLoot(Aspect.METAL, "iron");
//addAspectLoot(Aspect.METAL, "iron");
addAspectLoot(Aspect.DEATH, new ItemStack(Items.bone, 32));
@@ -19,15 +19,15 @@ public enum EnumOreFrequency {
ALUMINUM("oreAluminum", 617),
AMBER("oreAmber", 161),
APATITE("oreApatite", 269),
BLUE_TOPAZ("oreBlueTopaz", 238),
CERTUS_QUARTZ("oreCertusQuartz", 234),
CHIMERITE("oreChimerite", 270),
TOPAZ("oreTopaz", 238),
SILICON("oreSilicon", 234),
ILMENITE("oreIlmenite", 270),
CINNABAR("oreCinnabar", 172),
COAL("oreCoal", 2648),
COPPER("oreCopper", 603),
DIAMOND("oreDiamond", 67),
EMERALD("oreEmerald", 48),
DARK_IRON("oreFzDarkIron", 61),
TANZANITE("oreTanzanite", 61),
GOLD("oreGold", 164),
AIR("oreInfusedAir", 94),
EARTH("oreInfusedEarth", 35),
@@ -38,17 +38,17 @@ public enum EnumOreFrequency {
IRON("oreIron", 1503),
LAPIS("oreLapis", 57),
LEAD("oreLead", 335),
NICKEL("oreNickel", 72),
//DRACONIUM("oreDraconium", 72),
PERIDOT("orePeridot", 79),
REDSTONE("oreRedstone", 364),
RUBY("oreRuby", 57),
SALT("oreSaltpeter", 768),
//METEORICIRON("oreMeteoricIron", 86),
SAPPHIRE("oreSapphire", 70),
SILVER("oreSilver", 416),
SULFUR("oreSulfur", 105),
MALACHITE("oreMalachite", 416),
DESH("oreDesh", 105),
TIN("oreTin", 507),
URANIUM("oreUranium", 112),
VINETUM("oreVinteum", 392);
URANIUM("oreUranium", 112);
//ELECTROTINE("oreElectrotine", 392);
public int freq;
public String name;
@@ -38,6 +38,7 @@ import thaumcraft.common.config.ConfigItems;
import thaumcraft.common.items.wands.ItemWandCasting;
import thaumic.tinkerer.client.core.helper.IconHelper;
import thaumic.tinkerer.common.ThaumicTinkerer;
import thaumic.tinkerer.common.core.handler.ConfigHandler;
import thaumic.tinkerer.common.core.helper.ItemNBTHelper;
import thaumic.tinkerer.common.lib.LibItemNames;
import thaumic.tinkerer.common.lib.LibResearch;
@@ -74,6 +75,15 @@ public class ItemFocusDislocation extends ItemModFocus {
ornament = IconHelper.forItem(par1IconRegister, this, "Orn");
}
private static boolean isBlockAllowed (Block block) {
String currentBlock = Block.blockRegistry.getNameForObject(block);
for (String blacklistedBlock : ConfigHandler.blockBlacklist) {
if (currentBlock.equals(blacklistedBlock))
return false;
}
return true;
}
@Override
public ItemStack onFocusRightClick(ItemStack itemstack, World world, EntityPlayer player, MovingObjectPosition mop) {
if (mop == null)
@@ -123,7 +133,7 @@ public class ItemFocusDislocation extends ItemModFocus {
}
world.playSoundAtEntity(player, "thaumcraft:wand", 0.5F, 1F);
}
} else if (!blacklist.contains(block) && !ThaumcraftApi.portableHoleBlackList.contains(block) && block != null && block.getBlockHardness(world, mop.blockX, mop.blockY, mop.blockZ) != -1F && wand.consumeAllVis(itemstack, player, getCost(tile), true, false)) {
} else if (!blacklist.contains(block) && isBlockAllowed(block) && !ThaumcraftApi.portableHoleBlackList.contains(block) && block != null && block.getBlockHardness(world, mop.blockX, mop.blockY, mop.blockZ) != -1F && wand.consumeAllVis(itemstack, player, getCost(tile), true, false)) {
if (!world.isRemote) {
world.removeTileEntity(mop.blockX, mop.blockY, mop.blockZ);
world.setBlock(mop.blockX, mop.blockY, mop.blockZ, Blocks.air, 0, 1 | 2);
@@ -246,11 +256,9 @@ public class ItemFocusDislocation extends ItemModFocus {
return visUsage;
}
static {
blacklist.add(Blocks.piston_extension);
blacklist.add(Blocks.piston_head);
}
@Override