mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-26 06:43:01 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
569bfe29b1 | ||
|
|
50d3663fbe | ||
|
|
93f048f3d6 | ||
|
|
0e1d5d969a |
No files matched your search
+2
-2
@@ -1,10 +1,10 @@
|
||||
// Add your dependencies here
|
||||
|
||||
dependencies {
|
||||
compileOnly 'com.github.GTNewHorizons:GT5-Unofficial:5.09.49.47:dev'
|
||||
compileOnly 'com.github.GTNewHorizons:GT5-Unofficial:5.09.48.12:dev'
|
||||
api 'com.github.GTNewHorizons:Baubles:1.0.4:dev'
|
||||
api 'com.github.GTNewHorizons:ModularUI:1.2.0:dev'
|
||||
api ('com.github.GTNewHorizons:ThaumicBoots:1.3.7:dev'){
|
||||
api ('com.github.GTNewHorizons:ThaumicBoots:1.3.5:dev'){
|
||||
exclude group: 'com.github.GTNewHorizons', module: 'Electro-Magic-Tools'
|
||||
}
|
||||
|
||||
|
||||
+1
-12
@@ -85,11 +85,6 @@ accessTransformersFile =
|
||||
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
|
||||
usesMixins = false
|
||||
|
||||
# Set to a non-empty string to configure mixins in a separate source set under src/VALUE, instead of src/main.
|
||||
# This can speed up compile times thanks to not running the mixin annotation processor on all input sources.
|
||||
# Mixin classes will have access to "main" classes, but not the other way around.
|
||||
separateMixinSourceSet =
|
||||
|
||||
# Adds some debug arguments like verbose output and class export.
|
||||
usesMixinDebug = false
|
||||
|
||||
@@ -122,15 +117,9 @@ minimizeShadowedDependencies = true
|
||||
# If disabled, won't rename the shadowed classes.
|
||||
relocateShadowedDependencies = true
|
||||
|
||||
# Adds CurseMaven, Modrinth, and some more well-known 1.7.10 repositories.
|
||||
# Adds the GTNH maven, CurseMaven, Modrinth, and some more well-known 1.7.10 repositories.
|
||||
includeWellKnownRepositories = true
|
||||
|
||||
# A list of repositories to exclude from the includeWellKnownRepositories setting. Should be a space separated
|
||||
# list of strings, with the acceptable keys being(case does not matter):
|
||||
# cursemaven
|
||||
# modrinth
|
||||
excludeWellKnownRepositories =
|
||||
|
||||
# Change these to your Maven coordinates if you want to publish to a custom Maven repository instead of the default GTNH Maven.
|
||||
# Authenticate with the MAVEN_USER and MAVEN_PASSWORD environment variables.
|
||||
# If you need a more complex setup disable maven publishing here and add a publishing repository to addon.gradle.
|
||||
|
||||
Vendored
BIN
Binary file not shown.
+1
-1
@@ -1,6 +1,6 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
@@ -15,8 +15,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
@@ -57,7 +55,7 @@
|
||||
# Darwin, MinGW, and NonStop.
|
||||
#
|
||||
# (3) This script is generated from the Groovy template
|
||||
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# within the Gradle project.
|
||||
#
|
||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||
@@ -86,8 +84,7 @@ done
|
||||
# shellcheck disable=SC2034
|
||||
APP_BASE_NAME=${0##*/}
|
||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
|
||||
' "$PWD" ) || exit
|
||||
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD=maximum
|
||||
|
||||
Vendored
-2
@@ -13,8 +13,6 @@
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
@rem SPDX-License-Identifier: Apache-2.0
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%"=="" @echo off
|
||||
@rem ##########################################################################
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ pluginManagement {
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.26'
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.22'
|
||||
}
|
||||
|
||||
|
||||
@@ -9,10 +9,9 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
import emt.tile.GT_MetaTileEntity_ResearchCompleter;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import gregtech.api.enums.GT_Values;
|
||||
import gregtech.api.enums.ItemList;
|
||||
import gregtech.api.enums.Materials;
|
||||
import gregtech.api.enums.MetaTileEntityIDs;
|
||||
import gregtech.api.enums.OrePrefixes;
|
||||
import gregtech.api.enums.TierEU;
|
||||
import gregtech.api.util.GT_OreDictUnificator;
|
||||
@@ -20,12 +19,13 @@ import thaumcraft.common.config.ConfigItems;
|
||||
|
||||
public class EMT_GT_Loader {
|
||||
|
||||
public static ItemStack ResearchMultiblock;
|
||||
|
||||
public static void run() {
|
||||
ItemList.ResearchCompleter.set(
|
||||
new GT_MetaTileEntity_ResearchCompleter(
|
||||
MetaTileEntityIDs.ResearchCompleter.ID,
|
||||
"Research Completer",
|
||||
"Research Completer").getStackForm(1L));
|
||||
ResearchMultiblock = new GT_MetaTileEntity_ResearchCompleter(
|
||||
EMTConfigHandler.aIDoffset + GT_Values.VN.length + 2,
|
||||
"Research Completer",
|
||||
"Research Completer").getStackForm(1L);
|
||||
}
|
||||
|
||||
public static void runlate() {
|
||||
|
||||
@@ -12,7 +12,6 @@ import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import emt.EMT;
|
||||
import emt.util.EMTConfigHandler;
|
||||
@@ -1092,58 +1091,54 @@ public class EMTRecipes {
|
||||
|
||||
/** IC2 Stuff related recipes **/
|
||||
|
||||
final boolean isDreamcraftLoaded = Loader.isModLoaded("dreamcraft");
|
||||
/* Ore Clusters Macerator Recipes */
|
||||
ItemStack ironClusterRecipe = IC2Items.getItem("smallIronDust").copy();
|
||||
ironClusterRecipe.stackSize = 22;
|
||||
((BasicMachineRecipeManager) Recipes.macerator).addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 16)),
|
||||
null,
|
||||
true,
|
||||
ironClusterRecipe);
|
||||
|
||||
if (isDreamcraftLoaded) {
|
||||
/* Ore Clusters Macerator Recipes */
|
||||
ItemStack ironClusterRecipe = IC2Items.getItem("smallIronDust").copy();
|
||||
ironClusterRecipe.stackSize = 22;
|
||||
((BasicMachineRecipeManager) Recipes.macerator).addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 16)),
|
||||
null,
|
||||
true,
|
||||
ironClusterRecipe);
|
||||
ItemStack goldClusterRecipe = IC2Items.getItem("smallGoldDust").copy();
|
||||
goldClusterRecipe.stackSize = 22;
|
||||
((BasicMachineRecipeManager) Recipes.macerator).addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 31)),
|
||||
null,
|
||||
true,
|
||||
goldClusterRecipe);
|
||||
|
||||
ItemStack goldClusterRecipe = IC2Items.getItem("smallGoldDust").copy();
|
||||
goldClusterRecipe.stackSize = 22;
|
||||
((BasicMachineRecipeManager) Recipes.macerator).addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 31)),
|
||||
null,
|
||||
true,
|
||||
goldClusterRecipe);
|
||||
ItemStack copperClusterRecipe = IC2Items.getItem("smallCopperDust").copy();
|
||||
copperClusterRecipe.stackSize = 22;
|
||||
((BasicMachineRecipeManager) Recipes.macerator).addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 17)),
|
||||
null,
|
||||
true,
|
||||
copperClusterRecipe);
|
||||
|
||||
ItemStack copperClusterRecipe = IC2Items.getItem("smallCopperDust").copy();
|
||||
copperClusterRecipe.stackSize = 22;
|
||||
((BasicMachineRecipeManager) Recipes.macerator).addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 17)),
|
||||
null,
|
||||
true,
|
||||
copperClusterRecipe);
|
||||
ItemStack tinClusterRecipe = IC2Items.getItem("smallTinDust").copy();
|
||||
tinClusterRecipe.stackSize = 22;
|
||||
((BasicMachineRecipeManager) Recipes.macerator).addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 18)),
|
||||
null,
|
||||
true,
|
||||
tinClusterRecipe);
|
||||
|
||||
ItemStack tinClusterRecipe = IC2Items.getItem("smallTinDust").copy();
|
||||
tinClusterRecipe.stackSize = 22;
|
||||
((BasicMachineRecipeManager) Recipes.macerator).addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 18)),
|
||||
null,
|
||||
true,
|
||||
tinClusterRecipe);
|
||||
ItemStack silverClusterRecipe = IC2Items.getItem("smallSilverDust").copy();
|
||||
silverClusterRecipe.stackSize = 22;
|
||||
((BasicMachineRecipeManager) Recipes.macerator).addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 19)),
|
||||
null,
|
||||
true,
|
||||
silverClusterRecipe);
|
||||
|
||||
ItemStack silverClusterRecipe = IC2Items.getItem("smallSilverDust").copy();
|
||||
silverClusterRecipe.stackSize = 22;
|
||||
((BasicMachineRecipeManager) Recipes.macerator).addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 19)),
|
||||
null,
|
||||
true,
|
||||
silverClusterRecipe);
|
||||
|
||||
ItemStack leadClusterRecipe = IC2Items.getItem("smallLeadDust").copy();
|
||||
leadClusterRecipe.stackSize = 22;
|
||||
((BasicMachineRecipeManager) Recipes.macerator).addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 20)),
|
||||
null,
|
||||
true,
|
||||
leadClusterRecipe);
|
||||
}
|
||||
ItemStack leadClusterRecipe = IC2Items.getItem("smallLeadDust").copy();
|
||||
leadClusterRecipe.stackSize = 22;
|
||||
((BasicMachineRecipeManager) Recipes.macerator).addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 20)),
|
||||
null,
|
||||
true,
|
||||
leadClusterRecipe);
|
||||
|
||||
/* Thaumium Plates Recipes */
|
||||
thaumiumPlate = GameRegistry.addShapedRecipe(
|
||||
@@ -1157,79 +1152,76 @@ public class EMTRecipes {
|
||||
new ItemStack(IC2Items.getItem("ForgeHammer").getItem(), 1, OreDictionary.WILDCARD_VALUE),
|
||||
'Z',
|
||||
new ItemStack(Blocks.obsidian));
|
||||
Recipes.metalformerRolling.addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(ConfigItems.itemResource, 1, 2)),
|
||||
null,
|
||||
new ItemStack(EMTItems.itemEMTItems, 1, 5));
|
||||
|
||||
if (isDreamcraftLoaded) {
|
||||
Recipes.metalformerRolling.addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(ConfigItems.itemResource, 1, 2)),
|
||||
null,
|
||||
new ItemStack(EMTItems.itemEMTItems, 1, 5));
|
||||
|
||||
/* Ore Processing for Amber and Cinnabar */
|
||||
if (EMTConfigHandler.removeAmberAndCinnabarMacerating) {
|
||||
for (Iterator<IRecipeInput> it = Recipes.macerator.getRecipes().keySet().iterator(); it.hasNext();) {
|
||||
IRecipeInput input = it.next();
|
||||
if (input.matches(new ItemStack(ConfigBlocks.blockCustomOre, 1, 7))) {
|
||||
it.remove();
|
||||
EMT.LOGGER.info("Removing conflicting amber macerating recipe(s)");
|
||||
}
|
||||
}
|
||||
|
||||
for (Iterator<IRecipeInput> it = Recipes.macerator.getRecipes().keySet().iterator(); it.hasNext();) {
|
||||
IRecipeInput input = it.next();
|
||||
if (input.matches(new ItemStack(ConfigBlocks.blockCustomOre, 1, 0))) {
|
||||
it.remove();
|
||||
EMT.LOGGER.info("Removing Conflicting cinnabar macerating recipe(s)");
|
||||
}
|
||||
/* Ore Processing for Amber and Cinnabar */
|
||||
if (EMTConfigHandler.removeAmberAndCinnabarMacerating) {
|
||||
for (Iterator<IRecipeInput> it = Recipes.macerator.getRecipes().keySet().iterator(); it.hasNext();) {
|
||||
IRecipeInput input = it.next();
|
||||
if (input.matches(new ItemStack(ConfigBlocks.blockCustomOre, 1, 7))) {
|
||||
it.remove();
|
||||
EMT.LOGGER.info("Removing conflicting amber macerating recipe(s)");
|
||||
}
|
||||
}
|
||||
ItemStack crushedAmberRecipe = new ItemStack(EMTItems.itemEMTItems, 1, 1);
|
||||
crushedAmberRecipe.stackSize = 2;
|
||||
Recipes.macerator.addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(ConfigBlocks.blockCustomOre, 1, 7)),
|
||||
null,
|
||||
crushedAmberRecipe);
|
||||
|
||||
ItemStack crushedCinnabarRecipe = new ItemStack(EMTItems.itemEMTItems, 1, 3);
|
||||
crushedCinnabarRecipe.stackSize = 2;
|
||||
Recipes.macerator.addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(ConfigBlocks.blockCustomOre, 1, 0)),
|
||||
null,
|
||||
crushedCinnabarRecipe);
|
||||
|
||||
NBTTagCompound waterAmount = new NBTTagCompound();
|
||||
waterAmount.setInteger("amount", 1000);
|
||||
|
||||
ItemStack smallCopperDust = IC2Items.getItem("smallCopperDust");
|
||||
smallCopperDust.stackSize = 2;
|
||||
ItemStack smallTinDust = IC2Items.getItem("smallTinDust");
|
||||
smallCopperDust.stackSize = 2;
|
||||
|
||||
Recipes.oreWashing.addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(EMTItems.itemEMTItems, 1, 1)),
|
||||
waterAmount,
|
||||
new ItemStack(EMTItems.itemEMTItems, 1, 2),
|
||||
smallCopperDust,
|
||||
IC2Items.getItem("stoneDust"));
|
||||
Recipes.oreWashing.addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(EMTItems.itemEMTItems, 1, 3)),
|
||||
waterAmount,
|
||||
new ItemStack(EMTItems.itemEMTItems, 1, 4),
|
||||
smallTinDust,
|
||||
IC2Items.getItem("stoneDust"));
|
||||
|
||||
NBTTagCompound heatAmount = new NBTTagCompound();
|
||||
heatAmount.setInteger("minHeat", 1000);
|
||||
|
||||
Recipes.centrifuge.addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(EMTItems.itemEMTItems, 1, 2)),
|
||||
heatAmount,
|
||||
IC2Items.getItem("smallCopperDust"),
|
||||
new ItemStack(ConfigItems.itemResource, 1, 6));
|
||||
Recipes.centrifuge.addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(EMTItems.itemEMTItems, 1, 4)),
|
||||
heatAmount,
|
||||
IC2Items.getItem("smallTinDust"),
|
||||
new ItemStack(ConfigItems.itemResource, 1, 3));
|
||||
for (Iterator<IRecipeInput> it = Recipes.macerator.getRecipes().keySet().iterator(); it.hasNext();) {
|
||||
IRecipeInput input = it.next();
|
||||
if (input.matches(new ItemStack(ConfigBlocks.blockCustomOre, 1, 0))) {
|
||||
it.remove();
|
||||
EMT.LOGGER.info("Removing Conflicting cinnabar macerating recipe(s)");
|
||||
}
|
||||
}
|
||||
}
|
||||
ItemStack crushedAmberRecipe = new ItemStack(EMTItems.itemEMTItems, 1, 1);
|
||||
crushedAmberRecipe.stackSize = 2;
|
||||
Recipes.macerator.addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(ConfigBlocks.blockCustomOre, 1, 7)),
|
||||
null,
|
||||
crushedAmberRecipe);
|
||||
|
||||
ItemStack crushedCinnabarRecipe = new ItemStack(EMTItems.itemEMTItems, 1, 3);
|
||||
crushedCinnabarRecipe.stackSize = 2;
|
||||
Recipes.macerator.addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(ConfigBlocks.blockCustomOre, 1, 0)),
|
||||
null,
|
||||
crushedCinnabarRecipe);
|
||||
|
||||
NBTTagCompound waterAmount = new NBTTagCompound();
|
||||
waterAmount.setInteger("amount", 1000);
|
||||
|
||||
ItemStack smallCopperDust = IC2Items.getItem("smallCopperDust");
|
||||
smallCopperDust.stackSize = 2;
|
||||
ItemStack smallTinDust = IC2Items.getItem("smallTinDust");
|
||||
smallCopperDust.stackSize = 2;
|
||||
|
||||
Recipes.oreWashing.addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(EMTItems.itemEMTItems, 1, 1)),
|
||||
waterAmount,
|
||||
new ItemStack(EMTItems.itemEMTItems, 1, 2),
|
||||
smallCopperDust,
|
||||
IC2Items.getItem("stoneDust"));
|
||||
Recipes.oreWashing.addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(EMTItems.itemEMTItems, 1, 3)),
|
||||
waterAmount,
|
||||
new ItemStack(EMTItems.itemEMTItems, 1, 4),
|
||||
smallTinDust,
|
||||
IC2Items.getItem("stoneDust"));
|
||||
|
||||
NBTTagCompound heatAmount = new NBTTagCompound();
|
||||
heatAmount.setInteger("minHeat", 1000);
|
||||
|
||||
Recipes.centrifuge.addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(EMTItems.itemEMTItems, 1, 2)),
|
||||
heatAmount,
|
||||
IC2Items.getItem("smallCopperDust"),
|
||||
new ItemStack(ConfigItems.itemResource, 1, 6));
|
||||
Recipes.centrifuge.addRecipe(
|
||||
new RecipeInputItemStack(new ItemStack(EMTItems.itemEMTItems, 1, 4)),
|
||||
heatAmount,
|
||||
IC2Items.getItem("smallTinDust"),
|
||||
new ItemStack(ConfigItems.itemResource, 1, 3));
|
||||
}
|
||||
}
|
||||
@@ -1,16 +1,20 @@
|
||||
package emt.item.focus;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.EnumRarity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import emt.EMT;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.api.wands.ItemFocusBasic;
|
||||
|
||||
@@ -99,4 +103,17 @@ public abstract class ItemBaseFocus extends ItemFocusBasic {
|
||||
return 5;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, @SuppressWarnings("rawtypes") List list,
|
||||
boolean par4) {
|
||||
AspectList cost = getVisCost(stack);
|
||||
if (cost != null && cost.size() > 0) {
|
||||
list.add(StatCollector.translateToLocal(isVisCostPerTick() ? "item.Focus.cost2" : "item.Focus.cost1"));
|
||||
for (Aspect aspect : cost.getAspectsSorted()) {
|
||||
float amount = cost.getAmount(aspect) / 100.0F;
|
||||
list.add(" " + '\u00a7' + aspect.getChatcolor() + aspect.getName() + '\u00a7' + "r x " + amount);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user