[MC-1339] Custom Spawners with a Cat Type crash the game Created: 30/Oct/12  Updated: 05/Dec/18  Resolved: 30/Oct/12

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2
Fix Version/s: None

Type: Bug
Reporter: Alexander Ryan Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: None

Attachments: File http---www.minecraftforum.net-topic-1133295-custom-spawner-custom-shop-populate-chests-anvil-light-fixer-and-more-.url    
Confirmation Status: Unconfirmed

 Description   

Very easy to reproduce. A custom spawner which should spawn a cat with a cat type (Siamese, Black, Tabby) instead crashes the game.



 Comments   
Comment by [Mojang] Nathan Adams [ 30/Oct/12 ]

Then this is most definitely an issue of the program you're using and you should report it to the devs. CatType is an int and not a byte. Closing this ticket off.

Comment by Alexander Ryan [ 30/Oct/12 ]

I'm not exactly sure how I would go about doing that. I'm using a third party tool called Custom Spawner from here. http://www.minecraftforum.net/topic/1133295-custom-spawner-custom-shop-populate-chests-anvil-light-fixer-and-more/

It might be a problem with how he programmed the tool, then... but this is also a problem with Sethbling's MCEdit filter too, last time I tried it.

Comment by [Mojang] Nathan Adams [ 30/Oct/12 ]

Corrupt tag type found: BYTE
Corrupt tag type expected: INT
Corrupt tag name: CatType

Have you tried setting it as an int and not a byte? Also, it's "Ozelot" because that's what it's called in Swedish.

Comment by Alexander Ryan [ 30/Oct/12 ]

The only things I've changed are the spawner type (It has been set to Ozelot; side note, I'll never understand why it's Ozelot and not Ocelot in the code) and the CatType (Any number you set it to crashes the game).

As for the report; see below. It's pretty easy to determine with this that it's definitely the CatType screwing up.

---- Minecraft Crash Report ----
// Daisy, daisy...

Time: 10/30/12 1:57 PM
Description: Reading NBT data

java.lang.ClassCastException: bg cannot be cast to bo
	at bh.e(SourceFile:124)
	at om.a(SourceFile:122)
	at lb.e(SourceFile:993)
	at amh.a(SourceFile:115)
	at amh.c(SourceFile:172)
	at bbt.a(SourceFile:17)
	at bbt.a(SourceFile:11)
	at bby.a(SourceFile:103)
	at bby.a(SourceFile:96)
	at ayy.a(RenderGlobal.java:485)
	at ayt.a(EntityRenderer.java:1569)
	at ayt.b(EntityRenderer.java:1118)
	at net.minecraft.client.Minecraft.J(SourceFile:604)
	at net.minecraft.client.Minecraft.run(SourceFile:534)
	at java.lang.Thread.run(Unknown Source)

Relevant Details:
- Minecraft Version: 1.4.2
- Operating System: Windows 7 (x86) version 6.1
- Java Version: 1.7.0_05, Oracle Corporation
- Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
- Memory: 343317680 bytes (327 MB) / 519110656 bytes (495 MB) up to 1037959168 bytes (989 MB)
- JVM Flags: 2 total; -Xms512m -Xmx1024m
- AABB Pool Size: 104 (5824 bytes; 0 MB) allocated, 13 (728 bytes; 0 MB) used
- Corrupt tag type found: BYTE
- Corrupt tag type expected: INT
- Corrupt tag name: CatType
- LWJGL: 2.4.2
- OpenGL: Mobile Intel(R) 4 Series Express Chipset Family GL version 2.1.0 - Build 8.15.10.1883, Intel
- Is Modded: Very likely
- Type: Client
- Texture Pack: Old_Light 2.0.zip
- Profiler Position: N/A (disabled)
- Vec3 Pool Size: 175 (9800 bytes; 0 MB) allocated, 44 (2464 bytes; 0 MB) used
- World MpServer Entities: 8 total; [axc['Redstone_Fanatic'/156, l='MpServer', x=-22.70, y=73.62, z=67.08], om['Ocelot'/93, l='MpServer', x=-47.13, y=72.00, z=93.44], om['Ocelot'/92, l='MpServer', x=-46.75, y=72.00, z=92.28], om['Ocelot'/95, l='MpServer', x=-32.88, y=72.00, z=93.03], om['Ocelot'/94, l='MpServer', x=-41.72, y=72.00, z=95.16], om['Ocelot'/91, l='MpServer', x=-39.78, y=72.00, z=80.13], om['Ocelot'/110, l='MpServer', x=-22.31, y=72.00, z=91.56], om['Ocelot'/111, l='MpServer', x=-21.34, y=72.00, z=95.44]]
- World MpServer Players: 1 total; [axc['Redstone_Fanatic'/156, l='MpServer', x=-22.70, y=73.62, z=67.08]]
- World MpServer Chunk Stats: MultiplayerChunkCache: 5
- Forced Entities: 8 total; [axc['Redstone_Fanatic'/156, l='MpServer', x=-22.70, y=73.62, z=67.08], om['Ocelot'/110, l='MpServer', x=-22.31, y=72.00, z=91.56], om['Ocelot'/93, l='MpServer', x=-47.13, y=72.00, z=93.44], om['Ocelot'/111, l='MpServer', x=-21.34, y=72.00, z=95.44], om['Ocelot'/92, l='MpServer', x=-46.75, y=72.00, z=92.28], om['Ocelot'/95, l='MpServer', x=-32.88, y=72.00, z=93.03], om['Ocelot'/94, l='MpServer', x=-41.72, y=72.00, z=95.16], om['Ocelot'/91, l='MpServer', x=-39.78, y=72.00, z=80.13]]
- Retry Entities: 0 total; []
Comment by [Mojang] Nathan Adams [ 30/Oct/12 ]

Without a crash report I cannot assist you. Ideally, please provide:

  • A dump of exactly what you are setting on a mobspawner. Specifically.
  • If not above, then a world download.
  • A crash report.
Comment by Selbram (Tory Clement) [ 30/Oct/12 ]

I have already flagged the devs to take a look.

Comment by Alexander Ryan [ 30/Oct/12 ]

Yeah, what Raphael said. Dinnerbone added in a truckload of tags for spawners that allow people, mapmakers especially to create all kinds of custom spawners. Examples being charged creepers, zombies wearing armor, etc. There's even some (hopefully) planned ones; being able to spawnstack mobs (Spider Jockey) but I haven't heard much about that in awhile.

Comment by Raphael [ 30/Oct/12 ]

@Selbram:
Its actually not a mod, because these tags exist in vanilla Minecraft, but you can only edit them with external programs. Google NBTedit.

Comment by Selbram (Tory Clement) [ 30/Oct/12 ]

Thank you for pointing out the problem. Cat spawners are not a part of the vanilla game though and this may or may not get corrected in a future update. I won't mark this as invalid until one of the developers can chime in with their thoughts.

Comment by Alexander Ryan [ 30/Oct/12 ]

I'm using a third party tool; but across various third party tools used for the creation of custom spawners through the use of the tags added in 1.3 for custom spawners, cat spawners have never worked.

Comment by Selbram (Tory Clement) [ 30/Oct/12 ]

How are you getting a custom spawner? Are you modding the game?

Generated at Sun Jan 12 11:54:06 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.