
Modrinth · Minecraft mod
Colorful Spawning Sheep
This mod allows for sheep of all 16 wool colors to spawn at equal rates.
Quick answer
Which Colorful Spawning Sheep release should I use?
Colorful Spawning Sheep 1.0 targets 1.2.1, 1.2.2, 1.2.3 with modloader. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.
Where it goes
Is Colorful Spawning Sheep 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 Colorful Spawning Sheep 1.0 need?
1.0. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add Colorful Spawning Sheep without breaking your instance.
Built for Colorful Spawning Sheep 1.0. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.0. It targets 1.2.1, 1.2.2, 1.2.3 with modloader; another release may have different loader, side or dependency requirements.
- 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.
- 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 Colorful Spawning Sheep add?
Colorful Spawning Sheep! Beta 1.7.3
The spawning of different colors is completely equal. There is no sort of rarity, just sheep spawning with all the color of wool!
This mod makes a very simple change to the 'EntitySheep' class. View Code in Spoiler directly below.
Modloader not required but I had to select an API.
Spoiler
Base Fuction
public static int getRandomFleeceColor(Random random0) {
int i1 = random0.nextInt(100);
return i1 < 5 ? 15 : (i1 < 10 ? 7 : (i1 < 15 ? 8 : (i1 < 18 ? 12 : (random0.nextInt(500) == 0 ? 6 : 0))));
}
Edited for this mod
public static int getRandomFleeceColor(Random random0) {
int i1 = random0.nextInt(100);
return i1;
}
Here is some extra information about the two diffetent version 'Normal Drops' and 'x2 Drops'.
Normal Drops just means when you shear a sheep you will get the normal amount of wool out of them, 2-5.
X2 Drops will give you 4-10 when you shear the sheep. View Code in Spoiler directly below.
Spoiler
Normal Drops
public boolean interact(EntityPlayer entityPlayer1) {
ItemStack itemStack2 = entityPlayer1.inventory.getCurrentItem();
if(itemStack2 != null && itemStack2.itemID == Item.shears.shiftedIndex && !this.getSheared()) {
if(!this.worldObj.multiplayerWorld) {
this.setSheared(true);
int i3 = 2 + this.rand.nextInt(3);
for(int i4 = 0; i4 < i3; ++i4) {
EntityItem entityItem5 = this.entityDropItem(new ItemStack(Block.cloth.blockID, 1, this.getFleeceColor()), 1.0F);
entityItem5.motionY += (double)(this.rand.nextFloat() * 0.05F);
entityItem5.motionX += (double)((this.rand.nextFloat() - this.rand.nextFloat()) * 0.1F);
entityItem5.motionZ += (double)((this.rand.nextFloat() - this.rand.nextFloat()) * 0.1F);
}
}
itemStack2.damageItem(1, entityPlayer1);
}
return false;
}
x2 Drops
public boolean interact(EntityPlayer entityPlayer1) {
ItemStack itemStack2 = entityPlayer1.inventory.getCurrentItem();
if(itemStack2 != null && itemStack2.itemID == Item.shears.shiftedIndex && !this.getSheared()) {
if(!this.worldObj.multiplayerWorld) {
this.setSheared(true);
int i3 = 4 + this.rand.nextInt(6);
for(int i4 = 0; i4 < i3; ++i4) {
EntityItem entityItem5 = this.entityDropItem(new ItemStack(Block.cloth.blockID, 1, this.getFleeceColor()), 1.0F);
entityItem5.motionY += (double)(this.rand.nextFloat() * 0.05F);
entityItem5.motionX += (double)((this.rand.nextFloat() - this.rand.nextFloat()) * 0.1F);
entityItem5.motionZ += (double)((this.rand.nextFloat() - this.rand.nextFloat()) * 0.1F);
}
}
itemStack2.damageItem(1, entityPlayer1);
}
return false;
}
Specifially these lines
int i3 = 2 + this.rand.nextInt(3);
int i3 = 4 + this.rand.nextInt(6);
2 or 4 is the amount of wool you will always get from the sheep, where the 'this.rand.nextInt(3);' or 6 will give you an extra 0 through 3 or 6 in addition to the 2 or 4 you have already been given. This happens simultaneously but I am trying to explain the fuction :)
Edit: 7 April 2024
No Changes, but I added support for b1.2-b1.8.1, r1.0, r1.1, r1.2.4&5. I will do 1.2, 1.2.1, 1.2.2, and 1.2.3 soon.
Edit: 8 April 2024
Added 1.2.1-3 support. I am considering adding 1.3-1.20 support. It will be a bit before that happens I am sure.
Project description from Modrinth.
Pick your setup
Colorful Spawning Sheep by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
b1.8
1 loader buildb1.7.3
1 loader buildb1.7.2
1 loader buildb1.7
1 loader buildb1.6.6
1 loader buildb1.6.5
1 loader buildb1.6.4
1 loader buildb1.6.3
1 loader buildb1.6.2
1 loader buildb1.6.1
1 loader buildb1.6
1 loader buildShowing the newest 12 of 28 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
Colorful Spawning Sheep versions and loaders
1.0
[r1.2.1-3]Colorful Spawning Sheep Client+Patch+SRC.zip
8 Apr 2024
1.0
[r1.2.4&5]Colorful Spawning Sheep Client+Patch+SRC.zip
8 Apr 2024
1.0
[r1.1]Colorful Spawning Sheep Client+Patch+SRC.zip
8 Apr 2024
1.0
[r1.0]Colorful Spawning Sheep Client+Patch+SRC.zip
8 Apr 2024
1.0
[b1.8.1]Colorful Spawning Sheep Client+Patch+SRC.zip
8 Apr 2024
1.0
[b1.6.6]Colorful Spawning Sheep Client+Patch+SRC.zip
8 Apr 2024
1.0
[b1.5_01]Colorful Spawning Sheep Client+Patch+SRC.zip
8 Apr 2024
1.0
[b1.4_01]Colorful Spawning Sheep Client+Patch+SRC.zip
8 Apr 2024
1.0
[b1.3_01]Colorful Spawning Sheep Client+Patch+SRC.zip
8 Apr 2024
1.0
[b1.2_02]Colorful Spawning Sheep Client+Patch+SRC.zip
8 Apr 2024
1.0
[b1.7.3]Colorful Spawning Sheep x2 Drops Client+Patch+SRC.zip
9 Mar 2024
1.0
[b1.7.3]Colorful Spawning Sheep Client+Patch+SRC.zip
9 Mar 2024
Looking for an older file? The official Modrinth project page is in Resources.