mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-11-28 16:06:07 +00:00
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2b24f95cd | ||
|
|
9bba1f209a | ||
|
|
8cfa60719d | ||
|
|
67ee85b77d |
No files matched your search
@@ -13,3 +13,9 @@ This mod is made with a Deobfuscated version of Thaumcraft, loaded as a Library.
|
||||

|
||||
|
||||
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
@@ -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-542GTNH
|
||||
build_number=542
|
||||
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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user