Back to mods
Spawn Egg BYID Redirect project artwork

CurseForge · Minecraft mod

Spawn Egg BYID Redirect

Needed for same Spawn Egg type compatibility

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Spawn Egg BYID Redirect release should I use?

Updated 2 years ago
Latest stable file [Fabric 1.19.x - 1.21] SEBR v1.2
Game version 1.19.3, 1.20.2, 1.21
Loader Fabric, Quilt

Spawn Egg BYID Redirect [Fabric 1.19.x - 1.21] SEBR v1.2 targets 1.19.3, 1.20.2, 1.21 with Fabric, Quilt. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is Spawn Egg BYID Redirect required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric, Quilt
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Spawn Egg BYID Redirect [Fabric 1.19.x - 1.21] SEBR v1.2 need?

[Fabric 1.19.x - 1.21] SEBR v1.2. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

3 listed on this file 2 pulled in by those mods
Wolf Variant Eggs Optional for Spawn Egg BYID Redirect [Fabric 1.19.x - 1.21] SEBR v1.2
optional
Matching file found Matched file: [Fabric 1.21] Wolf Variant Eggs v1.2
Cat Variant Eggs Optional for Spawn Egg BYID Redirect [Fabric 1.19.x - 1.21] SEBR v1.2
optional
Matching file found Matched file: [Fabric 1.20.5/1.20.6] Cat Variant Eggs v1.2
Mooshroom Variant Eggs Optional for Spawn Egg BYID Redirect [Fabric 1.19.x - 1.21] SEBR v1.2
optional
Matching file found Matched file: [Fabric 1.20.5/1.20.6] Mooshroom Variant Eggs 1.0
Fabric API Needed by Wolf Variant Eggs
pulled in
Matching file found Matched file: [1.20.1] Fabric API 0.92.12+1.20.1
Spawn Egg BYID Redirect Needed by Wolf Variant Eggs
pulled in
Matching file found Matched file: [Fabric 1.19.x - 1.21] SEBR v1.2

2 extra mods were pulled in by other dependencies. Indented rows show who needs each one. We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Spawn Egg BYID Redirect without breaking your instance.

Built for Spawn Egg BYID Redirect [Fabric 1.19.x - 1.21] SEBR v1.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use [Fabric 1.19.x - 1.21] SEBR v1.2. It targets 1.19.3, 1.20.2, 1.21 with Fabric, Quilt; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside [Fabric 1.19.x - 1.21] SEBR v1.2. It opens that exact file at the source.

About this project

What does Spawn Egg BYID Redirect add?

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 lost its color as a result, this mod may fix the color.

Mods which rely on this:

For Developers:

The following steps are irrelavent for Forge/NeoForge. Just use ForgeSpawnEggItem.

This mod makes BY_ID#put() inside of the SpawnEggItem constructor call BY_ID#putIfAbsent() instead. While this change may seem minor, it makes a big difference when you want to have multiple spawn eggs with the same entity type (For instance, if you want spawn eggs which spawn variants).

A short tutorial on how to go about using this mod when adding something like a variant spawn egg:

  1. Create a new class extending SpawnEggItem (Mojang Official Mappings, extend whatever this is converted to the mappings of your choice).

  2. Create a public static ArrayList of type SpawnEggItem inside the class you created like so:

public static final ArrayList<SpawnEggItem> EGGS = new ArrayList<>();
  1. In your constructor, add the current instance to the ArrayList you created like so:
super(entityType, i, j, properties);
[...]
EGGS.add(this);
  1. Inside your ClientModInitializer, register the colors to your spawn eggs like so:
@Override
public void onInitializeClient() {
    WolfVariantEgg.EGGS.forEach((egg) -> 
            ColorProviderRegistry.ITEM.register((stack, tintIndex) 
                    -> egg.getColor(tintIndex), egg));
}
  1. If you run the mod now you'll notice that your general spawn egg, not specified to a variant, will have lost its color. That's what this mod fixes without any extra work on your part so long as you didn't do anything to the BY_ID map.

Most other work will probably be done by overriding the useOn method of SpawnEggItem. I won't be walking you through that one since it doesn't really pertain to this mod, but let me know if you run into any issues and I may try to help.

Modpack Policy:

You are free to include this mod in any Modpack hosted on CurseForge.

Server Hosting Discount

Follow the link below and use code "JACKBUSTERS" at checkout for 25% off server hosting.

Project description from CurseForge.

Pick your setup

Spawn Egg BYID Redirect by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

85 available setups

Showing the newest 12 of 42 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Spawn Egg BYID Redirect versions and loaders

5 of 5 releases match

Looking for an older file? The official CurseForge project page is in Resources.