Событие смерти

Версия Minecraft
1.12.2
API
Forge

sk9zist :l

Исправился
981
18
158
Событие: LivingDeathEvent. Как можно узнать, кто именно (источник) убил сущность моим предметом? Так как этот предмет мой, и он ктому-же не является оружием, стандартно при помощи DamageSource извлечь того, кто убил этим предметом - нельзя. Поэтому при ударе моба в LivingHurtEvent attackEntityFrom
DamageSource.causePlayerDamage(player).setMagicDamage();
но такой код просто крашит игру.
 
Если предметом убивает игрок, то игрок и будет получаться в .getTrueSource() ивента LivingDeathEvent

Хорошо бы взглянуть на код и саму ошибку, потому что пока ты написал некую абстракцию, по которой сложно определить что не так
 
получаться в .getTrueSource()
Там null.
Java:
@SubscribeEvent
    public void onDeathNS(LivingDeathEvent e)
    {
        // тут null, поэтому дальше этой проверки не идёт
        if(e.getSource().getTrueSource() instanceof EntityPlayer)
        {
            Log.info("test1");
            if(((EntityPlayer) e.getSource().getTrueSource()).getHeldItemMainhand().getItem() == ItemsReg.myitem)
            {
                Log.info("test2");
                ItemStack stack = ((EntityPlayer) e.getSource().getTrueSource()).getHeldItemMainhand();
                if(stack.hasTagCompound())
                {
                    Log.info("test3");
                    int amount = stack.getTagCompound().getInteger("integer");
                    if(amount < 30)
                    {
                        stack.getTagCompound().removeTag("integer");
                        NBTTagCompound nbt = stack.getTagCompound();
                        stack.getTagCompound().setInteger("integer", amount + 1);
                    }
                }
            }
        }
    }
определить что не так
Ну, я же сказал: у меня свой предмет, поэтому НЕЛЬЗЯ получить игрока, который убил энтити т.к. он тупо не записывается никуда в моём предмете.
 
У тебя же нет проблем с соображалкой надеюсь? Кто тебе мешает в инвент вложить лог на то кто убил, кого убил, каким уроном и т.д.? Я конечно понимаю, что твои test1, test2, test10 дофига информативные, но лог немного не для них придуман.

Ну, я же сказал: у меня свой предмет, поэтому НЕЛЬЗЯ получить игрока, который убил энтити т.к. он тупо не записывается никуда в моём предмете.
Алло. Я если игрока палкой забью, у меня в палку тоже ничего записывать не будет. Но при этом игра чётко ответит, что забил палкой его именно я.
 
твои test1, test2, test10 дофига информативные, но лог немного не для них придуман.
я благодаря им узнал какая именно проверка не срабатывает :/
Но при этом игра чётко ответит, что забил палкой его именно я
Да, потому что в коде палки прописан от кого дамаг примерно так, я думаю: DamageSource.causePlayerDamage(player)
Кто тебе мешает в инвент вложить лог на то кто убил, кого убил, каким уроном и т.д.?
Я не понял, ты о чём?
 
Последнее редактирование:
При атаке моим предметом майнкрафт просто зависает и в консоли много ошибок (судя по всему, одних и тех же):
логи:
[16:55:10] [Client thread/ERROR] [FML]: Exception caught during firing event net.minecraftforge.event.entity.living.LivingAttackEvent@1c2e1acb:
java.lang.StackOverflowError: null
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_261]
    at java.io.FilePermission.init(Unknown Source) ~[?:1.8.0_261]
    at java.io.FilePermission.<init>(Unknown Source) ~[?:1.8.0_261]
    at java.lang.SecurityManager.checkRead(Unknown Source) ~[?:1.8.0_261]
    at java.io.File.exists(Unknown Source) ~[?:1.8.0_261]
    at java.io.WinNTFileSystem.canonicalize(Unknown Source) ~[?:1.8.0_261]
    at java.io.File.getCanonicalPath(Unknown Source) ~[?:1.8.0_261]
    at java.io.FilePermission$1.run(Unknown Source) ~[?:1.8.0_261]
    at java.io.FilePermission$1.run(Unknown Source) ~[?:1.8.0_261]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_261]
    at java.io.FilePermission.init(Unknown Source) ~[?:1.8.0_261]
    at java.io.FilePermission.<init>(Unknown Source) ~[?:1.8.0_261]
    at java.lang.SecurityManager.checkRead(Unknown Source) ~[?:1.8.0_261]
    at java.io.File.exists(Unknown Source) ~[?:1.8.0_261]
    at sun.misc.URLClassPath$FileLoader.getResource(Unknown Source) ~[?:1.8.0_261]
    at sun.misc.URLClassPath.getResource(Unknown Source) ~[?:1.8.0_261]
    at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_261]
    at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_261]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_261]
    at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_261]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_261]
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[?:1.8.0_261]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_261]
    at org.apache.logging.log4j.core.impl.MutableLogEvent.getThrownProxy(MutableLogEvent.java:338) ~[log4j-core-2.8.1.jar:2.8.1]
    at org.apache.logging.log4j.core.pattern.ExtendedThrowablePatternConverter.format(ExtendedThrowablePatternConverter.java:61) ~[log4j-core-2.8.1.jar:2.8.1]
    at org.apache.logging.log4j.core.pattern.PatternFormatter.format(PatternFormatter.java:38) ~[log4j-core-2.8.1.jar:2.8.1]
    at net.minecraftforge.server.terminalconsole.HighlightErrorConverter.format(HighlightErrorConverter.java:100) ~[forgeSrc-1.12.2-14.23.5.2816.jar:?]
    at org.apache.logging.log4j.core.pattern.PatternFormatter.format(PatternFormatter.java:38) ~[log4j-core-2.8.1.jar:2.8.1]
    at org.apache.logging.log4j.core.layout.PatternLayout$PatternSelectorSerializer.toSerializable(PatternLayout.java:455) ~[log4j-core-2.8.1.jar:2.8.1]
    at org.apache.logging.log4j.core.layout.PatternLayout$PatternSelectorSerializer.toSerializable(PatternLayout.java:444) ~[log4j-core-2.8.1.jar:2.8.1]
    at org.apache.logging.log4j.core.layout.PatternLayout.toSerializable(PatternLayout.java:208) ~[log4j-core-2.8.1.jar:2.8.1]
    at org.apache.logging.log4j.core.layout.PatternLayout.toSerializable(PatternLayout.java:57) ~[log4j-core-2.8.1.jar:2.8.1]
    at net.minecraftforge.server.terminalconsole.TerminalConsoleAppender.append(TerminalConsoleAppender.java:320) ~[forgeSrc-1.12.2-14.23.5.2816.jar:?]
    at org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:156) ~[log4j-core-2.8.1.jar:2.8.1]
    at org.apache.logging.log4j.core.config.AppenderControl.callAppender0(AppenderControl.java:129) ~[log4j-core-2.8.1.jar:2.8.1]
    at org.apache.logging.log4j.core.config.AppenderControl.callAppenderPreventRecursion(AppenderControl.java:120) ~[log4j-core-2.8.1.jar:2.8.1]
    at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:84) ~[log4j-core-2.8.1.jar:2.8.1]
    at org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:448) ~[log4j-core-2.8.1.jar:2.8.1]
    at org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:433) ~[log4j-core-2.8.1.jar:2.8.1]
    at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:417) ~[log4j-core-2.8.1.jar:2.8.1]
    at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:403) ~[log4j-core-2.8.1.jar:2.8.1]
    at org.apache.logging.log4j.core.config.AwaitCompletionReliabilityStrategy.log(AwaitCompletionReliabilityStrategy.java:63) ~[log4j-core-2.8.1.jar:2.8.1]
    at org.apache.logging.log4j.core.Logger.logMessage(Logger.java:146) ~[log4j-core-2.8.1.jar:2.8.1]
    at org.apache.logging.log4j.spi.AbstractLogger.logMessageSafely(AbstractLogger.java:2091) ~[log4j-api-2.8.1.jar:2.8.1]
    at org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:2011) ~[log4j-api-2.8.1.jar:2.8.1]
    at org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:1884) ~[log4j-api-2.8.1.jar:2.8.1]
    at org.apache.logging.log4j.spi.AbstractLogger.error(AbstractLogger.java:854) ~[log4j-api-2.8.1.jar:2.8.1]
    at net.minecraftforge.fml.common.eventhandler.EventBus.handleException(EventBus.java:203) ~[EventBus.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:187) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingAttack(ForgeHooks.java:580) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:970) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:82) ~[EntityAnimal.class:?]
    at mymod.testmod.EventsHandler.onAttackSN(EventsHandler.java:112) ~[EventsHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_22_EventsHandler_onAttackSN_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.fml.common.eventha
В "краше" в основном фигурирует вот эта строка:
Java:
e.getEntityLiving().attackEntityFrom(DamageSource.causePlayerDamage(player).setMagicDamage(), 0.5);
Майн свихнулся.
 
Решил. Заменив строку, вызывающую ошибки на эту:
Java:
e.setAmount((float) 2);
Всё работает (И на сервере тоже, я проверил.)
Оказывается теперь в getTrueSource() не null :)
Продебажил и понял это. Возможно был виноват как раз таки метод attackEntityFrom или DamageSource
Таким образом в DamageSource getTrueSource вернет игрока.
Ты был прав.
 
Назад
Сверху