
NeverMind
Members-
Posts
57 -
Joined
-
Last visited
Everything posted by NeverMind
-
Thanks, I did this, but now I can't see the projectile. It works, it makes the explosion and it hurts the enemies, but I just can't see the projectile.
-
When my throwable entity hits the something and explodes, I can't enter the area from the explosion. If I relaunch, all the damage I've done disappears. Here is the code for the explosion: this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, (float)this.explosionRadius , true);
-
How can I add a texture to a throwable entity? I can use the fireball texture from Minecraft, but I don't know where to register the texture
-
How can I apply the hurt visual effect on a mob? Should I also implement it in LivingHurtEvent?
-
Thanks, dudes.
-
I use PlayerTickEvent . I think I use a wrong event. The crash report is here: ---- Minecraft Crash Report ---- // Surprise! Haha. Well, this is awkward. Time: 6/27/14 7:01 PM Description: Ticking entity java.lang.ClassCastException: net.minecraft.client.entity.EntityClientPlayerMP cannot be cast to net.minecraft.entity.player.EntityPlayerMP at com.NeverMind.SonOfGods.PlayerEventHandler.onPlayerTickEvent(PlayerEventHandler.java:77) at cpw.mods.fml.common.eventhandler.ASMEventHandler_4_PlayerEventHandler_onPlayerTickEvent_PlayerTickEvent.invoke(.dynamic) at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:51) at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:122) at cpw.mods.fml.common.FMLCommonHandler.onPlayerPreTick(FMLCommonHandler.java:344) at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:274) at net.minecraft.client.entity.EntityClientPlayerMP.onUpdate(EntityClientPlayerMP.java:100) at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2254) at net.minecraft.world.World.updateEntity(World.java:2214) at net.minecraft.world.World.updateEntities(World.java:2064) at net.minecraft.client.Minecraft.runTick(Minecraft.java:2064) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:996) at net.minecraft.client.Minecraft.run(Minecraft.java:912) at net.minecraft.client.main.Main.main(Main.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at com.NeverMind.SonOfGods.PlayerEventHandler.onPlayerTickEvent(PlayerEventHandler.java:77) at cpw.mods.fml.common.eventhandler.ASMEventHandler_4_PlayerEventHandler_onPlayerTickEvent_PlayerTickEvent.invoke(.dynamic) at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:51) at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:122) at cpw.mods.fml.common.FMLCommonHandler.onPlayerPreTick(FMLCommonHandler.java:344) at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:274) at net.minecraft.client.entity.EntityClientPlayerMP.onUpdate(EntityClientPlayerMP.java:100) at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2254) at net.minecraft.world.World.updateEntity(World.java:2214) -- Entity being ticked -- Details: Entity Type: null (net.minecraft.client.entity.EntityClientPlayerMP) Entity ID: 278 Entity Name: Player224 Entity's Exact location: 27.63, 5.62, -970.83 Entity's Block location: World: (27,5,-971), Chunk: (at 11,0,5 in 1,-61; contains blocks 16,0,-976 to 31,255,-961), Region: (0,-2; contains chunks 0,-64 to 31,-33, blocks 0,0,-1024 to 511,255,-513) Entity's Momentum: 0.00, 0.00, 0.00 Stacktrace: at net.minecraft.world.World.updateEntities(World.java:2064) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Player224'/278, l='MpServer', x=27.63, y=5.62, z=-970.83]] Chunk stats: MultiplayerChunkCache: 100, 100 Level seed: 0 Level generator: ID 01 - flat, ver 0. Features enabled: false Level generator options: Level spawn location: World: (31,4,-970), Chunk: (at 15,0,6 in 1,-61; contains blocks 16,0,-976 to 31,255,-961), Region: (0,-2; contains chunks 0,-64 to 31,-33, blocks 0,0,-1024 to 511,255,-513) Level time: 38485 game time, 19987 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false Forced entities: 85 total; [EntitySpider['Spider'/128, l='MpServer', x=18.50, y=4.00, z=-921.75], EntitySheep['Sheep'/134, l='MpServer', x=34.25, y=4.00, z=-958.41], EntityCow['Cow'/135, l='MpServer', x=41.81, y=4.00, z=-902.09], EntitySkeleton['Skeleton'/136, l='MpServer', x=41.50, y=4.00, z=-898.50], EntitySheep['Sheep'/147, l='MpServer', x=60.97, y=4.00, z=-1024.94], EntityPig['Pig'/148, l='MpServer', x=51.63, y=4.00, z=-933.22], EntityCow['Cow'/149, l='MpServer', x=56.16, y=4.00, z=-922.94], EntityCreeper['Creeper'/160, l='MpServer', x=70.50, y=4.00, z=-1030.50], EntitySpider['Spider'/161, l='MpServer', x=71.88, y=4.00, z=-1020.16], EntityChicken['Chicken'/162, l='MpServer', x=68.08, y=4.00, z=-944.47], EntityChicken['Chicken'/163, l='MpServer', x=65.56, y=4.00, z=-946.47], EntityChicken['Chicken'/164, l='MpServer', x=68.66, y=4.00, z=-942.59], EntitySpider['Spider'/165, l='MpServer', x=69.19, y=4.00, z=-932.75], EntityZombie['Zombie'/37, l='MpServer', x=-37.50, y=4.00, z=-1012.50], EntityZombie['Zombie'/166, l='MpServer', x=64.84, y=4.00, z=-927.38], EntityZombie['Zombie'/38, l='MpServer', x=-36.50, y=4.00, z=-1014.50], EntityCreeper['Creeper'/167, l='MpServer', x=69.44, y=4.00, z=-920.97], EntityZombie['Zombie'/39, l='MpServer', x=-35.58, y=4.00, z=-1008.96], EntitySpider['Spider'/168, l='MpServer', x=64.84, y=4.00, z=-925.22], EntityZombie['Zombie'/40, l='MpServer', x=-36.59, y=4.00, z=-1008.24], EntityCow['Cow'/42, l='MpServer', x=-38.03, y=4.00, z=-967.91], EntityChicken['Chicken'/44, l='MpServer', x=-37.56, y=4.00, z=-953.34], EntitySkeleton['Skeleton'/45, l='MpServer', x=-46.50, y=4.00, z=-948.50], EntityChicken['Chicken'/46, l='MpServer', x=-44.38, y=4.00, z=-938.53], EntityCreeper['Creeper'/174, l='MpServer', x=82.50, y=4.00, z=-1037.50], EntityCow['Cow'/175, l='MpServer', x=86.31, y=4.00, z=-959.72], EntityCreeper['Creeper'/47, l='MpServer', x=-39.50, y=4.00, z=-928.50], EntityPig['Pig'/176, l='MpServer', x=91.06, y=4.00, z=-950.09], EntityChicken['Chicken'/48, l='MpServer', x=-42.47, y=4.00, z=-912.47], EntityCow['Cow'/177, l='MpServer', x=86.13, y=4.00, z=-949.03], EntityCreeper['Creeper'/49, l='MpServer', x=-44.50, y=4.00, z=-925.50], EntityChicken['Chicken'/178, l='MpServer', x=94.53, y=4.00, z=-929.41], EntitySkeleton['Skeleton'/50, l='MpServer', x=-45.50, y=4.00, z=-915.50], EntityCow['Cow'/179, l='MpServer', x=94.97, y=4.00, z=-913.91], EntitySkeleton['Skeleton'/51, l='MpServer', x=-43.50, y=4.00, z=-914.50], EntityChicken['Chicken'/180, l='MpServer', x=86.56, y=4.00, z=-900.63], EntitySkeleton['Skeleton'/52, l='MpServer', x=-46.50, y=4.00, z=-924.50], EntityCow['Cow'/181, l='MpServer', x=90.19, y=4.00, z=-900.88], EntitySheep['Sheep'/53, l='MpServer', x=-34.84, y=4.00, z=-905.16], EntityCreeper['Creeper'/54, l='MpServer', x=-41.50, y=4.00, z=-898.50], EntityCreeper['Creeper'/55, l='MpServer', x=-39.50, y=4.00, z=-897.50], EntitySheep['Sheep'/56, l='MpServer', x=-36.84, y=4.00, z=-893.72], EntityCreeper['Creeper'/57, l='MpServer', x=-41.34, y=4.00, z=-895.66], EntityCreeper['Creeper'/58, l='MpServer', x=-42.10, y=4.00, z=-895.10], EntityHorse['Horse'/59, l='MpServer', x=-32.00, y=4.00, z=-1027.09], EntityCreeper['Creeper'/60, l='MpServer', x=-29.50, y=4.00, z=-1012.50], EntityPig['Pig'/61, l='MpServer', x=-19.06, y=4.00, z=-926.84], EntitySheep['Sheep'/189, l='MpServer', x=99.65, y=4.00, z=-1035.60], EntityChicken['Chicken'/190, l='MpServer', x=101.28, y=4.00, z=-1033.41], EntityZombie['Zombie'/191, l='MpServer', x=100.97, y=4.00, z=-1035.13], EntityPig['Pig'/65, l='MpServer', x=-20.91, y=4.00, z=-902.88], EntityCow['Cow'/194, l='MpServer', x=99.31, y=4.00, z=-960.44], EntityZombie['Zombie'/195, l='MpServer', x=107.34, y=4.00, z=-948.66], EntityCow['Cow'/197, l='MpServer', x=97.88, y=4.00, z=-931.84], EntityCow['Cow'/198, l='MpServer', x=101.25, y=4.00, z=-896.81], EntityCow['Cow'/71, l='MpServer', x=-5.13, y=4.00, z=-979.78], EntityPig['Pig'/72, l='MpServer', x=-6.13, y=4.00, z=-935.03], EntityCreeper['Creeper'/73, l='MpServer', x=-7.31, y=4.00, z=-940.06], EntityCreeper['Creeper'/74, l='MpServer', x=-1.50, y=4.00, z=-920.50], EntityCreeper['Creeper'/75, l='MpServer', x=-2.50, y=4.00, z=-923.50], EntityZombie['Zombie'/76, l='MpServer', x=-7.50, y=4.00, z=-923.50], EntitySpider['Spider'/81, l='MpServer', x=-8.33, y=4.00, z=-894.67], EntitySkeleton['Skeleton'/94, l='MpServer', x=14.50, y=4.00, z=-1026.50], EntitySkeleton['Skeleton'/95, l='MpServer', x=12.50, y=4.00, z=-1024.50], EntityCow['Cow'/96, l='MpServer', x=0.97, y=4.00, z=-986.94], EntitySheep['Sheep'/97, l='MpServer', x=9.09, y=4.00, z=-947.06], EntityCow['Cow'/98, l='MpServer', x=10.91, y=4.00, z=-938.94], EntitySheep['Sheep'/99, l='MpServer', x=1.31, y=4.00, z=-933.78], EntityCow['Cow'/100, l='MpServer', x=5.66, y=4.00, z=-919.94], EntitySpider['Spider'/101, l='MpServer', x=12.56, y=4.00, z=-921.94], EntitySpider['Spider'/102, l='MpServer', x=8.03, y=4.00, z=-925.72], EntityClientPlayerMP['Player224'/278, l='MpServer', x=27.63, y=5.62, z=-970.83], EntitySpider['Spider'/115, l='MpServer', x=21.13, y=4.00, z=-1028.56], EntityCreeper['Creeper'/116, l='MpServer', x=26.50, y=4.00, z=-1015.50], EntityCreeper['Creeper'/117, l='MpServer', x=29.50, y=4.00, z=-1014.50], EntitySpider['Spider'/118, l='MpServer', x=31.50, y=4.00, z=-1018.50], EntityZombie['Zombie'/119, l='MpServer', x=26.50, y=4.00, z=-1023.50], EntitySkeleton['Skeleton'/120, l='MpServer', x=25.50, y=4.00, z=-1015.50], EntitySkeleton['Skeleton'/121, l='MpServer', x=25.50, y=4.00, z=-1018.50], EntitySheep['Sheep'/122, l='MpServer', x=28.34, y=4.00, z=-989.31], EntityItem['item.item.TalismanOfGods'/123, l='MpServer', x=20.50, y=4.13, z=-984.56], EntitySheep['Sheep'/124, l='MpServer', x=23.19, y=4.00, z=-914.59], EntitySheep['Sheep'/125, l='MpServer', x=20.78, y=4.00, z=-917.25], EntitySheep['Sheep'/126, l='MpServer', x=26.19, y=4.00, z=-923.84], EntityZombie['Zombie'/127, l='MpServer', x=23.50, y=4.00, z=-921.50]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:412) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2523) at net.minecraft.client.Minecraft.run(Minecraft.java:934) at net.minecraft.client.main.Main.main(Main.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) -- System Details -- Details: Minecraft Version: 1.7.2 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_05, Oracle Corporation Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 841245128 bytes (802 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 20006 (1120336 bytes; 1 MB) allocated, 1304 (73024 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.03 FML v7.2.211.1121 Minecraft Forge 10.12.2.1121 6 mods loaded, 6 mods active mcp{9.03} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{7.2.211.1121} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.2.1121.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{10.12.2.1121} [Minecraft Forge] (forgeSrc-1.7.2-10.12.2.1121.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available SonOfGods{1.0} [sonOfGods] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available NeverMind{1.0} [FirstMod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Launched Version: 1.6 LWJGL: 2.9.0 OpenGL: GeForce GTX 560 Ti/PCIe/SSE2 GL version 4.4.0, NVIDIA Corporation Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: 207 (11592 bytes; 0 MB) allocated, 207 (11592 bytes; 0 MB) used Anisotropic Filtering: Off (1)
-
It crashes Minecraft. I suppose I did a stupid mistake. Can you help me? EntityPlayerMP playerMP = (EntityPlayerMP) event.player; if (playerMP.func_147099_x().hasAchievementUnlocked(AchievementList.enchantments)) System.out.println("MERGE!!!!!!!!!");
-
I don't need it for a server.
-
How can I know if a player unlocked an achievement? The achievement is from minecraft, not custom by me.
-
Thanks jabelar, but I knew that was an example. The problem was that the name which I used was already used for something else. As for diesieben07, I don't find see a silly mistake as "not knowing absolute basics"
-
I learnt them and I will learn more in this way.
-
I need a parameter for TheClassWhereYouHaveYouExperienceStuff(). It says "the constructor TheClassWhereYouHaveYouExperienceStuff() is undefined"
-
And what parameter do I need to use?
-
I made this method to give the player more xp when he kills a mob, but it doesn't work, it simply does nothing. @SubscribeEvent public void itDied(LivingDeathEvent event) { Entity entity = event.entity; DamageSource source = event.source; System.out.println("ASTA MERGE !111111111111"); if (source.getSourceOfDamage() instanceof EntityPlayer) { System.out.println("ASTA MERGE!!!!"); if (event.entity instanceof EntityMob) { System.out.println("ASTA MERGE!!! 222222"); EntityPlayer player = (EntityPlayer) event.source.getEntity(); player.addExperience(1000); } } } This is the part from my main modding class: public void preInit(FMLPreInitializationEvent e) { FMLCommonHandler.instance().bus().register(new PlayerEventHandler()); }
-
Thanks, you helped me again!
-
public class PlayerEventHandler { @SubscribeEvent public void onPlayerTickEvent(PlayerTickEvent event) { EntityPlayer player = (EntityPlayer)event.player; ItemStack helditem = player.getHeldItem(); int x, y, z; x = player.chunkCoordX; y = player.chunkCoordY; z = player.chunkCoordZ; World world; world = player.getEntityWorld(); if (helditem.isItemEqual(new ItemStack (SonOfGods.TalismanOfGods))) SonOfGods.held = true; else SonOfGods.held = false; if (player.inventory.hasItem(Items.diamond)) SonOfGods.ifdiamond = true; if (SonOfGods.held = true && SonOfGods.ifdiamond == true) { world.addWeatherEffect(new EntityLightningBolt(world,x,y,z)); player.addPotionEffect(new PotionEffect(Potion.moveSpeed.getId(),1000,4)); } } }
-
Hey guys, I have a problem. After I modded a little bit, when I start Minecraft and ENTER a world it crashes. This is that it tells me: AL lib: (EE) alc_cleanup: 1 device not closed. And this is the crash report: ---- Minecraft Crash Report ---- // I'm sorry, Dave. Time: 6/26/14 5:59 PM Description: Ticking entity java.lang.NullPointerException: Ticking entity at com.NeverMind.SonOfGods.PlayerEventHandler.onPlayerTickEvent(PlayerEventHandler.java:32) at cpw.mods.fml.common.eventhandler.ASMEventHandler_4_PlayerEventHandler_onPlayerTickEvent_PlayerTickEvent.invoke(.dynamic) at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:51) at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:122) at cpw.mods.fml.common.FMLCommonHandler.onPlayerPreTick(FMLCommonHandler.java:344) at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:274) at net.minecraft.client.entity.EntityClientPlayerMP.onUpdate(EntityClientPlayerMP.java:100) at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2254) at net.minecraft.world.World.updateEntity(World.java:2214) at net.minecraft.world.World.updateEntities(World.java:2064) at net.minecraft.client.Minecraft.runTick(Minecraft.java:2064) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:996) at net.minecraft.client.Minecraft.run(Minecraft.java:912) at net.minecraft.client.main.Main.main(Main.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at com.NeverMind.SonOfGods.PlayerEventHandler.onPlayerTickEvent(PlayerEventHandler.java:32) at cpw.mods.fml.common.eventhandler.ASMEventHandler_4_PlayerEventHandler_onPlayerTickEvent_PlayerTickEvent.invoke(.dynamic) at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:51) at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:122) at cpw.mods.fml.common.FMLCommonHandler.onPlayerPreTick(FMLCommonHandler.java:344) at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:274) at net.minecraft.client.entity.EntityClientPlayerMP.onUpdate(EntityClientPlayerMP.java:100) at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2254) at net.minecraft.world.World.updateEntity(World.java:2214) -- Entity being ticked -- Details: Entity Type: null (net.minecraft.client.entity.EntityClientPlayerMP) Entity ID: 130 Entity Name: Player33 Entity's Exact location: 43.51, 5.62, -977.75 Entity's Block location: World: (43,5,-978), Chunk: (at 11,0,14 in 2,-62; contains blocks 32,0,-992 to 47,255,-977), Region: (0,-2; contains chunks 0,-64 to 31,-33, blocks 0,0,-1024 to 511,255,-513) Entity's Momentum: 0.10, -0.08, 0.02 Stacktrace: at net.minecraft.world.World.updateEntities(World.java:2064) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Player33'/130, l='MpServer', x=43.51, y=5.62, z=-977.75]] Chunk stats: MultiplayerChunkCache: 225, 225 Level seed: 0 Level generator: ID 01 - flat, ver 0. Features enabled: false Level generator options: Level spawn location: World: (31,4,-970), Chunk: (at 15,0,6 in 1,-61; contains blocks 16,0,-976 to 31,255,-961), Region: (0,-2; contains chunks 0,-64 to 31,-33, blocks 0,0,-1024 to 511,255,-513) Level time: 889 game time, 889 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false Forced entities: 47 total; [EntityCow['Cow'/64, l='MpServer', x=101.22, y=4.00, z=-951.41], EntityChicken['Chicken'/65, l='MpServer', x=97.50, y=4.00, z=-943.50], EntityCow['Cow'/66, l='MpServer', x=97.69, y=4.00, z=-940.31], EntityCow['Cow'/67, l='MpServer', x=98.91, y=4.00, z=-945.76], EntityChicken['Chicken'/68, l='MpServer', x=111.63, y=4.00, z=-905.56], EntityPig['Pig'/11, l='MpServer', x=-10.19, y=4.00, z=-915.03], EntityChicken['Chicken'/75, l='MpServer', x=121.09, y=4.00, z=-1029.09], EntityPig['Pig'/12, l='MpServer', x=-5.78, y=4.00, z=-920.91], EntityPig['Pig'/13, l='MpServer', x=-7.09, y=4.00, z=-922.19], EntityChicken['Chicken'/77, l='MpServer', x=119.66, y=4.00, z=-1032.66], EntityChicken['Chicken'/14, l='MpServer', x=-8.97, y=4.00, z=-912.66], EntityChicken['Chicken'/15, l='MpServer', x=-10.50, y=4.00, z=-914.19], EntityHorse['Horse'/79, l='MpServer', x=119.50, y=4.00, z=-1038.50], EntityChicken['Chicken'/16, l='MpServer', x=-6.81, y=4.00, z=-918.47], EntityChicken['Chicken'/80, l='MpServer', x=119.31, y=4.00, z=-912.38], EntitySheep['Sheep'/17, l='MpServer', x=-5.31, y=4.00, z=-912.88], EntitySheep['Sheep'/18, l='MpServer', x=-1.94, y=4.00, z=-919.91], EntityCow['Cow'/82, l='MpServer', x=118.03, y=4.00, z=-915.91], EntityCow['Cow'/83, l='MpServer', x=116.50, y=4.00, z=-913.50], EntitySheep['Sheep'/19, l='MpServer', x=-11.66, y=4.00, z=-909.72], EntityCow['Cow'/84, l='MpServer', x=118.50, y=4.00, z=-908.50], EntityChicken['Chicken'/20, l='MpServer', x=-5.59, y=4.00, z=-918.38], EntitySheep['Sheep'/21, l='MpServer', x=15.91, y=4.00, z=-933.50], EntityCow['Cow'/86, l='MpServer', x=115.50, y=4.00, z=-904.50], EntityCow['Cow'/23, l='MpServer', x=26.75, y=4.00, z=-934.50], EntityCow['Cow'/87, l='MpServer', x=116.06, y=4.00, z=-910.16], EntityCow['Cow'/24, l='MpServer', x=23.50, y=4.00, z=-932.50], EntityCow['Cow'/88, l='MpServer', x=113.63, y=4.00, z=-908.66], EntityCow['Cow'/25, l='MpServer', x=22.31, y=4.00, z=-943.72], EntityCow['Cow'/89, l='MpServer', x=113.13, y=4.00, z=-906.03], EntityCow['Cow'/26, l='MpServer', x=19.31, y=4.00, z=-939.69], EntitySheep['Sheep'/27, l='MpServer', x=20.81, y=4.00, z=-934.19], EntitySheep['Sheep'/28, l='MpServer', x=20.18, y=4.00, z=-937.39], EntitySheep['Sheep'/29, l='MpServer', x=14.28, y=4.00, z=-940.50], EntitySheep['Sheep'/30, l='MpServer', x=18.95, y=4.00, z=-936.99], EntitySheep['Sheep'/31, l='MpServer', x=24.03, y=4.00, z=-923.06], EntitySheep['Sheep'/32, l='MpServer', x=21.50, y=4.00, z=-929.50], EntitySheep['Sheep'/33, l='MpServer', x=17.81, y=4.00, z=-932.19], EntityChicken['Chicken'/45, l='MpServer', x=93.31, y=4.00, z=-944.69], EntityChicken['Chicken'/46, l='MpServer', x=92.56, y=4.00, z=-945.56], EntityPig['Pig'/47, l='MpServer', x=94.09, y=4.00, z=-951.25], EntityCow['Cow'/48, l='MpServer', x=94.50, y=4.00, z=-938.50], EntityClientPlayerMP['Player33'/130, l='MpServer', x=43.51, y=5.62, z=-977.75], EntityChicken['Chicken'/60, l='MpServer', x=98.22, y=4.00, z=-944.44], EntityPig['Pig'/61, l='MpServer', x=100.59, y=4.00, z=-945.20], EntityPig['Pig'/62, l='MpServer', x=90.12, y=4.00, z=-954.31], EntityPig['Pig'/63, l='MpServer', x=98.53, y=4.00, z=-950.59]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:412) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2523) at net.minecraft.client.Minecraft.run(Minecraft.java:934) at net.minecraft.client.main.Main.main(Main.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) -- System Details -- Details: Minecraft Version: 1.7.2 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_05, Oracle Corporation Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 842413152 bytes (803 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 20239 (1133384 bytes; 1 MB) allocated, 2 (112 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.03 FML v7.2.211.1121 Minecraft Forge 10.12.2.1121 6 mods loaded, 6 mods active mcp{9.03} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{7.2.211.1121} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.2.1121.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{10.12.2.1121} [Minecraft Forge] (forgeSrc-1.7.2-10.12.2.1121.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available SonOfGods{1.0} [sonOfGods] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available NeverMind{1.0} [FirstMod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Launched Version: 1.6 LWJGL: 2.9.0 OpenGL: GeForce GTX 560 Ti/PCIe/SSE2 GL version 4.4.0, NVIDIA Corporation Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: 1155 (64680 bytes; 0 MB) allocated, 16 (896 bytes; 0 MB) used Anisotropic Filtering: Off (1)
-
How can I find out if a player ever killed a hostile mob?
-
Guys, I listened to your advices, it works now. Thanks a lot, that's a push for me in modding.
-
You're right, that was a silly mistake, but even after fixing that, it just simply does nothing. When i get arrows, it doesn't do anything.
-
I fixed that problem with PlayerTickEvent, but it still does nothing. Here is the code, if you can help me, you're the best: public void Load(FMLLoadEvent e) { MinecraftForge.EVENT_BUS.register(new PlayerEventHandler()); } public class PlayerEventHandler { @SubscribeEvent public void onPlayerTickEvent(PlayerTickEvent event) { if (event.player instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer)event.player; ItemStack heldItem = player.getHeldItem(); if (heldItem != null && heldItem.isItemEqual(new ItemStack(Items.arrow))) { System.out.println("True"); } } } }
-
"PlayerTickEvent cannot be resolved to a type". Maybe I'm doing something very nooby.
-
Don't get so mad. I replied to the other guy. It seems it just ignores what I coded. About your advice, I get an error when I replace LivingUpdateEvent with PlayerTickEvent