1

Crash Error with Mob trying to attack another.

sed11's Avatar sed1111/1/12 7:26 pm
1 emeralds 287
I have a problem.I'm trying to update my Arrow Golems mod and the mob works perfectly except for 1 problem.The game crashes when it tries to attack a mob.
I know it's when it tries to attack because it happens whenever I spawn a monster it attacks by it.

I tried making a new ArrowAttack AI with ArrowGolem after the name, but that didn't work, because there's still the crash error.I thought it would work because I thought it may be because the skeleton uses it to shoot arrows and so will the Arrow Golem, and so the new AI would only be used by the Arrow Golem, but that didn't work.

Any help would be appreciated.

This is the crash error:
Click to reveal
---- Minecraft Crash Report ----
// Hey, that tickles! Hehehe!

Time: 10/31/12 8:30 PM
Description: Exception in server tick loop

java.lang.NullPointerException
at net.minecraft.src.DataWatcher.getWatchableObjectByte(DataWatcher.java:65)
at net.minecraft.src.EntityArrowGolem.func_82202_m(EntityArrowGolem.java:121)
at net.minecraft.src.EntityArrowGolem.func_82196_d(EntityArrowGolem.java:140)
at net.minecraft.src.EntityAIArrowAttackArrowGolem.updateTask(EntityAIArrowAttackArrowGolem.java:109)
at net.minecraft.src.EntityAITasks.onUpdateTasks(EntityAITasks.java:97)
at net.minecraft.src.EntityLiving.updateAITasks(EntityLiving.java:1884)
at net.minecraft.src.EntityLiving.onLivingUpdate(EntityLiving.java:1611)
at net.minecraft.src.EntityArrowGolem.onLivingUpdate(EntityArrowGolem.java:38)
at net.minecraft.src.EntityLiving.onUpdate(EntityLiving.java:734)
at net.minecraft.src.World.updateEntityWithOptionalForce(World.java:2020)
at net.minecraft.src.WorldServer.updateEntityWithOptionalForce(WorldServer.java:546)
at net.minecraft.src.World.updateEntity(World.java:1991)
at net.minecraft.src.World.updateEntities(World.java:1876)
at net.minecraft.src.WorldServer.updateEntities(WorldServer.java:440)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:648)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:586)
at net.minecraft.src.IntegratedServer.tick(IntegratedServer.java:124)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:496)
at net.minecraft.src.ThreadMinecraftServer.run(ThreadMinecraftServer.java:17)

Relevant Details:
- Minecraft Version: 1.4.2
- Operating System: Windows 7 (x86) version 6.1
- Java Version: 1.7.0_04, Oracle Corporation
- Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
- Memory: 948965392 bytes (905 MB) / 1067057152 bytes (1017 MB) up to 1067057152 bytes (1017 MB)
- JVM Flags: 3 total; -Xincgc -Xms1024M -Xmx1024M
- AABB Pool Size: 13623 (762888 bytes; 0 MB) allocated, 3929 (220024 bytes; 0 MB) used
- ModLoader: Mods loaded: 2
ModLoader 1.4.2
mod_EntityArrowGolem 1.4.2

- Is Modded: Very likely
- Profiler Position: N/A (disabled)
- Vec3 Pool Size: 778 (43568 bytes; 0 MB) allocated, 778 (43568 bytes; 0 MB) used
- Player Count: 1 / 8; [EntityPlayerMP['Player653'/297, l='Test', x=57.50, y=72.00, z=247.50]]
- World Test Entities: 0 total; []
- World Test Players: 0 total; []
- World Test Chunk Stats: ServerChunkCache: 0 Drop: 0
- Type: Integrated Server


And yes, that's the only problem I'm having.I tried searching Google for any help but couldn't find the answer.
Posted by sed11's Avatar
sed11
Retired Moderator
Level 66 : High Grandmaster Hero
385

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome