Ваш браузер устарел, и поэтому некоторые важные функции этого сайта могут не работать. Пожалуйста, обновитесь до более современного браузера. :(
#241 | 2 августа 2015 - 11:01
#242 | 8 августа 2015 - 11:39
#243 | 22 августа 2015 - 21:36
@SubscribeEvent
	public void onEntityHurt(LivingHurtEvent event)
	{
		
		TFC_Core.sendInfoMessage(player, new ChatComponentTranslation("EVENT WORK"));
		
		EntityLivingBase entity = event.entityLiving;
		if(entity instanceof EntityPlayer)
		{
			float curMaxHealth = (float)((EntityPlayer)entity).getEntityAttribute(SharedMonsterAttributes.maxHealth).getAttributeValue();
			float newMaxHealth = FoodStatsTFC.getMaxHealth((EntityPlayer)entity);
			float h = ((EntityPlayer)entity).getHealth();
			if(newMaxHealth != curMaxHealth)
				((EntityPlayer)entity).getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(newMaxHealth);
			if(newMaxHealth < h)
				((EntityPlayer)entity).setHealth(newMaxHealth);
		}
		if(event.source == DamageSource.onFire)
			event.ammount = 50;
		else if(event.source == DamageSource.fall)
		{
			float healthMod = TFC_Core.getEntityMaxHealth(entity)/1000f;
			event.ammount *= 80*healthMod;
		}
		else if(event.source == DamageSource.drown)
			event.ammount = 50;
		else if(event.source == DamageSource.lava)
			event.ammount = 100;
		else if(event.source == DamageSource.inWall)
			event.ammount = 100;
		else if(event.source == DamageSource.fallingBlock)
			event.ammount = 100;
		else if(event.source.isExplosion())
			event.ammount *= 30;
		else if(event.source.damageType == "player" || event.source.damageType == "mob" || event.source.damageType == "arrow")
		{
			event.ammount = applyArmorCalculations(entity, event.source, event.ammount);
			if(event.source.damageType == "arrow")
			{
				Entity e = ((EntityDamageSourceIndirect)event.source).getSourceOfDamage();
				if(e instanceof EntityJavelin)
				{
					((EntityJavelin)e).setDamageTaken((short) (((EntityJavelin) e).damageTaken+10));
					if (((EntityJavelin) e).damageTaken >= ((EntityJavelin) e).pickupItem.getMaxDamage())
					{
						e.setDead();
					}
				}
			}
		}
	}#244 | 28 августа 2015 - 21:42
#245 | 13 сентября 2015 - 20:57
#246 | 17 октября 2015 - 10:46
#247 | 25 ноября 2015 - 20:23
#248 | 26 ноября 2015 - 01:25
#249 | 3 декабря 2015 - 18:35
Сообщение отредактировал CEPGEU.BAHUH Сегодня, 08:51
#RumineMustSurvive
#250 | 4 января 2016 - 18:18
#251 | 5 января 2016 - 07:18
#252 | 22 января 2016 - 16:56
#253 | 22 января 2016 - 19:28
#255 | 21 февраля 2016 - 18:09
#256 | 29 февраля 2016 - 08:04
[13:15:16] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[13:15:16] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[13:15:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[13:15:16] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[13:15:16] [main/INFO] [FML]: Forge Mod Loader version 7.2.217.1147 for Minecraft 1.7.2 loading
[13:15:16] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_73, running on Windows 7:amd64:6.1, installed at C:Program FilesJavajdk1.8.0_73jre
[13:15:16] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[13:15:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[13:15:16] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
[13:15:16] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[13:15:16] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[13:15:16] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[13:15:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[13:15:17] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[13:15:17] [main/ERROR] [LaunchWrapper]: Unable to launch
java.util.ConcurrentModificationException
	at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901) ~[?:1.8.0_73]
	at java.util.ArrayList$Itr.remove(ArrayList.java:865) ~[?:1.8.0_73]
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:117) [launchwrapper-1.9.jar:?]
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
	at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
	at GradleStart.main(Unknown Source) [start/:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_73]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_73]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_73]
	at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_73]
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) [idea_rt.jar:?]
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Process finished with exit code 0package ru.anya.t4w3rk4;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
@Mod (modid = "t4w3rk4", name = "T4W3RK4", version = "1.0")
public class BaseT4W3RK4 {
    @Mod.EventHandler
                          public void preLoad(FMLPreInitializationEvent event)
{
}
}
13:13:23 Platform and Plugin Updates: A new version of IntelliJ IDEA is available! (show balloon)
13:14:01 Unindexed remote maven repositories found. Disable...
         The following repositories used in your gradle projects were not indexed yet: 
         http://repo1.maven.org/maven2
         If you want to use dependency completion for these repositories artifacts,
         Open Repositories List, select required repositories and press "Update" button (show balloon)
13:15:00 All files are up-to-date#257 | 6 мая 2016 - 07:18
#258 | 6 мая 2016 - 07:37
public void preLoad(FMLPreInitializationEvent event)
{#259 | 6 мая 2016 - 07:39
#260 | 8 мая 2016 - 11:48
Сейчас онлайн: 14
Администраторы | Главные редакторы | Модератор | Дедушки | Журналисты | HENTAI BOY | Goldфаги | Журналисты-олдфаги | ТруЪ Олдфаги-с | ТруЪ Плагинщик | Олдфаги | true Художник | Модератор бездны | Картоделы | XXXL ПХЛ | Просто хорошие люди | Посетители | Новички