Jump to content

[1.7.2]Spawn egg crashes when right-click held down for multiple spawns


Recommended Posts

Posted

Okay, so I have an entity (a tiger) that spawns naturally fine and also has a spawn egg that works if I use it singly.  I mean if I right-click it spawns a tiger, and if I right-click again it spawns another tiger, but if I hold right-click (for multiple spawns) the game crashes (seems to be right after first tiger spawned, although I'm not certain).  It must be some code I modified recently because previously it worked (it would spawn a bunch of tigers including baby tigers).

 

The NetHandlerPlayClient seems to be having trouble, but I swear I haven't modified any code related to the networking.

 

Here is the console error:

 

[11:02:05] [Client thread/FATAL]: Unreported exception thrown!

java.lang.NullPointerException

at net.minecraft.client.network.NetHandlerPlayClient.handleSpawnMob(NetHandlerPlayClient.java:853) ~[NetHandlerPlayClient.class:?]

at net.minecraft.network.play.server.S0FPacketSpawnMob.processPacket(S0FPacketSpawnMob.java:129) ~[s0FPacketSpawnMob.class:?]

at net.minecraft.network.play.server.S0FPacketSpawnMob.processPacket(S0FPacketSpawnMob.java:222) ~[s0FPacketSpawnMob.class:?]

at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:232) ~[NetworkManager.class:?]

at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:321) ~[PlayerControllerMP.class:?]

at net.minecraft.client.Minecraft.runTick(Minecraft.java:1650) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:997) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:912) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_51]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_51]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_51]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

---- Minecraft Crash Report ----

// This doesn't make any sense!

 

Time: 4/10/14 11:02 AM

Description: Unexpected error

 

java.lang.NullPointerException: Unexpected error

at net.minecraft.client.network.NetHandlerPlayClient.handleSpawnMob(NetHandlerPlayClient.java:853)

at net.minecraft.network.play.server.S0FPacketSpawnMob.processPacket(S0FPacketSpawnMob.java:129)

at net.minecraft.network.play.server.S0FPacketSpawnMob.processPacket(S0FPacketSpawnMob.java:222)

at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:232)

at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:321)

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

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

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:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

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 net.minecraft.client.network.NetHandlerPlayClient.handleSpawnMob(NetHandlerPlayClient.java:853)

at net.minecraft.network.play.server.S0FPacketSpawnMob.processPacket(S0FPacketSpawnMob.java:129)

at net.minecraft.network.play.server.S0FPacketSpawnMob.processPacket(S0FPacketSpawnMob.java:222)

at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:232)

at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:321)

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['Player921'/416, l='MpServer', x=-116.59, y=71.62, z=255.40]]

Chunk stats: MultiplayerChunkCache: 225, 225

Level seed: 0

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

Level generator options:

Level spawn location: World: (-120,64,256), Chunk: (at 8,4,0 in -8,16; contains blocks -128,0,256 to -113,255,271), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)

Level time: 3212 game time, 3212 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: 148 total; [EntityCow['Cow'/279, l='MpServer', x=-94.63, y=67.00, z=204.50], EntityCow['Cow'/278, l='MpServer', x=-81.13, y=64.00, z=198.97], EntityCow['Cow'/277, l='MpServer', x=-85.03, y=63.00, z=205.97], EntityCow['Cow'/276, l='MpServer', x=-101.62, y=68.00, z=189.63], EntityCreeper['Creeper'/283, l='MpServer', x=-80.59, y=19.00, z=224.00], EntityItem['item.tile.gravel'/282, l='MpServer', x=-93.13, y=15.13, z=215.13], EntityMinecartChest['entity.MinecartChest.name'/281, l='MpServer', x=-93.50, y=15.50, z=215.50], EntityCow['Cow'/280, l='MpServer', x=-87.50, y=64.00, z=193.34], EntitySpider['Spider'/287, l='MpServer', x=-95.50, y=19.00, z=241.50], EntityHorse['Donkey'/286, l='MpServer', x=-90.50, y=76.00, z=227.25], EntityBat['Bat'/285, l='MpServer', x=-92.69, y=19.71, z=235.73], EntityZombie['Zombie'/284, l='MpServer', x=-86.50, y=19.00, z=224.50], EntityZombie['Zombie'/259, l='MpServer', x=-103.30, y=14.00, z=327.06], EntityCow['Cow'/256, l='MpServer', x=-104.50, y=69.00, z=291.31], EntityCow['Cow'/257, l='MpServer', x=-104.41, y=65.00, z=308.38], EntityTiger['Tiger'/570, l='MpServer', x=-117.50, y=70.00, z=255.50], EntitySkeleton['Skeleton'/309, l='MpServer', x=-75.50, y=44.00, z=187.50], EntityCow['Cow'/311, l='MpServer', x=-71.56, y=63.00, z=201.19], EntityCow['Cow'/310, l='MpServer', x=-73.91, y=63.00, z=202.91], EntityCreeper['Creeper'/313, l='MpServer', x=-79.50, y=19.00, z=224.50], EntityCow['Cow'/312, l='MpServer', x=-73.91, y=64.00, z=208.94], EntityItem['item.tile.rail'/315, l='MpServer', x=-70.97, y=24.13, z=288.13], EntityCreeper['Creeper'/314, l='MpServer', x=-76.50, y=19.00, z=225.03], EntityItem['item.tile.rail'/317, l='MpServer', x=-78.88, y=24.13, z=290.88], EntityItem['item.tile.rail'/316, l='MpServer', x=-71.81, y=24.13, z=290.88], EntityItem['item.tile.rail'/319, l='MpServer', x=-68.81, y=24.13, z=290.03], EntityItem['item.tile.rail'/318, l='MpServer', x=-69.38, y=24.13, z=288.44], EntitySkeleton['Skeleton'/288, l='MpServer', x=-87.50, y=32.00, z=313.50], EntityCow['Cow'/289, l='MpServer', x=-92.44, y=66.00, z=311.38], EntityCow['Cow'/290, l='MpServer', x=-86.38, y=64.00, z=318.94], EntityCow['Cow'/291, l='MpServer', x=-98.66, y=64.00, z=323.34], EntitySkeleton['Skeleton'/292, l='MpServer', x=-89.50, y=28.00, z=330.91], EntityCow['Cow'/293, l='MpServer', x=-84.28, y=64.00, z=333.81], EntityChicken['Chicken'/68, l='MpServer', x=-193.41, y=65.00, z=216.41], EntityChicken['Chicken'/69, l='MpServer', x=-194.47, y=68.00, z=245.34], EntityChicken['Chicken'/71, l='MpServer', x=-193.50, y=70.00, z=255.50], EntityChicken['Chicken'/67, l='MpServer', x=-196.34, y=65.00, z=208.47], EntityItem['item.tile.rail'/320, l='MpServer', x=-65.47, y=18.13, z=306.81], EntityCreeper['Creeper'/93, l='MpServer', x=-175.52, y=40.00, z=222.66], EntityCow['Cow'/335, l='MpServer', x=-37.59, y=75.00, z=250.53], EntityChicken['Chicken'/95, l='MpServer', x=-187.53, y=65.00, z=213.34], EntityZombie['Zombie'/94, l='MpServer', x=-179.50, y=47.00, z=208.50], EntityCow['Cow'/328, l='MpServer', x=-59.81, y=64.00, z=199.19], EntityCow['Cow'/329, l='MpServer', x=-48.06, y=79.00, z=235.81], EntityVillager['Villager'/102, l='MpServer', x=-179.95, y=66.00, z=257.50], EntityVillager['Villager'/103, l='MpServer', x=-190.88, y=70.00, z=262.53], EntityVillager['Villager'/100, l='MpServer', x=-187.50, y=70.00, z=256.50], EntityVillager['Villager'/101, l='MpServer', x=-184.47, y=70.00, z=257.25], EntityVillager['Villager'/98, l='MpServer', x=-186.22, y=68.00, z=241.28], EntityVillager['Villager'/99, l='MpServer', x=-176.50, y=66.00, z=255.78], EntityVillager['Villager'/96, l='MpServer', x=-178.50, y=66.00, z=237.31], EntityChicken['Chicken'/97, l='MpServer', x=-185.56, y=65.00, z=225.44], EntityWitch['Witch'/119, l='MpServer', x=-162.50, y=21.00, z=221.50], EntityItem['item.tile.doublePlant.sunflower'/118, l='MpServer', x=-175.53, y=62.13, z=193.75], EntityItem['item.item.seeds'/117, l='MpServer', x=-165.25, y=27.13, z=193.47], EntityVillager['Villager'/127, l='MpServer', x=-169.53, y=65.00, z=236.13], EntityBat['Bat'/126, l='MpServer', x=-158.47, y=36.10, z=236.45], EntityZombie['Zombie'/125, l='MpServer', x=-167.10, y=34.99, z=225.32], EntityBat['Bat'/124, l='MpServer', x=-177.04, y=46.62, z=213.70], EntityBat['Bat'/123, l='MpServer', x=-163.92, y=36.67, z=222.91], EntityCreeper['Creeper'/122, l='MpServer', x=-169.56, y=41.00, z=219.06], EntityCreeper['Creeper'/121, l='MpServer', x=-171.50, y=42.00, z=219.50], EntityZombie['Zombie'/120, l='MpServer', x=-167.88, y=35.00, z=223.91], EntityItem['item.item.seeds'/136, l='MpServer', x=-175.38, y=64.13, z=313.72], EntityZombie['Zombie'/129, l='MpServer', x=-169.31, y=23.00, z=241.69], EntityZombie['Zombie'/128, l='MpServer', x=-164.00, y=23.00, z=241.77], EntityVillager['Villager'/131, l='MpServer', x=-164.50, y=64.00, z=250.72], EntityVillager['Villager'/130, l='MpServer', x=-175.50, y=65.00, z=241.50], EntitySquid['Squid'/133, l='MpServer', x=-170.50, y=57.38, z=260.50], EntityVillager['Villager'/132, l='MpServer', x=-171.25, y=67.00, z=245.63], EntityChicken['Chicken'/135, l='MpServer', x=-166.41, y=66.00, z=300.63], EntitySquid['Squid'/134, l='MpServer', x=-171.50, y=62.34, z=260.59], EntitySkeleton['Skeleton'/155, l='MpServer', x=-152.50, y=34.00, z=176.50], EntitySkeleton['Skeleton'/156, l='MpServer', x=-154.50, y=34.00, z=178.50], EntitySkeleton['Skeleton'/157, l='MpServer', x=-146.72, y=33.00, z=181.50], EntityChicken['Chicken'/158, l='MpServer', x=-137.56, y=67.00, z=181.63], EntityChicken['Chicken'/159, l='MpServer', x=-147.47, y=65.00, z=222.53], EntityChicken['Chicken'/171, l='MpServer', x=-154.56, y=66.00, z=300.63], EntityItem['item.item.seeds'/170, l='MpServer', x=-148.31, y=70.13, z=249.88], EntityCreeper['Creeper'/169, l='MpServer', x=-149.50, y=38.00, z=255.50], EntityTiger['Tiger'/168, l='MpServer', x=-151.38, y=66.00, z=234.63], EntityCreeper['Creeper'/175, l='MpServer', x=-148.50, y=38.00, z=325.50], EntityCreeper['Creeper'/174, l='MpServer', x=-149.50, y=38.00, z=324.50], EntityChicken['Chicken'/173, l='MpServer', x=-156.50, y=67.00, z=305.50], EntityChicken['Chicken'/172, l='MpServer', x=-156.53, y=66.00, z=298.56], EntityZombie['Zombie'/163, l='MpServer', x=-151.44, y=37.00, z=235.00], EntitySpider['Spider'/162, l='MpServer', x=-144.78, y=28.00, z=227.94], EntityZombie['Zombie'/161, l='MpServer', x=-166.35, y=26.00, z=233.99], EntityChicken['Chicken'/160, l='MpServer', x=-153.41, y=64.00, z=218.44], EntityChicken['Chicken'/167, l='MpServer', x=-165.43, y=64.00, z=228.57], EntityChicken['Chicken'/166, l='MpServer', x=-158.34, y=65.00, z=229.53], EntityBat['Bat'/165, l='MpServer', x=-167.07, y=39.11, z=220.64], EntityBat['Bat'/164, l='MpServer', x=-154.25, y=38.10, z=237.41], EntitySkeleton['Skeleton'/190, l='MpServer', x=-134.47, y=13.00, z=184.16], EntityChicken['Chicken'/191, l='MpServer', x=-137.47, y=67.00, z=184.53], EntityClientPlayerMP['Player921'/416, l='MpServer', x=-116.59, y=71.62, z=255.40], EntityCow['Cow'/205, l='MpServer', x=-129.78, y=64.00, z=290.75], EntityItem['item.tile.torch'/204, l='MpServer', x=-135.81, y=22.13, z=300.75], EntityBat['Bat'/207, l='MpServer', x=-113.13, y=22.80, z=222.98], EntityTiger['Tiger'/201, l='MpServer', x=-128.59, y=71.00, z=263.28], EntityItem['item.item.beefRaw'/200, l='MpServer', x=-137.28, y=70.13, z=262.88], EntityCow['Cow'/203, l='MpServer', x=-132.63, y=65.00, z=267.59], EntitySkeleton['Skeleton'/202, l='MpServer', x=-141.50, y=24.00, z=275.50], EntityBat['Bat'/197, l='MpServer', x=-132.66, y=20.10, z=255.13], EntityTiger['Tiger'/196, l='MpServer', x=-129.34, y=68.00, z=231.69], EntityCreeper['Creeper'/199, l='MpServer', x=-131.50, y=43.00, z=261.50], EntityTiger['Tiger'/198, l='MpServer', x=-135.69, y=69.00, z=243.66], EntityChicken['Chicken'/193, l='MpServer', x=-139.50, y=65.00, z=195.50], EntityChicken['Chicken'/192, l='MpServer', x=-134.53, y=66.00, z=191.53], EntityTiger['Tiger'/195, l='MpServer', x=-134.56, y=67.00, z=231.72], EntityWitch['Witch'/194, l='MpServer', x=-134.50, y=31.00, z=221.50], EntityCow['Cow'/216, l='MpServer', x=-120.81, y=67.00, z=281.63], EntityMinecartChest['entity.MinecartChest.name'/217, l='MpServer', x=-117.50, y=19.50, z=307.50], EntityCow['Cow'/218, l='MpServer', x=-114.97, y=64.00, z=306.88], EntityMinecartChest['entity.MinecartChest.name'/219, l='MpServer', x=-112.50, y=14.50, z=327.50], EntityTiger['Tiger'/212, l='MpServer', x=-126.47, y=68.00, z=236.44], EntityBat['Bat'/213, l='MpServer', x=-127.67, y=20.80, z=250.53], EntityTiger['Tiger'/214, l='MpServer', x=-117.28, y=70.00, z=256.31], EntityMinecartChest['entity.MinecartChest.name'/215, l='MpServer', x=-117.50, y=19.50, z=282.50], EntityCreeper['Creeper'/208, l='MpServer', x=-122.50, y=38.00, z=209.50], EntityCreeper['Creeper'/209, l='MpServer', x=-125.00, y=14.00, z=233.56], EntityCreeper['Creeper'/210, l='MpServer', x=-126.50, y=14.00, z=231.50], EntityCreeper['Creeper'/211, l='MpServer', x=-127.91, y=14.00, z=233.56], EntityItem['item.tile.rail'/239, l='MpServer', x=-103.25, y=14.13, z=231.13], EntityMinecartChest['entity.MinecartChest.name'/238, l='MpServer', x=-102.50, y=14.34, z=231.50], EntityItem['item.tile.mushroom'/237, l='MpServer', x=-110.13, y=46.13, z=207.88], EntityCow['Cow'/236, l='MpServer', x=-99.47, y=67.00, z=189.69], EntityCow['Cow'/235, l='MpServer', x=-105.94, y=68.00, z=189.06], EntityCow['Cow'/234, l='MpServer', x=-107.03, y=68.00, z=176.13], EntityZombie['Zombie'/233, l='MpServer', x=-105.50, y=25.00, z=182.50], EntitySkeleton['Skeleton'/232, l='MpServer', x=-104.50, y=25.00, z=186.50], EntityCreeper['Creeper'/231, l='MpServer', x=-107.03, y=26.00, z=184.53], EntityBat['Bat'/254, l='MpServer', x=-109.75, y=23.10, z=294.53], EntityCow['Cow'/255, l='MpServer', x=-105.06, y=68.00, z=299.06], EntityBat['Bat'/252, l='MpServer', x=-97.25, y=19.10, z=284.25], EntityZombie['Zombie'/253, l='MpServer', x=-108.50, y=23.00, z=301.06], EntitySkeleton['Skeleton'/250, l='MpServer', x=-111.70, y=11.04, z=280.30], EntityCreeper['Creeper'/251, l='MpServer', x=-99.74, y=24.00, z=277.93], EntityHorse['Donkey'/248, l='MpServer', x=-102.78, y=69.00, z=243.66], EntityCreeper['Creeper'/249, l='MpServer', x=-101.50, y=17.00, z=287.40], EntityZombie['Zombie'/246, l='MpServer', x=-99.88, y=21.00, z=248.56], EntityBat['Bat'/247, l='MpServer', x=-99.25, y=26.10, z=253.66], EntityZombie['Zombie'/244, l='MpServer', x=-102.50, y=26.00, z=230.50], EntityMinecartChest['entity.MinecartChest.name'/245, l='MpServer', x=-104.50, y=25.50, z=250.50], EntitySpider['Spider'/242, l='MpServer', x=-111.50, y=14.00, z=232.50], EntityCreeper['Creeper'/243, l='MpServer', x=-106.50, y=28.00, z=228.50], EntityItem['item.tile.torch'/240, l='MpServer', x=-103.19, y=14.13, z=231.13], EntityZombie['Zombie'/241, l='MpServer', x=-108.50, y=14.00, z=234.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:2518)

at net.minecraft.client.Minecraft.run(Minecraft.java:941)

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

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 8 (amd64) version 6.2

Java Version: 1.7.0_51, Oracle Corporation

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

Memory: 704189352 bytes (671 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)

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

AABB Pool Size: 19152 (1072512 bytes; 1 MB) allocated, 4 (224 bytes; 0 MB) used

IntCache: cache: 9, tcache: 0, allocated: 13, tallocated: 95

FML: MCP v9.01-pre FML v7.2.137.1054 Minecraft Forge 10.12.0.1054 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.137.1054} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.0.1054.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Forge{10.12.0.1054} [Minecraft Forge] (forgeSrc-1.7.2-10.12.0.1054.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

wildanimals{0.0.1} [WildAnimals+] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Launched Version: 1.6

LWJGL: 2.9.0

OpenGL: GeForce GTX 760/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: 3611 (202216 bytes; 0 MB) allocated, 29 (1624 bytes; 0 MB) used

Anisotropic Filtering: Off (1)

#@!@# Game crashed! Crash report saved to: #@!@# E:\Forge\eclipse\.\crash-reports\crash-2014-04-10_11.02.05-client.txt

AL lib: (EE) alc_cleanup: 1 device not closed

 

 

 

I can post more code, but not sure what would be related.  I suppose that it may be trying to create a baby tiger and that is failing?  Here is the only code I think I have that is related to baby tigers -- in the model class render method it checks for isChild and scales the body accordingly:

 

@Override

public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)

  {

    super.render(entity, f, f1, f2, f3, f4, f5);

    setRotationAngles(f, f1, f2, f3, f4, f5, entity);

    if (!this.isChild)

    {

        this.head.renderWithRotation(f5);

        this.body.render(f5);

        this.leg1.render(f5);

        this.leg2.render(f5);

        this.leg3.render(f5);

        this.leg4.render(f5);

        this.tail.renderWithRotation(f5);

        this.ear1.renderWithRotation(f5);

        this.ear2.renderWithRotation(f5);

//        this.nose.renderWithRotation(f5);

    }

    else

    {

        float f6 = 2.0F;

        GL11.glPushMatrix();

        GL11.glTranslatef(0.0F, 5.0F * f5, 2.0F * f5);

        this.head.renderWithRotation(f5);

//      this.nose.renderWithRotation(f5);

        this.ear1.renderWithRotation(f5);

        this.ear2.renderWithRotation(f5);

        GL11.glPopMatrix();

        GL11.glPushMatrix();

        GL11.glScalef(1.0F / f6, 1.0F / f6, 1.0F / f6);

        GL11.glTranslatef(0.0F, 24.0F * f5, 0.0F);

        this.body.render(f5);

        this.leg1.render(f5);

        this.leg2.render(f5);

        this.leg3.render(f5);

        this.leg4.render(f5);

        this.tail.renderWithRotation(f5);

        GL11.glPopMatrix();

    }

  }

 

 

 

Here is where I register the spawn egg in case that matters:

 

EntityRegistry.addSpawn(EntityTiger.class, 10, 0, 1, EnumCreatureType.creature, BiomeGenBase.jungle); //change the values to vary the spawn rarity, biome, etc.             

 

 

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

Bump.

 

Sorry for bumping, but I still need help on this one.  The error unfortunately doesn't give me a lot of ideas on where the problem may lie.  The thing is that at one point this worked, I could spawn lots of my EntityTiger including the baby ones, but now all my entities invariably crash the game when spawning multiples from the spawn egg.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

Are you checking if you are spawning on the server-side?

Don't be afraid to ask question when modding, there are no stupid question! Unless you don't know java then all your questions are stupid!

Posted

Are you checking if you are spawning on the server-side?

 

How would I check? 

 

All I do is register the spawn in my CommonProxy.  That seems to create a spawn egg in the Miscellaneous tab of the creative inventory.

 

When my entities spawn I have a console print that indicates that the constructor was called.  I only see it being called once, so I think it is only being called on one side.  I guess I can add to the print to see what side it is being called on.

 

Also, as I mentioned, I can spawn the entities one at a time with the spawn egg just fine. 

 

In particular, why are you asking about the server side:

1) should I only register the spawn on one side?

2) should the spawn happen on server or client?  I'm assuming it should happen on the server, right, since the server keeps track of the game world?

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

Yeah all spawning should happen server-side and all rendering should happen client-side. As for why you can't spawn multiple mobs with your spawn egg, try to register the spawn egg in the client-proxy. I know that all spawning should happen server-side, but I don't understand why you can only spawn one and not more. Do you have some sort of special AI for acting differently around another mob of the same type?

Don't be afraid to ask question when modding, there are no stupid question! Unless you don't know java then all your questions are stupid!

Posted

Okay, I take it back -- it seems that the constructor is being called twice per spawn.  I assume that it is on each of the Client and Server side, I'll put in some debug messages in a sec.

 

Why do you say register in ClientProxy?  Did you mean ServerProxy so it is only on server side?

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

Actually you seem to be on to something with your question about any interaction between entities.  I found that if I try to spawn my custom entity on top of one that already exists (even just clicking spawn egg one at a time) I get the same crash.

 

I don't know that I have any special code related to this -- my entities are basically wolves but with tiger textures.  But maybe I'll go through my AI bit by bit enabling/disabling to see if anything seems related.  Anyway, thanks I think this gives me something to dig into.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • that happens every time I enter a new dimension.
    • This is the last line before the crash: [ebwizardry]: Synchronising spell emitters for PixelTraveler But I have no idea what this means
    • What in particular? I barely used that mod this time around, and it's never been a problem in the past.
    • Im trying to build my mod using shade since i use the luaj library however i keep getting this error Reason: Task ':reobfJar' uses this output of task ':shadowJar' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. So i try adding reobfJar.dependsOn shadowJar  Could not get unknown property 'reobfJar' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. my gradle file plugins { id 'eclipse' id 'idea' id 'maven-publish' id 'net.minecraftforge.gradle' version '[6.0,6.2)' id 'com.github.johnrengelman.shadow' version '7.1.2' id 'org.spongepowered.mixin' version '0.7.+' } apply plugin: 'net.minecraftforge.gradle' apply plugin: 'org.spongepowered.mixin' apply plugin: 'com.github.johnrengelman.shadow' version = mod_version group = mod_group_id base { archivesName = mod_id } // Mojang ships Java 17 to end users in 1.18+, so your mod should target Java 17. java.toolchain.languageVersion = JavaLanguageVersion.of(17) //jarJar.enable() println "Java: ${System.getProperty 'java.version'}, JVM: ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'}), Arch: ${System.getProperty 'os.arch'}" minecraft { mappings channel: mapping_channel, version: mapping_version copyIdeResources = true runs { configureEach { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' arg "-mixin.config=derp.mixin.json" mods { "${mod_id}" { source sourceSets.main } } } client { // Comma-separated list of namespaces to load gametests from. Empty = all namespaces. property 'forge.enabledGameTestNamespaces', mod_id } server { property 'forge.enabledGameTestNamespaces', mod_id args '--nogui' } gameTestServer { property 'forge.enabledGameTestNamespaces', mod_id } data { workingDirectory project.file('run-data') args '--mod', mod_id, '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/') } } } sourceSets.main.resources { srcDir 'src/generated/resources' } repositories { flatDir { dirs './libs' } maven { url = "https://jitpack.io" } } configurations { shade implementation.extendsFrom shade } dependencies { minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" implementation 'org.luaj:luaj-jse-3.0.2' implementation fg.deobf("com.github.Virtuoel:Pehkui:${pehkui_version}") annotationProcessor 'org.spongepowered:mixin:0.8.5:processor' minecraftLibrary 'luaj:luaj-jse:3.0.2' shade 'luaj:luaj-jse:3.0.2' } // Example for how to get properties into the manifest for reading at runtime. tasks.named('jar', Jar).configure { manifest { attributes([ 'Specification-Title' : mod_id, 'Specification-Vendor' : mod_authors, 'Specification-Version' : '1', // We are version 1 of ourselves 'Implementation-Title' : project.name, 'Implementation-Version' : project.jar.archiveVersion, 'Implementation-Vendor' : mod_authors, 'Implementation-Timestamp': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"), "TweakClass" : "org.spongepowered.asm.launch.MixinTweaker", "TweakOrder" : 0, "MixinConfigs" : "derp.mixin.json" ]) } rename 'mixin.refmap.json', 'derp.mixin-refmap.json' } shadowJar { archiveClassifier = '' configurations = [project.configurations.shade] finalizedBy 'reobfShadowJar' } assemble.dependsOn shadowJar reobf { re shadowJar {} } publishing { publications { mavenJava(MavenPublication) { artifact jar } } repositories { maven { url "file://${project.projectDir}/mcmodsrepo" } } } my entire project:https://github.com/kevin051606/DERP-Mod/tree/Derp-1.0-1.20
  • Topics

×
×
  • Create New...

Important Information

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