Spawn Egg BYID Redirect
by Jackbusters
Spawn Egg BYID Redirect is a library for developers who want several spawn eggs that spawn the same entity type with different variants, and it keeps each egg's color.
What it does
Minecraft normally gives one spawn egg per entity type, and a variant added to an existing type loses its color on the egg. The mod changes how spawn egg IDs are assigned so each variant can have its own egg. Players who install the mod on a client and server get the extra eggs and the correct colors without further setup.
The mod is aimed at mod authors and modpack builders. Its source code and issue tracker are public. Other mods can build on it, and two catalog mods already require it: Cat Variant Eggs and Wolf Variant Eggs.
Installation needs the same mod on both client and server. It is published for Fabric, Forge and Quilt across 27 release versions, 1.15 – 1.21, and snapshot builds are published too. Installation covers the server and each player's game.
Key features
Multiple eggs per type
Each variant of an entity type can have its own spawn egg instead of sharing one.
Preserved egg colors
Spawn eggs for variants keep their colors, so a variant egg no longer falls back to the base type's color.
Constructor ID handling
The mod changes how the ID is registered inside the SpawnEggItem constructor, using putIfAbsent instead.
Tutorial for authors
A short guide covers subclassing SpawnEggItem, registering colors in ClientModInitializer and overriding useOn.
Compatibility
Latest build for each game version and loader.
1.21.x1 of 1 version with builds
1.20.x7 of 7 versions with builds
1.19.x5 of 5 versions with builds
1.18.x3 of 3 versions with builds
1.17.x2 of 2 versions with builds
1.16.x6 of 6 versions with builds
1.15.x3 of 3 versions with builds
This mod also publishes snapshot builds. Snapshots are not shown in the matrix.
Required by 2 mods
Use cases
Variant mob packs
Mod authors adding variants such as cat or wolf types can give each variant a spawn egg of its own.
Who it’s for: The mod suits mod developers and modpack builders who add entity variants and want a separate spawn egg for each. Players rarely need to work with it directly.
Questions
Does Spawn Egg BYID Redirect have to be installed on both sides?
Which loaders is Spawn Egg BYID Redirect available for?
Which mods require Spawn Egg BYID Redirect?
In the catalog
Spawn Egg BYID Redirect is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 15,770 mods support Minecraft 1.21.
More from Jackbusters
Similar mods
What the author says
For users: Some mods may rely on things this mod does in the background to function properly. Just install it alongside any mod that requires it on both client and server. Use Case: If a mod you have installed adds multiple spawn eggs for the same type of mob (i.e. for different variants), and one of the spawn eggs…
Official listing
- Modrinth page
- modrinth.com/mod/spawn-egg-byid-redirect
- Owner
- Jackbusters
- Published
- 2024-03-11
- Updated on Modrinth
- 2024-07-19
- Facts verified
- 2026-10-15
