mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-11-28 16:06:07 +00:00
Compare commits
22
Commits
2.5.552
...
2.5.442-GTNH
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2b24f95cd | ||
|
|
9bba1f209a | ||
|
|
8cfa60719d | ||
|
|
67ee85b77d | ||
|
|
0c4cdad475 | ||
|
|
dfec103fcf | ||
|
|
0da10ce8d4 | ||
|
|
f35d8a755f | ||
|
|
eee99a0c81 | ||
|
|
db3bb554b4 | ||
|
|
2e1794b484 | ||
|
|
579c850ca1 | ||
|
|
47896bc02d | ||
|
|
97dc338023 | ||
|
|
79f59db6f5 | ||
|
|
da0bcacdf4 | ||
|
|
d40e8585b3 | ||
|
|
aa41a8485f | ||
|
|
d179e36347 | ||
|
|
3c9322af05 | ||
|
|
9655c9b58d | ||
|
|
a9a7eabb72 |
No files matched your search
@@ -48,3 +48,4 @@ Thumbs.db
|
||||
*.log
|
||||
*.lck
|
||||
/target/
|
||||
*.bat
|
||||
@@ -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
|
||||
+26
-67
@@ -1,4 +1,4 @@
|
||||
buildscript {
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
@@ -12,20 +12,12 @@
|
||||
maven {
|
||||
url 'https://oss.sonatype.org/content/groups/public'
|
||||
}
|
||||
maven { url 'https://plugins.gradle.org/m2/' }
|
||||
mavenLocal()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
|
||||
classpath 'com.gradle:build-scan-plugin:1.3'
|
||||
}
|
||||
}
|
||||
apply plugin: 'com.gradle.build-scan'
|
||||
|
||||
buildScan {
|
||||
licenseAgreementUrl = 'https://gradle.com/terms-of-service'
|
||||
licenseAgree = 'yes'
|
||||
}
|
||||
repositories {
|
||||
ivy {
|
||||
|
||||
@@ -45,34 +37,26 @@ repositories {
|
||||
name 'DVS1 Maven FS'
|
||||
url 'http://dvs1.progwml6.com/files/maven'
|
||||
}
|
||||
maven { // the repo from which to get NEI and stuff
|
||||
name 'CB Repo'
|
||||
url "http://chickenbones.net/maven/"
|
||||
}
|
||||
maven { // The repo from which to get waila
|
||||
name "Mobius Repo"
|
||||
url "http://mobiusstrip.eu/maven"
|
||||
}
|
||||
maven {
|
||||
|
||||
url 'http://maven.cil.li/'
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
String changelogLoc = 'https://raw.github.com/Thaumic-Tinkerer/ThaumicTinkerer/changelog/web/changelog'
|
||||
|
||||
//apply plugin: 'curseforge'
|
||||
apply plugin: 'forge'
|
||||
//apply plugin: "curseforge"
|
||||
|
||||
|
||||
version = "2.5-1.7.10"
|
||||
if (project.hasProperty("buildnum"))
|
||||
version = "2.5-1.7.10-" + project.buildnum
|
||||
if (project.hasProperty("releaseType"))
|
||||
if (project.releaseType == "ALPHA")
|
||||
version = "alpha-" + version
|
||||
|
||||
group = "thaumic.tinkerer" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
archivesBaseName = "ThaumicTinkerer"
|
||||
|
||||
minecraft {
|
||||
version = "1.7.10-10.13.4.1614-1.7.10"
|
||||
//minecraftVersion="1.7.2"
|
||||
//minecraftVersion="1.7.10"
|
||||
runDir = "eclipse"
|
||||
replace '${version}', project.version
|
||||
//coreMod("tconstruct.preloader.TConstructLoaderContainer")
|
||||
@@ -81,53 +65,28 @@ minecraft {
|
||||
|
||||
|
||||
}
|
||||
version = "2.5-${minecraft.version}"
|
||||
if (System.getenv("BUILD_NUMBER")!=null)
|
||||
version = "$version-${System.getenv().BUILD_NUMBER}"
|
||||
if (project.hasProperty("releaseType"))
|
||||
if (project.releaseType == "ALPHA")
|
||||
version = "alpha-" + version
|
||||
//curse {
|
||||
// projectId="75598"
|
||||
// version = "2.5-${minecraft.version}"
|
||||
// if (System.getenv("BUILD_NUMBER")!=null)
|
||||
// version = "$version-${System.getenv().BUILD_NUMBER}"
|
||||
// if(project.hasProperty("apiKey"))
|
||||
// apiKey=project.apiKey
|
||||
// changelog=" "
|
||||
// releaseType="release"
|
||||
// addGameVersion "{minecraft.version}"
|
||||
// projectId="75598"
|
||||
// if(project.hasProperty("apiKey"))
|
||||
// apiKey=project.apiKey
|
||||
// changelog="test"
|
||||
// if(project.hasProperty("releaseType"))
|
||||
// releaseType=project.releaseType
|
||||
//}
|
||||
|
||||
|
||||
dependencies {
|
||||
compile "codechicken:CodeChickenLib:1.7.10-1.1.3.140:dev"
|
||||
compile "codechicken:CodeChickenCore:1.7.10-1.0.7.47:dev"
|
||||
compile "mcp.mobius.waila:Waila:1.5.10_1.7.10"
|
||||
compile "codechicken:ForgeMultipart:1.7.10-1.1.2.331:dev"
|
||||
|
||||
compile 'com.mod-buildcraft:buildcraft:6.4.8:dev'
|
||||
compile "codechicken:NotEnoughItems:1.7.10-1.0.5.118:dev"
|
||||
compile "codechicken:EnderStorage:1.7.10-1.4.7.37:dev"
|
||||
compile "mantle:Mantle:1.7.10-0.3.2.jenkins187:deobf"
|
||||
compile "li.cil.oc:OpenComputers:MC1.7.10-1.5.7.536-dev:api"
|
||||
compile "li.cil.oc:OpenComputers:MC1.7.10-1.5.7.536-dev:dev"
|
||||
compile("tconstruct:TConstruct:1.7.10-1.8.3.build927:deobf") {
|
||||
}
|
||||
dependencies {
|
||||
compile files(
|
||||
'TCDEOBF.jar'
|
||||
)
|
||||
compile files("libs/Mantle-1.7.10-0.3.2.jar")
|
||||
compile files("libs/TConstruct-1.7.10-1.8.9-GTNH.jar") {
|
||||
//exclude module: 'CodeChickenCore'
|
||||
//exclude module: 'Waila'
|
||||
//exclude module: 'NotEnoughItems'
|
||||
}
|
||||
// some crazy stuff to make sure the chicken stuff is in the mods folder...
|
||||
// because it wont work otherwise... because FML doesnt laod coremods from the classpath
|
||||
task copyChicken(type: Copy, dependsOn: "extractUserDev") {
|
||||
from { configurations.compile }
|
||||
include "**/*Chicken*.jar", "**/*NotEnoughItems*.jar"
|
||||
exclude "**/CodeChickenLib*" // because CCC downloads it anyways.. -_-
|
||||
into file(minecraft.runDir + "/mods")
|
||||
|
||||
mustRunAfter "deobfBinJar"
|
||||
mustRunAfter "repackMinecraft"
|
||||
}
|
||||
//tasks.setupDevWorkspace.dependsOn copyChicken
|
||||
//tasks.setupDecompWorkspace.dependsOn copyChicken
|
||||
|
||||
processResources
|
||||
{
|
||||
// replace stuff in mcmod.info, nothing else
|
||||
@@ -151,4 +110,4 @@ jar {
|
||||
task deobfJar(type: Jar) {
|
||||
from sourceSets.main.output
|
||||
classifier = 'dev'
|
||||
}
|
||||
}
|
||||
+5
-5
@@ -1,10 +1,10 @@
|
||||
#Thu, 30 Jan 2014 18:26:58 +0000
|
||||
version=2.3 tc4.1
|
||||
build_number=91
|
||||
mc_version=1.6.4
|
||||
version=2.5-1.7.10-542GTNH
|
||||
build_number=542
|
||||
mc_version=1.7.10
|
||||
mod_name=ThaumicTinkerer
|
||||
dir.repo=./
|
||||
dir.gradle=../MCP16/forge
|
||||
dir.gradle=../MCP1710/forge
|
||||
dir.output=../ANT Output
|
||||
dir.temp=../temp
|
||||
file.version=./web/version.json
|
||||
file.version=./web/version.json
|
||||
+1
-1
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=http\://services.gradle.org/distributions/gradle-1.10-all.zip
|
||||
distributionUrl=http\://services.gradle.org/distributions/gradle-2.10-all.zip
|
||||
@@ -1,4 +0,0 @@
|
||||
gradle clean cleanCache --refresh-dependencies
|
||||
gradle setupDecompWorkspace
|
||||
gradle idea --assetIndex
|
||||
gradle genIntellijRuns
|
||||
@@ -145,7 +145,7 @@ public class BlockWardSlab extends BlockSlab implements ITTinkererBlock,ITileEnt
|
||||
}
|
||||
return new ThaumicTinkererCraftingBenchRecipe("PAVEWARD", new ItemStack(ThaumicTinkerer.registry.getFirstBlockFromClass(BlockWardSlab.class), 6),
|
||||
"QQQ",
|
||||
'Q', new ItemStack(ConfigBlocks.blockCosmeticSolid,3));
|
||||
'Q', new ItemStack(ConfigBlocks.blockCosmeticSolid, 1,3));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -90,7 +90,7 @@ public abstract class BlockFireBase extends BlockFire implements ITTinkererBlock
|
||||
}
|
||||
|
||||
public int tickRate(World p_149738_1_) {
|
||||
return 200;
|
||||
return ConfigHandler.enableFireMechanics ? 200 : 0x7ffffff0;
|
||||
}
|
||||
|
||||
public void setBlockWithTransmutationTarget(World world, int x, int y, int z, int meta, Block block) {
|
||||
@@ -104,7 +104,7 @@ public abstract class BlockFireBase extends BlockFire implements ITTinkererBlock
|
||||
|
||||
public void updateTick(World world, int x, int y, int z, Random rand) {
|
||||
|
||||
if (world.getGameRules().getGameRuleBooleanValue("doFireTick") && ConfigHandler.enableFire) {
|
||||
if (world.getGameRules().getGameRuleBooleanValue("doFireTick") && ConfigHandler.enableFire && ConfigHandler.enableFireMechanics) {
|
||||
|
||||
if (world.isRaining() && (world.canLightningStrikeAt(x, y, z) || world.canLightningStrikeAt(x - 1, y, z) || world.canLightningStrikeAt(x + 1, y, z) || world.canLightningStrikeAt(x, y, z - 1) || world.canLightningStrikeAt(x, y, z + 1))) {
|
||||
world.setBlockToAir(x, y, z);
|
||||
|
||||
@@ -44,8 +44,12 @@ public final class ConfigHandler {
|
||||
public static int netherDimensionID = -1;
|
||||
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;
|
||||
public static boolean enableFireMechanics = true;
|
||||
public static boolean cropsAllowBonemeal = true;
|
||||
|
||||
public static int potionFireId = 86;
|
||||
@@ -54,6 +58,7 @@ public final class ConfigHandler {
|
||||
public static int potionAirId = 90;
|
||||
private static Configuration config;
|
||||
|
||||
|
||||
public static void loadConfig(File configFile) {
|
||||
config = new Configuration(configFile);
|
||||
|
||||
@@ -70,6 +75,12 @@ public final class ConfigHandler {
|
||||
|
||||
config.load();
|
||||
|
||||
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);
|
||||
@@ -104,8 +115,13 @@ public final class ConfigHandler {
|
||||
useOreDictMetal = propOreDict.getBoolean(true);
|
||||
|
||||
Property propImbuedFire = config.get(Configuration.CATEGORY_GENERAL, "imbuedFire.enabled", true);
|
||||
propImbuedFire.comment = "Set to false to disable imbued fire.";
|
||||
enableFire = propImbuedFire.getBoolean(true);
|
||||
|
||||
Property propImbuedFireSpread = config.get(Configuration.CATEGORY_GENERAL, "imbuedFireSpread.enabled", true);
|
||||
propImbuedFireSpread.comment = "Set to false to disable imbued fire spreading/acting mechanism.";
|
||||
enableFireMechanics = propImbuedFireSpread.getBoolean(true);
|
||||
|
||||
Property propImbuedFireCake = config.get(Configuration.CATEGORY_GENERAL, "imbuedFire.cake.enabled", true);
|
||||
propImbuedFireCake.comment = "Set to false to disable imbued fire making cake. For those people who don't like cake";
|
||||
enableCake = propImbuedFireCake.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
|
||||
|
||||
@@ -31,6 +31,7 @@ import thaumic.tinkerer.common.block.tile.container.kami.ContainerIchorPouch;
|
||||
import thaumic.tinkerer.common.block.tile.container.kami.ContainerWarpGate;
|
||||
import thaumic.tinkerer.common.block.tile.kami.TileWarpGate;
|
||||
import thaumic.tinkerer.common.block.tile.tablet.TileAnimationTablet;
|
||||
import thaumic.tinkerer.common.core.handler.ConfigHandler;
|
||||
import thaumic.tinkerer.common.lib.LibGuiIDs;
|
||||
|
||||
public class GuiHandler implements IGuiHandler {
|
||||
@@ -52,6 +53,7 @@ public class GuiHandler implements IGuiHandler {
|
||||
return new ContainerAspectAnalyzer((TileAspectAnalyzer) tile, player.inventory);
|
||||
|
||||
case LibGuiIDs.GUI_ID_ICHOR_POUCH:
|
||||
if (!isDimensionAllowed(player)) return null;
|
||||
return new ContainerIchorPouch(player);
|
||||
|
||||
case LibGuiIDs.GUI_ID_WARP_GATE:
|
||||
@@ -79,6 +81,7 @@ public class GuiHandler implements IGuiHandler {
|
||||
return new GuiAspectAnalyzer((TileAspectAnalyzer) tile, player.inventory);
|
||||
|
||||
case LibGuiIDs.GUI_ID_ICHOR_POUCH:
|
||||
if (!isDimensionAllowed(player)) return null;
|
||||
return new GuiIchorPouch(new ContainerIchorPouch(player));
|
||||
|
||||
case LibGuiIDs.GUI_ID_WARP_GATE:
|
||||
@@ -92,4 +95,12 @@ public class GuiHandler implements IGuiHandler {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static boolean isDimensionAllowed (EntityPlayer player) {
|
||||
Integer currentDimID = (player.worldObj.provider.dimensionId);
|
||||
for (String id : ConfigHandler.forbiddenDimensions) {
|
||||
if (id.equals(currentDimID.toString())) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -151,6 +151,7 @@ tile.forcefield.name=Forcefield
|
||||
tile.travelSlab.name=Paving Slab of Travel
|
||||
tile.travelSlabFull.name=Paving Slab of Travel
|
||||
tile.travelStairs.name=Paving Stair of Travel
|
||||
tile.wardSlab.name=Paving Slab of Warding
|
||||
# Fire
|
||||
tile.fireWater.name=Aqua Imbued Fire
|
||||
|
||||
|
||||
Reference in new issue
Block a user