Jump to content

Mob spawn crash


Shanedublin

Recommended Posts

I made my own custom Chicken Entity to learn how to make a mob.  The mob functions how it is supposed to. I can use a spawner egg to spawn my chicken.

 

I'm guessing if I tried to have these chicken occur naturally in the world that it would crash too.  I don't know why I can use a spawner egg, but not spawn them in using other means.

 

The problem is when I try to spawn it using a custom egg class. I am using the exactly same code with the exception that I changed

 

EntityChicken entityChicken = new EntityChicken(this.worldobj)

 

to match my chicken class.

 

 

 

---- Minecraft Crash Report ----

// I'm sorry, Dave.

 

Time: 7/18/13 8:23 PM

Description: Exception in world tick

 

java.lang.NullPointerException

at net.minecraft.client.multiplayer.NetClientHandler.handleMobSpawn(NetClientHandler.java:952)

at net.minecraft.network.packet.Packet24MobSpawn.processPacket(Packet24MobSpawn.java:143)

at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)

at net.minecraft.client.multiplayer.NetClientHandler.processReadPackets(NetClientHandler.java:281)

at net.minecraft.client.multiplayer.WorldClient.tick(WorldClient.java:99)

at net.minecraft.client.Minecraft.runTick(Minecraft.java:1916)

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:898)

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:826)

at net.minecraft.client.main.Main.main(Main.java:93)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)

at net.minecraft.launchwrapper.Launch.main(Launch.java:18)

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at net.minecraft.client.multiplayer.NetClientHandler.handleMobSpawn(NetClientHandler.java:952)

at net.minecraft.network.packet.Packet24MobSpawn.processPacket(Packet24MobSpawn.java:143)

at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)

at net.minecraft.client.multiplayer.NetClientHandler.processReadPackets(NetClientHandler.java:281)

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['Player427'/292, l='MpServer', x=199.11, y=79.62, z=214.16]]

Chunk stats: MultiplayerChunkCache: 441

Level seed: 0

Level generator: ID 00 - default, ver 1. Features enabled: false

Level generator options:

Level spawn location: World: (144,64,256), Chunk: (at 0,4,0 in 9,16; contains blocks 144,0,256 to 159,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 114819 game time, 59952 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: creative (ID 1). Hardcore: false. Cheats: false

Forced entities: 142 total; [EntityPig['Pig'/259, l='MpServer', x=276.53, y=74.00, z=217.72], EntitySkeleton['Skeleton'/262, l='MpServer', x=274.91, y=21.00, z=220.97], EntityPig['Pig'/260, l='MpServer', x=274.47, y=74.00, z=219.59], EntityZombie['Zombie'/266, l='MpServer', x=274.56, y=21.00, z=257.95], EntityZombie['Zombie'/267, l='MpServer', x=275.34, y=50.00, z=258.94], EntitySkeleton['Skeleton'/265, l='MpServer', x=278.01, y=52.00, z=242.31], EntityZombie['Zombie'/271, l='MpServer', x=277.48, y=56.00, z=287.99], EntityCreeper['Creeper'/268, l='MpServer', x=272.50, y=24.00, z=274.50], EntityCreeper['Creeper'/269, l='MpServer', x=275.63, y=20.00, z=287.31], EntityClientPlayerMP['Player427'/292, l='MpServer', x=199.11, y=79.62, z=214.16], EntityCreeper['Creeper'/76, l='MpServer', x=126.31, y=12.00, z=139.31], EntityOcelot['Ocelot'/79, l='MpServer', x=120.53, y=66.00, z=220.88], EntityZombie['Zombie'/85, l='MpServer', x=128.50, y=12.00, z=160.56], EntitySkeleton['Skeleton'/84, l='MpServer', x=135.47, y=16.00, z=147.13], EntityOcelot['Ocelot'/87, l='MpServer', x=134.47, y=65.00, z=217.75], EntityCow['Cow'/86, l='MpServer', x=138.69, y=64.00, z=181.31], EntitySheep['Sheep'/80, l='MpServer', x=121.28, y=76.00, z=276.63], EntityIronGolem['Iron Golem'/93, l='MpServer', x=149.09, y=66.00, z=141.04], EntityCow['Cow'/92, l='MpServer', x=152.36, y=69.00, z=139.26], EntityPig['Pig'/95, l='MpServer', x=143.50, y=65.00, z=209.56], EntityOcelot['Ocelot'/94, l='MpServer', x=153.16, y=63.00, z=194.91], EntityOcelot['Ocelot'/89, l='MpServer', x=129.31, y=76.00, z=269.68], EntityCow['Cow'/88, l='MpServer', x=138.44, y=74.00, z=241.22], EntityZombie['Zombie'/102, l='MpServer', x=169.72, y=66.29, z=167.06], EntitySnowman['Snow Golem'/103, l='MpServer', x=166.25, y=63.00, z=189.22], EntityPig['Pig'/96, l='MpServer', x=152.46, y=67.69, z=229.47], EntityCow['Cow'/110, l='MpServer', x=161.59, y=66.00, z=244.63], EntityPig['Pig'/108, l='MpServer', x=166.50, y=64.00, z=245.31], EntityPig['Pig'/109, l='MpServer', x=170.28, y=64.00, z=240.53], EntityBlingChicken['BlingChicken'/106, l='MpServer', x=166.38, y=66.00, z=182.66], EntityOcelot['Ocelot'/107, l='MpServer', x=165.41, y=64.00, z=188.66], EntityCow['Cow'/104, l='MpServer', x=167.91, y=63.00, z=190.50], EntityPig['Pig'/105, l='MpServer', x=165.84, y=64.00, z=187.78], EntitySnowman['Snow Golem'/119, l='MpServer', x=189.50, y=68.00, z=175.38], EntityIronGolem['Iron Golem'/118, l='MpServer', x=190.41, y=64.00, z=169.09], EntitySquid['Squid'/127, l='MpServer', x=181.53, y=60.00, z=233.47], EntitySnowman['Snow Golem'/126, l='MpServer', x=182.66, y=68.00, z=210.34], EntitySkeleton['Skeleton'/125, l='MpServer', x=183.88, y=65.00, z=212.41], EntityCreeper['Creeper'/124, l='MpServer', x=182.97, y=28.00, z=221.44], EntitySnowman['Snow Golem'/123, l='MpServer', x=179.28, y=65.00, z=193.50], EntitySnowman['Snow Golem'/122, l='MpServer', x=179.50, y=64.00, z=197.75], EntitySnowman['Snow Golem'/121, l='MpServer', x=176.53, y=64.00, z=189.75], EntitySkeleton['Skeleton'/120, l='MpServer', x=175.48, y=66.53, z=165.64], EntityIronGolem['Iron Golem'/137, l='MpServer', x=202.16, y=62.00, z=176.50], EntityCow['Cow'/136, l='MpServer', x=195.03, y=64.00, z=155.88], EntityItem['item.item.snowball'/139, l='MpServer', x=202.63, y=62.13, z=177.53], EntitySnowman['Snow Golem'/138, l='MpServer', x=202.00, y=63.00, z=178.00], EntitySnowman['Snow Golem'/141, l='MpServer', x=191.50, y=63.37, z=175.57], EntityItem['item.item.snowball'/140, l='MpServer', x=204.34, y=62.13, z=177.59], EntitySnowman['Snow Golem'/143, l='MpServer', x=196.50, y=64.00, z=180.44], EntitySnowman['Snow Golem'/142, l='MpServer', x=193.28, y=63.00, z=177.78], EntityCow['Cow'/129, l='MpServer', x=184.31, y=64.00, z=249.69], EntityPig['Pig'/128, l='MpServer', x=174.72, y=64.00, z=236.26], EntityCow['Cow'/131, l='MpServer', x=187.41, y=64.00, z=253.53], EntityOcelot['Ocelot'/130, l='MpServer', x=185.44, y=64.00, z=249.44], EntityCreeper['Creeper'/133, l='MpServer', x=186.16, y=51.00, z=277.25], EntityPig['Pig'/132, l='MpServer', x=188.41, y=64.00, z=247.53], EntitySnowman['Snow Golem'/144, l='MpServer', x=201.63, y=66.00, z=181.16], EntityBlingChicken['BlingChicken'/145, l='MpServer', x=202.22, y=78.00, z=215.03], EntityBlingChicken['BlingChicken'/146, l='MpServer', x=202.69, y=78.00, z=214.25], EntitySnowman['Snow Golem'/147, l='MpServer', x=207.75, y=74.00, z=209.41], EntityBlingChicken['BlingChicken'/148, l='MpServer', x=199.50, y=78.00, z=212.50], EntityCreeper['Creeper'/149, l='MpServer', x=202.00, y=59.00, z=259.56], EntityBat['Bat'/150, l='MpServer', x=206.41, y=58.89, z=260.47], EntityCow['Cow'/151, l='MpServer', x=192.94, y=67.00, z=282.75], EntitySnowman['Snow Golem'/163, l='MpServer', x=209.50, y=63.00, z=177.28], EntityOcelot['Ocelot'/162, l='MpServer', x=218.06, y=66.00, z=175.53], EntityCow['Cow'/167, l='MpServer', x=220.53, y=65.00, z=282.72], EntityCow['Cow'/166, l='MpServer', x=220.94, y=63.00, z=227.72], EntityPig['Pig'/165, l='MpServer', x=217.63, y=63.14, z=207.89], EntityOcelot['Ocelot'/164, l='MpServer', x=215.53, y=74.00, z=188.07], EntityBat['Bat'/186, l='MpServer', x=229.44, y=52.73, z=251.44], EntityCreeper['Creeper'/187, l='MpServer', x=235.78, y=12.00, z=263.28], EntityCow['Cow'/184, l='MpServer', x=236.81, y=63.00, z=251.19], EntityBat['Bat'/185, l='MpServer', x=233.25, y=56.10, z=246.50], EntityBat['Bat'/190, l='MpServer', x=240.41, y=52.17, z=263.09], EntityBat['Bat'/191, l='MpServer', x=233.41, y=41.00, z=278.44], EntityCreeper['Creeper'/188, l='MpServer', x=236.63, y=12.00, z=263.84], EntitySkeleton['Skeleton'/189, l='MpServer', x=238.63, y=26.00, z=258.50], EntityCreeper['Creeper'/178, l='MpServer', x=233.84, y=19.00, z=233.91], EntitySkeleton['Skeleton'/179, l='MpServer', x=238.94, y=19.00, z=235.47], EntityCow['Cow'/176, l='MpServer', x=224.84, y=69.00, z=173.22], EntityCreeper['Creeper'/177, l='MpServer', x=234.50, y=20.00, z=227.97], EntityCreeper['Creeper'/182, l='MpServer', x=237.50, y=24.00, z=251.50], EntityEgg['unknown'/2095, l='MpServer', x=195.76, y=77.80, z=211.70], EntityCow['Cow'/183, l='MpServer', x=238.38, y=63.00, z=249.81], EntityCow['Cow'/180, l='MpServer', x=233.34, y=63.00, z=233.28], EntityCow['Cow'/181, l='MpServer', x=239.38, y=69.00, z=232.75], EntityCow['Cow'/205, l='MpServer', x=251.09, y=76.00, z=232.53], EntityCow['Cow'/204, l='MpServer', x=254.53, y=77.00, z=225.47], EntityCreeper['Creeper'/207, l='MpServer', x=246.12, y=22.34, z=242.92], EntityZombie['Zombie'/206, l='MpServer', x=250.44, y=18.00, z=253.75], EntitySkeleton['Skeleton'/201, l='MpServer', x=247.50, y=53.00, z=217.91], EntitySkeleton['Skeleton'/200, l='MpServer', x=246.75, y=53.00, z=223.38], EntityBat['Bat'/203, l='MpServer', x=240.69, y=52.95, z=229.72], EntityBat['Bat'/202, l='MpServer', x=240.75, y=55.10, z=212.25], EntityCow['Cow'/197, l='MpServer', x=250.72, y=63.00, z=187.50], EntityCow['Cow'/196, l='MpServer', x=255.63, y=66.00, z=151.50], EntityBat['Bat'/199, l='MpServer', x=255.25, y=60.10, z=210.50], EntitySpider['Spider'/198, l='MpServer', x=254.57, y=24.06, z=221.75], EntityCow['Cow'/193, l='MpServer', x=248.09, y=63.00, z=149.78], EntityCow['Cow'/195, l='MpServer', x=248.22, y=68.00, z=158.53], EntityPig['Pig'/194, l='MpServer', x=249.41, y=63.00, z=150.53], EntityEnderman['Enderman'/220, l='MpServer', x=260.47, y=59.00, z=161.63], EntityCow['Cow'/221, l='MpServer', x=264.84, y=76.00, z=163.16], EntityCow['Cow'/222, l='MpServer', x=269.47, y=73.00, z=182.50], EntityCow['Cow'/223, l='MpServer', x=269.47, y=73.00, z=182.50], EntityCow['Cow'/216, l='MpServer', x=255.41, y=77.00, z=273.41], EntityCow['Cow'/218, l='MpServer', x=270.72, y=63.00, z=141.31], EntitySkeleton['Skeleton'/212, l='MpServer', x=249.50, y=17.00, z=261.16], EntityZombie['Zombie'/213, l='MpServer', x=253.09, y=19.00, z=258.25], EntityZombie['Zombie'/214, l='MpServer', x=253.72, y=19.00, z=257.31], EntitySpider['Spider'/215, l='MpServer', x=251.41, y=20.39, z=273.22], EntityZombie['Zombie'/208, l='MpServer', x=249.50, y=18.00, z=253.88], EntityBat['Bat'/209, l='MpServer', x=248.25, y=51.10, z=248.75], EntityCreeper['Creeper'/210, l='MpServer', x=251.63, y=11.00, z=264.30], EntityBat['Bat'/211, l='MpServer', x=251.50, y=13.92, z=266.91], EntityBat['Bat'/239, l='MpServer', x=268.92, y=18.09, z=263.67], EntityZombie['Zombie'/238, l='MpServer', x=267.56, y=26.00, z=256.84], EntitySkeleton['Skeleton'/237, l='MpServer', x=258.52, y=17.41, z=264.69], EntityCreeper['Creeper'/236, l='MpServer', x=257.69, y=24.00, z=271.31], EntityCreeper['Creeper'/235, l='MpServer', x=263.78, y=27.00, z=265.97], EntityCow['Cow'/234, l='MpServer', x=256.28, y=63.00, z=251.28], EntityEnderman['Enderman'/233, l='MpServer', x=263.22, y=50.00, z=252.72], EntityCreeper['Creeper'/232, l='MpServer', x=270.50, y=45.00, z=253.50], EntitySpider['Spider'/231, l='MpServer', x=271.06, y=43.00, z=242.06], EntityZombie['Zombie'/230, l='MpServer', x=262.97, y=41.00, z=240.63], EntityZombie['Zombie'/229, l='MpServer', x=270.47, y=45.00, z=251.78], EntityZombie['Zombie'/228, l='MpServer', x=264.70, y=25.00, z=254.03], EntityZombie['Zombie'/227, l='MpServer', x=256.50, y=40.00, z=238.50], EntityCreeper['Creeper'/226, l='MpServer', x=271.06, y=11.00, z=221.72], EntityCreeper['Creeper'/225, l='MpServer', x=269.72, y=12.00, z=220.57], EntityCow['Cow'/224, l='MpServer', x=257.69, y=67.00, z=188.50], EntityPig['Pig'/250, l='MpServer', x=274.84, y=64.00, z=147.34], EntityPig['Pig'/248, l='MpServer', x=278.97, y=63.00, z=149.09], EntityCow['Cow'/249, l='MpServer', x=278.28, y=64.00, z=150.44], EntityCow['Cow'/247, l='MpServer', x=279.97, y=63.00, z=153.34], EntityCow['Cow'/244, l='MpServer', x=267.78, y=77.00, z=284.69], EntitySkeleton['Skeleton'/242, l='MpServer', x=259.63, y=32.78, z=257.94], EntitySpider['Spider'/243, l='MpServer', x=257.00, y=51.00, z=275.28], EntityZombie['Zombie'/240, l='MpServer', x=270.56, y=42.00, z=269.94], EntitySpider['Spider'/241, l='MpServer', x=265.81, y=33.00, z=264.91]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

Stacktrace:

at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:440)

at net.minecraft.client.Minecraft.runTick(Minecraft.java:1929)

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:898)

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:826)

at net.minecraft.client.main.Main.main(Main.java:93)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)

at net.minecraft.launchwrapper.Launch.main(Launch.java:18)

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['Player427'/292, l='MpServer', x=199.11, y=79.62, z=214.16]]

Chunk stats: MultiplayerChunkCache: 441

Level seed: 0

Level generator: ID 00 - default, ver 1. Features enabled: false

Level generator options:

Level spawn location: World: (144,64,256), Chunk: (at 0,4,0 in 9,16; contains blocks 144,0,256 to 159,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 114819 game time, 59952 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: creative (ID 1). Hardcore: false. Cheats: false

Forced entities: 142 total; [EntityPig['Pig'/259, l='MpServer', x=276.53, y=74.00, z=217.72], EntitySkeleton['Skeleton'/262, l='MpServer', x=274.91, y=21.00, z=220.97], EntityPig['Pig'/260, l='MpServer', x=274.47, y=74.00, z=219.59], EntityZombie['Zombie'/266, l='MpServer', x=274.56, y=21.00, z=257.95], EntityZombie['Zombie'/267, l='MpServer', x=275.34, y=50.00, z=258.94], EntitySkeleton['Skeleton'/265, l='MpServer', x=278.01, y=52.00, z=242.31], EntityZombie['Zombie'/271, l='MpServer', x=277.48, y=56.00, z=287.99], EntityCreeper['Creeper'/268, l='MpServer', x=272.50, y=24.00, z=274.50], EntityCreeper['Creeper'/269, l='MpServer', x=275.63, y=20.00, z=287.31], EntityClientPlayerMP['Player427'/292, l='MpServer', x=199.11, y=79.62, z=214.16], EntityCreeper['Creeper'/76, l='MpServer', x=126.31, y=12.00, z=139.31], EntityOcelot['Ocelot'/79, l='MpServer', x=120.53, y=66.00, z=220.88], EntityZombie['Zombie'/85, l='MpServer', x=128.50, y=12.00, z=160.56], EntitySkeleton['Skeleton'/84, l='MpServer', x=135.47, y=16.00, z=147.13], EntityOcelot['Ocelot'/87, l='MpServer', x=134.47, y=65.00, z=217.75], EntityCow['Cow'/86, l='MpServer', x=138.69, y=64.00, z=181.31], EntitySheep['Sheep'/80, l='MpServer', x=121.28, y=76.00, z=276.63], EntityIronGolem['Iron Golem'/93, l='MpServer', x=149.09, y=66.00, z=141.04], EntityCow['Cow'/92, l='MpServer', x=152.36, y=69.00, z=139.26], EntityPig['Pig'/95, l='MpServer', x=143.50, y=65.00, z=209.56], EntityOcelot['Ocelot'/94, l='MpServer', x=153.16, y=63.00, z=194.91], EntityOcelot['Ocelot'/89, l='MpServer', x=129.31, y=76.00, z=269.68], EntityCow['Cow'/88, l='MpServer', x=138.44, y=74.00, z=241.22], EntityZombie['Zombie'/102, l='MpServer', x=169.72, y=66.29, z=167.06], EntitySnowman['Snow Golem'/103, l='MpServer', x=166.25, y=63.00, z=189.22], EntityPig['Pig'/96, l='MpServer', x=152.46, y=67.69, z=229.47], EntityCow['Cow'/110, l='MpServer', x=161.59, y=66.00, z=244.63], EntityPig['Pig'/108, l='MpServer', x=166.50, y=64.00, z=245.31], EntityPig['Pig'/109, l='MpServer', x=170.28, y=64.00, z=240.53], EntityBlingChicken['BlingChicken'/106, l='MpServer', x=166.38, y=66.00, z=182.66], EntityOcelot['Ocelot'/107, l='MpServer', x=165.41, y=64.00, z=188.66], EntityCow['Cow'/104, l='MpServer', x=167.91, y=63.00, z=190.50], EntityPig['Pig'/105, l='MpServer', x=165.84, y=64.00, z=187.78], EntitySnowman['Snow Golem'/119, l='MpServer', x=189.50, y=68.00, z=175.38], EntityIronGolem['Iron Golem'/118, l='MpServer', x=190.41, y=64.00, z=169.09], EntitySquid['Squid'/127, l='MpServer', x=181.53, y=60.00, z=233.47], EntitySnowman['Snow Golem'/126, l='MpServer', x=182.66, y=68.00, z=210.34], EntitySkeleton['Skeleton'/125, l='MpServer', x=183.88, y=65.00, z=212.41], EntityCreeper['Creeper'/124, l='MpServer', x=182.97, y=28.00, z=221.44], EntitySnowman['Snow Golem'/123, l='MpServer', x=179.28, y=65.00, z=193.50], EntitySnowman['Snow Golem'/122, l='MpServer', x=179.50, y=64.00, z=197.75], EntitySnowman['Snow Golem'/121, l='MpServer', x=176.53, y=64.00, z=189.75], EntitySkeleton['Skeleton'/120, l='MpServer', x=175.48, y=66.53, z=165.64], EntityIronGolem['Iron Golem'/137, l='MpServer', x=202.16, y=62.00, z=176.50], EntityCow['Cow'/136, l='MpServer', x=195.03, y=64.00, z=155.88], EntityItem['item.item.snowball'/139, l='MpServer', x=202.63, y=62.13, z=177.53], EntitySnowman['Snow Golem'/138, l='MpServer', x=202.00, y=63.00, z=178.00], EntitySnowman['Snow Golem'/141, l='MpServer', x=191.50, y=63.37, z=175.57], EntityItem['item.item.snowball'/140, l='MpServer', x=204.34, y=62.13, z=177.59], EntitySnowman['Snow Golem'/143, l='MpServer', x=196.50, y=64.00, z=180.44], EntitySnowman['Snow Golem'/142, l='MpServer', x=193.28, y=63.00, z=177.78], EntityCow['Cow'/129, l='MpServer', x=184.31, y=64.00, z=249.69], EntityPig['Pig'/128, l='MpServer', x=174.72, y=64.00, z=236.26], EntityCow['Cow'/131, l='MpServer', x=187.41, y=64.00, z=253.53], EntityOcelot['Ocelot'/130, l='MpServer', x=185.44, y=64.00, z=249.44], EntityCreeper['Creeper'/133, l='MpServer', x=186.16, y=51.00, z=277.25], EntityPig['Pig'/132, l='MpServer', x=188.41, y=64.00, z=247.53], EntitySnowman['Snow Golem'/144, l='MpServer', x=201.63, y=66.00, z=181.16], EntityBlingChicken['BlingChicken'/145, l='MpServer', x=202.22, y=78.00, z=215.03], EntityBlingChicken['BlingChicken'/146, l='MpServer', x=202.69, y=78.00, z=214.25], EntitySnowman['Snow Golem'/147, l='MpServer', x=207.75, y=74.00, z=209.41], EntityBlingChicken['BlingChicken'/148, l='MpServer', x=199.50, y=78.00, z=212.50], EntityCreeper['Creeper'/149, l='MpServer', x=202.00, y=59.00, z=259.56], EntityBat['Bat'/150, l='MpServer', x=206.41, y=58.89, z=260.47], EntityCow['Cow'/151, l='MpServer', x=192.94, y=67.00, z=282.75], EntitySnowman['Snow Golem'/163, l='MpServer', x=209.50, y=63.00, z=177.28], EntityOcelot['Ocelot'/162, l='MpServer', x=218.06, y=66.00, z=175.53], EntityCow['Cow'/167, l='MpServer', x=220.53, y=65.00, z=282.72], EntityCow['Cow'/166, l='MpServer', x=220.94, y=63.00, z=227.72], EntityPig['Pig'/165, l='MpServer', x=217.63, y=63.14, z=207.89], EntityOcelot['Ocelot'/164, l='MpServer', x=215.53, y=74.00, z=188.07], EntityBat['Bat'/186, l='MpServer', x=229.44, y=52.73, z=251.44], EntityCreeper['Creeper'/187, l='MpServer', x=235.78, y=12.00, z=263.28], EntityCow['Cow'/184, l='MpServer', x=236.81, y=63.00, z=251.19], EntityBat['Bat'/185, l='MpServer', x=233.25, y=56.10, z=246.50], EntityBat['Bat'/190, l='MpServer', x=240.41, y=52.17, z=263.09], EntityBat['Bat'/191, l='MpServer', x=233.41, y=41.00, z=278.44], EntityCreeper['Creeper'/188, l='MpServer', x=236.63, y=12.00, z=263.84], EntitySkeleton['Skeleton'/189, l='MpServer', x=238.63, y=26.00, z=258.50], EntityCreeper['Creeper'/178, l='MpServer', x=233.84, y=19.00, z=233.91], EntitySkeleton['Skeleton'/179, l='MpServer', x=238.94, y=19.00, z=235.47], EntityCow['Cow'/176, l='MpServer', x=224.84, y=69.00, z=173.22], EntityCreeper['Creeper'/177, l='MpServer', x=234.50, y=20.00, z=227.97], EntityCreeper['Creeper'/182, l='MpServer', x=237.50, y=24.00, z=251.50], EntityEgg['unknown'/2095, l='MpServer', x=195.76, y=77.80, z=211.70], EntityCow['Cow'/183, l='MpServer', x=238.38, y=63.00, z=249.81], EntityCow['Cow'/180, l='MpServer', x=233.34, y=63.00, z=233.28], EntityCow['Cow'/181, l='MpServer', x=239.38, y=69.00, z=232.75], EntityCow['Cow'/205, l='MpServer', x=251.09, y=76.00, z=232.53], EntityCow['Cow'/204, l='MpServer', x=254.53, y=77.00, z=225.47], EntityCreeper['Creeper'/207, l='MpServer', x=246.12, y=22.34, z=242.92], EntityZombie['Zombie'/206, l='MpServer', x=250.44, y=18.00, z=253.75], EntitySkeleton['Skeleton'/201, l='MpServer', x=247.50, y=53.00, z=217.91], EntitySkeleton['Skeleton'/200, l='MpServer', x=246.75, y=53.00, z=223.38], EntityBat['Bat'/203, l='MpServer', x=240.69, y=52.95, z=229.72], EntityBat['Bat'/202, l='MpServer', x=240.75, y=55.10, z=212.25], EntityCow['Cow'/197, l='MpServer', x=250.72, y=63.00, z=187.50], EntityCow['Cow'/196, l='MpServer', x=255.63, y=66.00, z=151.50], EntityBat['Bat'/199, l='MpServer', x=255.25, y=60.10, z=210.50], EntitySpider['Spider'/198, l='MpServer', x=254.57, y=24.06, z=221.75], EntityCow['Cow'/193, l='MpServer', x=248.09, y=63.00, z=149.78], EntityCow['Cow'/195, l='MpServer', x=248.22, y=68.00, z=158.53], EntityPig['Pig'/194, l='MpServer', x=249.41, y=63.00, z=150.53], EntityEnderman['Enderman'/220, l='MpServer', x=260.47, y=59.00, z=161.63], EntityCow['Cow'/221, l='MpServer', x=264.84, y=76.00, z=163.16], EntityCow['Cow'/222, l='MpServer', x=269.47, y=73.00, z=182.50], EntityCow['Cow'/223, l='MpServer', x=269.47, y=73.00, z=182.50], EntityCow['Cow'/216, l='MpServer', x=255.41, y=77.00, z=273.41], EntityCow['Cow'/218, l='MpServer', x=270.72, y=63.00, z=141.31], EntitySkeleton['Skeleton'/212, l='MpServer', x=249.50, y=17.00, z=261.16], EntityZombie['Zombie'/213, l='MpServer', x=253.09, y=19.00, z=258.25], EntityZombie['Zombie'/214, l='MpServer', x=253.72, y=19.00, z=257.31], EntitySpider['Spider'/215, l='MpServer', x=251.41, y=20.39, z=273.22], EntityZombie['Zombie'/208, l='MpServer', x=249.50, y=18.00, z=253.88], EntityBat['Bat'/209, l='MpServer', x=248.25, y=51.10, z=248.75], EntityCreeper['Creeper'/210, l='MpServer', x=251.63, y=11.00, z=264.30], EntityBat['Bat'/211, l='MpServer', x=251.50, y=13.92, z=266.91], EntityBat['Bat'/239, l='MpServer', x=268.92, y=18.09, z=263.67], EntityZombie['Zombie'/238, l='MpServer', x=267.56, y=26.00, z=256.84], EntitySkeleton['Skeleton'/237, l='MpServer', x=258.52, y=17.41, z=264.69], EntityCreeper['Creeper'/236, l='MpServer', x=257.69, y=24.00, z=271.31], EntityCreeper['Creeper'/235, l='MpServer', x=263.78, y=27.00, z=265.97], EntityCow['Cow'/234, l='MpServer', x=256.28, y=63.00, z=251.28], EntityEnderman['Enderman'/233, l='MpServer', x=263.22, y=50.00, z=252.72], EntityCreeper['Creeper'/232, l='MpServer', x=270.50, y=45.00, z=253.50], EntitySpider['Spider'/231, l='MpServer', x=271.06, y=43.00, z=242.06], EntityZombie['Zombie'/230, l='MpServer', x=262.97, y=41.00, z=240.63], EntityZombie['Zombie'/229, l='MpServer', x=270.47, y=45.00, z=251.78], EntityZombie['Zombie'/228, l='MpServer', x=264.70, y=25.00, z=254.03], EntityZombie['Zombie'/227, l='MpServer', x=256.50, y=40.00, z=238.50], EntityCreeper['Creeper'/226, l='MpServer', x=271.06, y=11.00, z=221.72], EntityCreeper['Creeper'/225, l='MpServer', x=269.72, y=12.00, z=220.57], EntityCow['Cow'/224, l='MpServer', x=257.69, y=67.00, z=188.50], EntityPig['Pig'/250, l='MpServer', x=274.84, y=64.00, z=147.34], EntityPig['Pig'/248, l='MpServer', x=278.97, y=63.00, z=149.09], EntityCow['Cow'/249, l='MpServer', x=278.28, y=64.00, z=150.44], EntityCow['Cow'/247, l='MpServer', x=279.97, y=63.00, z=153.34], EntityCow['Cow'/244, l='MpServer', x=267.78, y=77.00, z=284.69], EntitySkeleton['Skeleton'/242, l='MpServer', x=259.63, y=32.78, z=257.94], EntitySpider['Spider'/243, l='MpServer', x=257.00, y=51.00, z=275.28], EntityZombie['Zombie'/240, l='MpServer', x=270.56, y=42.00, z=269.94], EntitySpider['Spider'/241, l='MpServer', x=265.81, y=33.00, z=264.91]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

 

-- System Details --

Details:

Minecraft Version: 1.6.2

Operating System: Windows 7 (amd64) version 6.1

Java Version: 1.7.0_17, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 739857656 bytes (705 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 19546 (1094576 bytes; 1 MB) allocated, 1936 (108416 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 63

FML: MCP v8.04 FML v6.2.34.799 Minecraft Forge 9.10.0.799 4 mods loaded, 4 mods active

mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

FML{6.2.34.799} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Forge{9.10.0.799} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

RUSDScienceMod{0.0.1} [RUSD Science] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Launched Version: 1.6

LWJGL: 2.9.0

OpenGL: AMD Radeon HD 6800 Series GL version 4.2.11631 Compatibility Profile Context, ATI Technologies Inc.

Is Modded: Definitely; Client brand changed to 'fml,forge'

Type: Client (map_client.txt)

Resource Pack: Default

Current Language: English (US)

Profiler Position: N/A (disabled)

Vec3 Pool Size: 3830 (214480 bytes; 0 MB) allocated, 432 (24192 bytes; 0 MB) used

 

 

 

When I throw my egg and a chicken spawns I crash And get that error report.

 

 

Thanks for your help

Link to comment
Share on other sites

They can spawn naturally in the world with out it crashing,  I just cant seem to spawn them though a throwable egg.  So I'm guessing there is something wrong with my code  when I asked it to spawn the chicken through the egg. 

 

 protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
    {
        if (par1MovingObjectPosition.entityHit != null)
        {
            par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), 0.0F);
        }

        if (!this.worldObj.isRemote && this.rand.nextInt( == 0)
        {
            byte b0 = 1;

            if (this.rand.nextInt(32) == 0)
            {
                b0 = 4;
            }

            for (int i = 0; i < b0; ++i)
            {
            	EntityBlingChicken entitychicken = new EntityBlingChicken(this.worldObj);
            	entitychicken.setGrowingAge(-24000);
            	entitychicken.setLocationAndAngles(this.posX, this.posY, this.posZ, this.rotationYaw, 0.0F);
                this.worldObj.spawnEntityInWorld(entitychicken);
                
              
                
               
                
            }
        }

        for (int j = 0; j < 8; ++j)
        {
            this.worldObj.spawnParticle("snowballpoof", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
        }

        if (!this.worldObj.isRemote)
        {
            this.setDead();
        }
    }

 

This is my code for my throwable egg.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.