Thankyousomuchhhhhhhhhhhhhh It's easier to understandnow
but i crash when i tried to cast the hook
---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.
Time: 26/4/2557, 8:12 น.
Description: Ticking entity
java.lang.NullPointerException: Ticking entity
at net.minecraft.entity.projectile.EntityFishHook.onUpdate(SourceFile:197)
at chett.fishymod.entity.EntityExampleFishHook.onUpdate(EntityExampleFishHook.java:182)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2019)
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:659)
at net.minecraft.world.World.updateEntity(World.java:1983)
at net.minecraft.world.World.updateEntities(World.java:1836)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:500)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:616)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:527)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:111)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:665)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at net.minecraft.entity.projectile.EntityFishHook.onUpdate(SourceFile:197)
at chett.fishymod.entity.EntityExampleFishHook.onUpdate(EntityExampleFishHook.java:182)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2019)
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:659)
at net.minecraft.world.World.updateEntity(World.java:1983)
-- Entity being ticked --
Details:
Entity Type: EntityExampleFishHook (chett.fishymod.entity.EntityExampleFishHook)
Entity ID: 71
Entity Name: entity.EntityExampleFishHook.name
Entity's Exact location: 465.24, 17.52, -50.44
Entity's Block location: World: (465,17,-51), Chunk: (at 1,1,13 in 29,-4; contains blocks 464,0,-64 to 479,255,-49), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
Entity's Momentum: -1.48, 0.26, -0.12
Stacktrace:
at net.minecraft.world.World.updateEntities(World.java:1836)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:500)
-- Affected level --
Details:
Level name: New World
All players: 1 total; [EntityPlayerMP['Player192'/39, l='New World', x=465.23, y=16.00, z=-50.28]]
Chunk stats: ServerChunkCache: 625 Drop: 0
Level seed: 7999106561926874898
Level generator: ID 01 - flat, ver 0. Features enabled: true
Level generator options: 2;7,5x1,5x3,5x12,9;1;biome_1,village
Level spawn location: World: (460,4,-40), Chunk: (at 12,0,8 in 28,-3; contains blocks 448,0,-48 to 463,255,-33), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
Level time: 1673 game time, 1673 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 150986 (now: false), thunder time: 98107 (now: false)
Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:616)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:527)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:111)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:665)
-- System Details --
Details:
Minecraft Version: 1.7.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_03, Oracle Corporation
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 867008888 bytes (826 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 677 (37912 bytes; 0 MB) allocated, 329 (18424 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.01-pre FML v7.2.156.1060 Minecraft Forge 10.12.1.1060 5 mods loaded, 5 mods active
mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{7.2.156.1060} [Forge Mod Loader] (forgeBin-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.12.1.1060} [Minecraft Forge] (forgeBin-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FishyMod{1.0.0 Alpha} [Fishy Mod] (bin) 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
Profiler Position: N/A (disabled)
Vec3 Pool Size: 285 (15960 bytes; 0 MB) allocated, 51 (2856 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['Player192'/39, l='New World', x=465.23, y=16.00, z=-50.28]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
i'm using your exact code apart from the package
// i just replace super.onUpdate() with super.onEntityUpdate() and now it work
//new problem. fishing line is not rendered and when i tried to retract the hook ,it crashed.
yay play play play play [play play playpl ayplayplay paly paly pla yplaypl aypl aypla ypl ayplaypl aypl ayplaypl aypl ayp aylpaply
*** i wanna play NOW!!!
0
0
but i crash when i tried to cast the hook
---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.
Time: 26/4/2557, 8:12 น.
Description: Ticking entity
java.lang.NullPointerException: Ticking entity
at net.minecraft.entity.projectile.EntityFishHook.onUpdate(SourceFile:197)
at chett.fishymod.entity.EntityExampleFishHook.onUpdate(EntityExampleFishHook.java:182)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2019)
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:659)
at net.minecraft.world.World.updateEntity(World.java:1983)
at net.minecraft.world.World.updateEntities(World.java:1836)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:500)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:616)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:527)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:111)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:665)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at net.minecraft.entity.projectile.EntityFishHook.onUpdate(SourceFile:197)
at chett.fishymod.entity.EntityExampleFishHook.onUpdate(EntityExampleFishHook.java:182)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2019)
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:659)
at net.minecraft.world.World.updateEntity(World.java:1983)
-- Entity being ticked --
Details:
Entity Type: EntityExampleFishHook (chett.fishymod.entity.EntityExampleFishHook)
Entity ID: 71
Entity Name: entity.EntityExampleFishHook.name
Entity's Exact location: 465.24, 17.52, -50.44
Entity's Block location: World: (465,17,-51), Chunk: (at 1,1,13 in 29,-4; contains blocks 464,0,-64 to 479,255,-49), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
Entity's Momentum: -1.48, 0.26, -0.12
Stacktrace:
at net.minecraft.world.World.updateEntities(World.java:1836)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:500)
-- Affected level --
Details:
Level name: New World
All players: 1 total; [EntityPlayerMP['Player192'/39, l='New World', x=465.23, y=16.00, z=-50.28]]
Chunk stats: ServerChunkCache: 625 Drop: 0
Level seed: 7999106561926874898
Level generator: ID 01 - flat, ver 0. Features enabled: true
Level generator options: 2;7,5x1,5x3,5x12,9;1;biome_1,village
Level spawn location: World: (460,4,-40), Chunk: (at 12,0,8 in 28,-3; contains blocks 448,0,-48 to 463,255,-33), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
Level time: 1673 game time, 1673 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 150986 (now: false), thunder time: 98107 (now: false)
Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:616)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:527)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:111)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:665)
-- System Details --
Details:
Minecraft Version: 1.7.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_03, Oracle Corporation
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 867008888 bytes (826 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 677 (37912 bytes; 0 MB) allocated, 329 (18424 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.01-pre FML v7.2.156.1060 Minecraft Forge 10.12.1.1060 5 mods loaded, 5 mods active
mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{7.2.156.1060} [Forge Mod Loader] (forgeBin-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.12.1.1060} [Minecraft Forge] (forgeBin-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FishyMod{1.0.0 Alpha} [Fishy Mod] (bin) 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
Profiler Position: N/A (disabled)
Vec3 Pool Size: 285 (15960 bytes; 0 MB) allocated, 51 (2856 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['Player192'/39, l='New World', x=465.23, y=16.00, z=-50.28]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
// i just replace super.onUpdate() with super.onEntityUpdate() and now it work
//new problem. fishing line is not rendered and when i tried to retract the hook ,it crashed.
0
0
0
0
0
regular is bettermore variation
ignore that ^
i think that picture is awesome and we will use that
0
*** i wanna play NOW!!!
0
sound nice
permission granted
0
0
0
0
0
0