Compare commits

..
15 Commits
Author SHA1 Message Date
Martin Robertz b5dd718192 Merge remote-tracking branch 'WanderingHero/master' into dev 2025-12-22 21:56:37 +01:00
Martin Robertz 94220122e3 update 2025-12-22 21:56:19 +01:00
Martin Robertz 2de347c043 sa 2025-12-22 21:55:31 +01:00
WanderingHero 0c492e89f6 rebalance 2025-12-22 15:10:14 -05:00
SST-03andRuling-0 3ee7e99054 Rebalance Falling and Flying Speed for Boots of Traveller (#107)
Co-authored-by: Ruling-0 <[email protected]>
2025-12-18 06:14:44 +01:00
sisyphussy d42aa5e7bd Fix speed & jump modifiers (#109) 2025-11-10 19:51:24 +01:00
Martin Robertz 824b6bc3b4 update 2025-10-31 19:54:43 +01:00
JohnandDream Master 83ef9ce92c Fix tooltip for Vis Discount on Nano and Quantum Wings (#108)
Co-authored-by: Dream Master <[email protected]>
2025-10-31 16:16:00 +01:00
Dream Master c1642ad8e1 update 2025-10-30 13:45:36 +01:00
Martin Robertz 9a51e36a33 update 2025-10-16 11:04:42 +02:00
WanderingHero 41ba26b62d Fix dungeon chests spawning with the one ring. (#105) 2025-10-16 09:03:14 +00:00
Julia d16c3f27d4 Update for Deprecated Tier Removal PR #5085 (#106) 2025-10-16 10:26:55 +02:00
Woriveandsisyphussy 46fa64f4f7 Fix(ItemElectricGoggles): ic2 energy bar not being displayed nor updated (#104)
Co-authored-by: sisyphussy <[email protected]>
2025-09-07 17:56:53 +00:00
Martin Robertz 893d79e147 update 2025-09-07 19:44:17 +02:00
Matthew Bentham 4920c605bc Fix Electric Goggles taking durability damage when they shouldn't (#103) 2025-09-07 13:42:54 +00:00
15 changed files with 124 additions and 126 deletions

No files matched your search

+4 -4
View File
@@ -1,9 +1,9 @@
// Add your dependencies here
dependencies {
api('com.github.GTNewHorizons:Baubles-Expanded:2.1.13-GTNH:dev')
api('com.github.GTNewHorizons:ModularUI:1.2.20:dev')
api('com.github.GTNewHorizons:ThaumicBoots:1.4.14:dev') {
api('com.github.GTNewHorizons:Baubles-Expanded:2.2.6-GTNH:dev')
api('com.github.GTNewHorizons:ModularUI:1.3.1:dev')
api('com.github.GTNewHorizons:ThaumicBoots:1.5.5:dev') {
exclude group: 'com.github.GTNewHorizons', module: 'Electro-Magic-Tools'
exclude module: 'Baubles'
}
@@ -11,5 +11,5 @@ dependencies {
api('net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev')
api('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.51.440:dev')
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.52.164:dev')
}
+9 -1
View File
@@ -96,7 +96,9 @@ usesMixinDebug = false
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
mixinPlugin =
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
# Specify the package that contains all of your Mixins. The package must exist or
# the build will fail. If you have a package property defined in your mixins.<modid>.json,
# it must match with this or the build will fail.
mixinsPackage =
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
@@ -172,6 +174,12 @@ curseForgeRelations =
# projects. New projects should not use this parameter.
# customArchiveBaseName =
# Optional parameter to customize the default working directory used by the runClient* tasks. Relative to the project directory.
# runClientWorkingDirectory = run/client
# Optional parameter to customize the default working directory used by the runServer* tasks. Relative to the project directory.
# runServerWorkingDirectory = run/server
# Optional parameter to have the build automatically fail if an illegal version is used.
# This can be useful if you e.g. only want to allow versions in the form of '1.1.xxx'.
# The check is ONLY performed if the version is a git tag.
Binary file not shown.
+1 -1
View File
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Vendored
+2 -2
View File
@@ -114,7 +114,7 @@ case "$( uname )" in #(
NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
CLASSPATH="\\\"\\\""
# Determine the Java command to use to start the JVM.
@@ -213,7 +213,7 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
"$@"
# Stop when "xargs" is not available.
Vendored
+2 -2
View File
@@ -70,11 +70,11 @@ goto fail
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
set CLASSPATH=
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
:end
@rem End local scope for the variables with windows NT shell
+11
View File
@@ -1,4 +1,15 @@
// Add any additional repositories for your dependencies here
repositories {
exclusiveContent {
forRepository {
maven {
name = 'glease'
url = 'https://maven.glease.net/repos/releases/'
}
}
filter {
includeGroup('net.glease')
}
}
}
+1 -1
View File
@@ -17,7 +17,7 @@ pluginManagement {
}
plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.41'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.48'
}
@@ -21,7 +21,7 @@ public class EMT_GT_Loader {
GTValues.RA.stdBuilder()
.itemInputs(
new ItemStack(Items.book),
GTOreDictUnificator.get(OrePrefixes.circuit, Materials.Basic, 1L),
GTOreDictUnificator.get(OrePrefixes.circuit, Materials.LV, 1L),
new ItemStack(ConfigItems.itemShard, 1, OreDictionary.WILDCARD_VALUE))
.itemOutputs(mkbook()).duration(6 * SECONDS).eut(TierEU.RECIPE_MV / 2).addTo(assemblerRecipes);
}
+45 -36
View File
@@ -124,10 +124,6 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun
@Override
public void onWornTick(ItemStack stack, EntityLivingBase player) {
if (!player.isInvisible()) {
player.setInvisible(true);
((EntityPlayer) player).capabilities.disableDamage = true;
}
// Stop doing this 20 times per second...
if (random.nextInt(20) > 0) return;
@@ -151,11 +147,17 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun
if (!player.worldObj.isRemote) {
// EMT.LOGGER.info( String.format( "Total Corruption: %d ItemWarpLevel: %d", corruption, getItemWarpLevel(
// stack, false ) ));
if (random.nextInt(60) == 0) {
player.addPotionEffect(new PotionEffect(Potion.invisibility.id, 2000, 4, false));
player.addPotionEffect(new PotionEffect(Potion.resistance.id, 2000, 4, false));
}
if (corruption == 0) {
player.addPotionEffect(new PotionEffect(Potion.invisibility.id, 2000, 4, false));
player.addPotionEffect(new PotionEffect(Potion.resistance.id, 2000, 4, false));
((EntityPlayer) player).addChatMessage(
new ChatComponentText(
EMTTextHelper.PURPLE + "You have worn the Ring. Your soul has now been forever "
EMTTextHelper.PURPLE + "You have worn the Ring. Your soul has now been temporarily "
+ EMTTextHelper.PURPLE
+ "tainted. "
+ EMTTextHelper.RED
@@ -165,48 +167,56 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun
+ EMTTextHelper.ITALIC
+ "increase, and strange things will start happening."));
}
// First effect should become active after ~5 Minutes
else if (corruption > 300 && corruption < 1400 && random.nextInt(100) == 0) {
// First effect should become active after ~1 Minute
if (corruption > 60 && corruption < 300 && random.nextInt(100) == 0) {
((EntityPlayer) player)
.addChatMessage(new ChatComponentText(EMTTextHelper.PURPLE + "The Ring somehow feels heavy"));
if (random.nextBoolean()) player.addPotionEffect(new PotionEffect(Potion.blindness.id, 500, 2, false));
else player.addPotionEffect(new PotionEffect(Potion.confusion.id, 500, 2, false));
} else if (corruption >= 1400 && corruption < 3800 && random.nextInt(100) == 0) {
((EntityPlayer) player).capabilities.disableDamage = false;
player.addPotionEffect(new PotionEffect(Potion.poison.id, 500, 2, false));
} else if (corruption >= 3800 && corruption < 6500 && random.nextInt(100) == 0) {
((EntityPlayer) player).capabilities.disableDamage = false;
player.addPotionEffect(new PotionEffect(Potion.digSlowdown.id, 200, 3, false));
if (random.nextBoolean()) player.addPotionEffect(new PotionEffect(Potion.blindness.id, 500, 4, false));
else player.addPotionEffect(new PotionEffect(Potion.confusion.id, 500, 4, false));
}
if (corruption > 30 && random.nextInt(75) == 0) {
((EntityPlayer) player)
.addChatMessage(new ChatComponentText(EMTTextHelper.PURPLE + "The Ring falters"));
player.removePotionEffect(14);
player.removePotionEffect(11);
player.addPotionEffect(new PotionEffect(Potion.digSlowdown.id, 800, 2, false));
/*
* Wtf? Remove ForgeData tag? There are more mods using this tag than just emt! ((EntityPlayer)
* player).writeToNBT(tag); tag.removeTag( NBT_TAG_FORGE_DATA ); ((EntityPlayer)
* player).readFromNBT(tag);
*/
player.addPotionEffect(new PotionEffect(Potion.confusion.id, 200, 1, false));
}
if (corruption >= 150 && corruption < 8000 && random.nextInt(150) == 0) {
((EntityPlayer) player)
.addChatMessage(new ChatComponentText(EMTTextHelper.PURPLE + "Your arms feel heavy"));
player.addPotionEffect(new PotionEffect(Potion.digSlowdown.id, 800, 4, false));
player.addPotionEffect(new PotionEffect(Potion.weakness.id, 800, 4, false));
}
if (corruption >= 700 && corruption < 8000 && random.nextInt(150) == 0) {
player.removePotionEffect(11);
player.motionY += 2d;
} else if (corruption >= 6500 && random.nextInt(10000) == 0) {
((EntityPlayer) player).capabilities.disableDamage = false;
} else if (corruption >= 1500 && random.nextInt(800) == 0) {
player.removePotionEffect(11);
player.addPotionEffect(new PotionEffect(Potion.wither.id, 100, 4, false));
}
if (corruption >= 300) { // worn more than 5 minutes
if (corruption >= 60) { // worn more than 1 minute
if (random.nextInt(100) == 0) { // every 100 seconds
getItemWarpLevel(stack, true);
((EntityPlayer) player).addChatMessage(
new ChatComponentText(EMTTextHelper.PURPLE + "The Ring suddenly starts to glow purple"));
}
if (random.nextInt(300) == 0) { // randomly every 5 minutes
ThaumcraftApiHelper.addWarpToPlayer((EntityPlayer) player, 1, false); // adds 1 perm warp
ThaumcraftApiHelper.addStickyWarpToPlayer((EntityPlayer) player, random.nextInt(1)); // adds 0-1
// sticky warp
if (random.nextInt(150) == 0) { // randomly every 2.5 minutes
ThaumcraftApiHelper.addWarpToPlayer((EntityPlayer) player, 30, true); // adds 30 temp warp
((EntityPlayer) player).addChatMessage(
new ChatComponentText(EMTTextHelper.PURPLE + "Your body suddenly starts to glow purple"));
}
if (corruption >= 3600) { // if you wear it for more than an hour total
if (random.nextInt(300) == 0) {
ThaumcraftApiHelper.addWarpToPlayer((EntityPlayer) player, 5 + random.nextInt(5), false); // adds
// 5-10
// perm
// warp
ThaumcraftApiHelper.addStickyWarpToPlayer((EntityPlayer) player, 5 + random.nextInt(5)); // adds
// 5-10
// sticky
// warp
ThaumcraftApiHelper.addWarpToPlayer((EntityPlayer) player, 10 + random.nextInt(40), true); // adds
// 10-50
if (corruption >= 180) { // if you wear it for 3 minutes
if (random.nextInt(100) == 0) {
ThaumcraftApiHelper.addWarpToPlayer((EntityPlayer) player, 30 + random.nextInt(70), true); // adds
// 30-100
// temp
// warp,
// but
@@ -240,9 +250,8 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun
@Override
public void onUnequipped(ItemStack stack, EntityLivingBase player) {
player.setInvisible(false);
if (!((EntityPlayer) player).capabilities.isCreativeMode)
((EntityPlayer) player).capabilities.disableDamage = false;
player.removePotionEffect(14);
player.removePotionEffect(11);
/*
* Wtf? Remove ForgeData tag? There are more mods using this tag than just emt! ((EntityPlayer)
@@ -24,7 +24,6 @@ import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import emt.EMT;
import emt.init.EMTItems;
import emt.util.EMTConfigHandler;
import emt.util.EMTTextHelper;
import ic2.api.item.ElectricItem;
@@ -36,6 +35,7 @@ import thaumcraft.api.aspects.Aspect;
import thaumcraft.common.Thaumcraft;
import thaumcraft.common.items.armor.Hover;
import thaumicboots.api.IBoots;
import thaumicboots.mixins.early.minecraft.EntityLivingBaseAccessor;
@Interface(iface = "thaumicboots.api.IBoots", modid = "thaumicboots")
public class ItemElectricBootsTraveller extends ItemArmor
@@ -46,7 +46,8 @@ public class ItemElectricBootsTraveller extends ItemArmor
public int visDiscount = 2;
public float speedBonus = 0.055F;
// constant from Thaumcraft's EventHandlerEntity#playerJumps for basic Traveller Boots
public float jumpBonus = 0.2750000059604645F;
public static final float BASE_JUMP_BONUS = 0.2750000059604645F;
public float jumpBonus = BASE_JUMP_BONUS;
public double transferLimit = 100;
public ItemElectricBootsTraveller(ArmorMaterial material, int par3, int par4) {
@@ -165,15 +166,9 @@ public class ItemElectricBootsTraveller extends ItemArmor
} else if (Hover.getHover(player.getEntityId())) {
// Base ItemBootsTraveller jumpBonus equals to jumpBonus of Electric Boots,
// so any other boots factor can be calculated via proportion method
player.jumpMovementFactor = 0.03F
/ ((ItemElectricBootsTraveller) EMTItems.electricBootsTraveller).jumpBonus
* jumpBonus
* speedMod;
player.jumpMovementFactor = (0.03F / BASE_JUMP_BONUS * jumpBonus - 0.02F) * speedMod + 0.02F;
} else {
player.jumpMovementFactor = 0.05F
/ ((ItemElectricBootsTraveller) EMTItems.electricBootsTraveller).jumpBonus
* jumpBonus
* speedMod;
player.jumpMovementFactor = (0.05F / BASE_JUMP_BONUS * jumpBonus - 0.02F) * speedMod + 0.02F;
}
}
}
@@ -183,8 +178,15 @@ public class ItemElectricBootsTraveller extends ItemArmor
if (player.moveForward != 0.0) {
player.moveFlying(0.0F, player.moveForward, bonus);
}
if (player.moveStrafing != 0.0 && getOmniState(itemStack)) {
player.moveFlying(player.moveStrafing, 0.0F, bonus);
if (getOmniState(itemStack)) {
if (player.moveStrafing != 0.0) player.moveFlying(player.moveStrafing, 0.0F, bonus);
boolean jumping = ((EntityLivingBaseAccessor) player).getIsJumping();
boolean sneaking = player.isSneaking();
if (sneaking && !jumping && !player.onGround) {
player.motionY -= bonus;
} else if (jumping && !sneaking) {
player.motionY += bonus;
}
}
}
@@ -273,14 +275,14 @@ public class ItemElectricBootsTraveller extends ItemArmor
// Avoid NSM Exception when ThaumicBoots is not present.
public double getSpeedModifier(ItemStack stack) {
if (stack.stackTagCompound != null) {
if (stack.stackTagCompound != null && stack.stackTagCompound.hasKey("speed")) {
return stack.stackTagCompound.getDouble("speed");
}
return 1.0;
}
public double getJumpModifier(ItemStack stack) {
if (stack.stackTagCompound != null) {
if (stack.stackTagCompound != null && stack.stackTagCompound.hasKey("jump")) {
return stack.stackTagCompound.getDouble("jump");
}
return 1.0;
@@ -43,6 +43,28 @@ public class ItemElectricGoggles extends ItemArmor
this.setCreativeTab(EMT.TAB);
}
/**
* Allow damage to be set to avoid breaking IC2 Energy bar or other features, while preventing the item from
* breaking.
*
* @param stack the item stack
* @param damage the new damage value
*/
@Override
public void setDamage(ItemStack stack, int damage) {
int max = stack.getMaxDamage();
if (max > 0) {
if (damage >= max) {
damage = max - 1;
} else if (damage < 0) {
damage = 0;
}
}
super.setDamage(stack, damage);
}
@SideOnly(Side.CLIENT)
@Override
public void registerIcons(IIconRegister iconRegister) {
@@ -19,6 +19,7 @@ import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import emt.EMT;
import emt.util.EMTConfigHandler;
import emt.util.EMTTextHelper;
import gregtech.api.hazards.Hazard;
import gregtech.api.hazards.IHazardProtector;
import ic2.api.item.ElectricItem;
@@ -140,6 +141,7 @@ public class ItemNanoWing extends ItemThaumiumReinforcedWing
@Override
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
list.add(EMTTextHelper.PURPLE + EMTTextHelper.localize("tooltip.EMT.visDiscount") + ": " + visDiscount + "%");
}
public double getDamageAbsorptionRatio() {
@@ -17,13 +17,5 @@ public class EMTDungeonChestGenerator {
1,
EMTConfigHandler.chanceTaintedMjolnir));
}
if (!EMTConfigHandler.oneRingSpawn) {
ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(
new WeightedRandomChestContent(
new ItemStack(EMTItems.onering),
0,
1,
EMTConfigHandler.chanceOneRing));
}
}
}
+8 -56
View File
@@ -1,18 +1,14 @@
package emt.util;
import net.minecraft.block.Block;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.monster.EntityCreeper;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.util.DamageSource;
import net.minecraftforge.event.entity.living.LivingDropsEvent;
import net.minecraftforge.event.entity.living.LivingHurtEvent;
import net.minecraftforge.event.entity.living.LivingSetAttackTargetEvent;
import net.minecraftforge.event.entity.player.PlayerInteractEvent;
import baubles.api.BaublesApi;
import cpw.mods.fml.client.event.ConfigChangedEvent;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.TickEvent;
@@ -20,7 +16,6 @@ import cpw.mods.fml.common.gameevent.TickEvent.Phase;
import emt.EMT;
import emt.init.EMTBlocks;
import emt.init.EMTItems;
import emt.item.armor.goggles.ItemElectricGoggles;
import emt.item.armor.wings.ItemFeatherWing;
import ic2.api.item.ElectricItem;
import thaumcraft.common.config.ConfigBlocks;
@@ -29,49 +24,21 @@ import thaumcraft.common.entities.monster.EntityTaintChicken;
public class EMTEventHandler {
/**
* Intercepts damage events for any living entity to apply custom effects for players wearing specific armor. This
* method is a central handler for armor-based damage mitigation that cannot be handled by the ISpecialArmor
* interface.
* <p>
* It triggers whenever an entity is about to be hurt and contains two primary logic blocks:
* <ol>
* <li>Reduces fall damage for players wearing Feather Wings.</li>
* <li>Absorbs anvil/falling block damage for players wearing Electric Goggles, preventing the item from breaking
* due to a hardcoded vanilla mechanic.</li>
* </ol>
* Intercept the onLivingHurt event so that we can mitigate fall damage with feather wings
*
* @param e The LivingHurtEvent, containing information about the damage source, amount, and the entity being hurt.
* @param e Entity that is being damaged
*/
@SubscribeEvent
public void onLivingHurt(LivingHurtEvent e) {
if (!(e.entityLiving instanceof EntityPlayer player)) {
if (!(e.entityLiving instanceof EntityPlayer) || e.source != DamageSource.fall) return;
ItemStack s = ((EntityPlayer) e.entityLiving).inventory.armorInventory[2];
if (s == null || !(s.getItem() instanceof ItemFeatherWing)) {
return;
}
if (e.source == DamageSource.fall) {
ItemStack chestplate = player.inventory.armorInventory[2];
if (chestplate != null && chestplate.getItem() instanceof ItemFeatherWing) {
e.ammount *= ((ItemFeatherWing) chestplate.getItem()).getFallDamageMult();
}
}
else if (e.source == DamageSource.anvil || e.source == DamageSource.fallingBlock) {
ItemStack helmet = player.getEquipmentInSlot(4); // 4 for Helmet
if (helmet != null && helmet.getItem() instanceof ItemElectricGoggles goggles) {
double energyRequired = e.ammount * goggles.getEnergyPerDamage();
double currentEnergy = ElectricItem.manager.getCharge(helmet);
if (currentEnergy >= energyRequired) {
ElectricItem.manager.discharge(helmet, energyRequired, Integer.MAX_VALUE, true, false, false);
e.setCanceled(true);
} else if (currentEnergy > 0) {
float damageAbsorbed = (float) (currentEnergy / goggles.getEnergyPerDamage());
ElectricItem.manager.discharge(helmet, currentEnergy, Integer.MAX_VALUE, true, false, false);
e.ammount -= damageAbsorbed;
}
}
}
e.ammount *= ((ItemFeatherWing) s.getItem()).getFallDamageMult();
}
@SubscribeEvent
@@ -111,21 +78,6 @@ public class EMTEventHandler {
}
}
@SubscribeEvent
public void onSetEntityAttack(LivingSetAttackTargetEvent e) {
if (e.entityLiving instanceof EntityLiving && e.target instanceof EntityPlayer) {
IInventory inventory = BaublesApi.getBaubles((EntityPlayer) e.target);
for (int i = 0; i < inventory.getSizeInventory(); i++) {
ItemStack stack = inventory.getStackInSlot(i);
if (stack != null && stack.getItem() == EMTItems.onering) {
((EntityLiving) e.entityLiving).setAttackTarget(null);
}
}
}
}
@SubscribeEvent
public void createCloud(PlayerInteractEvent e) {
if (e.action != PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK || e.world.isRemote) {