
Modrinth · Minecraft mod
Spawn Egg BYID Redirect
Needed for same Spawn Egg type compatibility
Quick answer
Which Spawn Egg BYID Redirect release matches 24w12a?
Spawn Egg BYID Redirect 1.0 targets 1.20, 1.20.1, 1.20.2 with Fabric, Quilt. Installation on the client is optional. Installation on the dedicated server is optional. 1 required mod needs a matching file.
Where it goes
Is Spawn Egg BYID Redirect required on the client, server, or both?
Installation on the client is optional. Installation on the dedicated server is optional.
The source marks this as usable on both the client and server.
What else does Spawn Egg BYID Redirect 1.0 need?
1.0 on 24w12a. Every mod below is checked against that same setup.
Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.
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 1.0 on 24w12a. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.0. It targets 1.20, 1.20.1, 1.20.2 with Fabric, Quilt; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.
- 03
Put it on the correct side
Installation on the client is optional. Installation on the dedicated server is optional.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.0. 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.
Follow the link below and use code "JACKBUSTERS" at checkout for 25% off server hosting.
For Developers:
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<>();
3) In your constructor, add the current instance to the ArrayList you created like so:
super(entityType, i, j, properties);
[...]
EGGS.add(this);
4) 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));
}
5) 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.
Project description from Modrinth.
Pick your setup
Spawn Egg BYID Redirect by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
24w14potato
2 loader builds24w12a
2 loader builds24w11a
2 loader builds24w10a
2 loader builds1.21
2 loader builds1.20.6
3 loader builds1.20.5
2 loader builds1.20.4
2 loader builds1.20.3
2 loader builds1.20.2
2 loader builds1.20.1
2 loader builds1.20
2 loader buildsShowing the newest 12 of 31 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
1.0
spawneggbyidredirect-1.0-fabric-mc1.20.x.jar
11 Mar 2024
Looking for an older file? The official Modrinth project page is in Resources.