Mendel's Sheep
Mendel's sheep, as the name suggests, implements Mendel's laws of inheritance for sheeps. Their born color is no longer affected by the parent's color, but by it's genes. Coloring the sheep will no longer change the color of it's children.
Sheeps have 4 pairs of alleles, each affecting one "aspect" of the color. Thanks to the selection of minecraft colors, the "aspects" are a little artificial. Their technical names are "colorness" (colorful/dim), "naturalness" (natural/artifical colors), "lightness" (light/dark) and hue (no actual meaning). Following table shows how they are translated to sheep colors:
Sheep images belong to minecraftwiki.net
There is a set of admin tools to test/play with the plugin. Each has a separate permission, and they all inherit from "mendelsheep" permission, that is defaulted to OP;
mendelsheep.inspect: Displays the sheep's genome on right-click
mendelsheep.restore: Reverts the sheep to birth color on right-click while holding bone
mendelsheep.grow: Makes sheep adult and ready for parenthood on right-click while holding wheat
mendelsheep.spawn: Allows the usage of /ms or /mendelsheep command, that just spawns a sheep at your position
mendelsheep.pickup: Allows picking up sheep using right-click with string, highly experimental
Installation and Config:
So far there is no config, just drag-and-drop the jar in plugins folder.
Please update!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Ah really hoping for a fix for that haha, getting player hate ;<
@Joymo: no it is not, it should regrow orange wool. I have attempted a fix couple versions ago, but since there are no bukkit events for these things, it is quite hard to make them work. I think it worked in 1.1, I will check it it in the new source code.
Seems that if you breed for example an Orange sheep, and then shear it, it regrows white wool instead of Orange, is this working as intended or a bug?
@anotherfahlman: It will only spawn white sheep. If you use tiedyesheep, then propably it will cause the sheep to spawn colored, however with "white genes" - same as if you colored the sheep with a dye.
If lolwut had a face, I would have had it when I first saw your plugin...
It's just... Lol
But nice job. I barely understood Mendel's law in school, let alone enough to make a plugin out of it.
@anotherfahlman I think it just assigns genetic markers to the sheep that spawn normally, allowing you to then breed them to make other colors.
Does this plugin allow the server to spawn colored sheep or is another plugin like tiedyesheep necessary?
Hey!
Thanks for the great plugin! I just wanted to say that I am currently using
git-Bukkit-1.1-R3-b1846jnks (MC: 1.1)
And it still works without any problems ;) I hope that this has not become inactive :/
Great, I allways hated that ppl could make one "different color" sheep and then inbreed them inf and with 1.1 now make infinite amount of one color wool..
This is a great plugin Please Keep on Developping it..
Version 0.3.2 up, permissions were fixed. They must have changed the way permissions inherit from each other, it used to work fine, and I didn't change a thing about it until now. @Veroni3: Yes, the leash would certainly be useful, I have already thought of it ( my original idea was that you could pick up sheep and put them down somewhere else ), although it seems like a job for another plugin (it will force MendelSheep to have a config file, which I tried to avoid :-) )
I'm replying to your post in the bukkit forum (seems to need a different account?), where wuselfuzz said "Just tested bukkit 1744 and it killed Mendel's Sheep. Reverted back to 1716.":
When he started up 1744, right-clicking the sheep didn't print their genes any longer, just nothing happened.
Something completely different: It would be great if you could take a sheep on a leash and pull it to where the sheep you want to breed with is. With a large herde, it is really difficult to bring the sheep together because when holding wheat you can't move or target the correct sheep when they are all running around you and jumping up and down... ^.^
Having the same issue as Joymo, I'm using bPermissions 1.9.1 currently.
Loaded this, any player seems to have all permission nodes by default. Adding the permissions negated, same issue.
Any chance you could either support Vault or make the permissions false by default? Seems to be an issue with the current implementation of these nodes, seen it before in other plugins...
Purple comes first, then magenta.
@regrowing: I guess it's alright - since 1.1 the wool is regrown by eating grass like in the official version.
@Veroni3: Thanks for the color table, I fixed that just now (hopefully the right way, I am not really sure which color is called purple and which magenta). About the regrowing, the correct color for sheep to regrow wool isn't white, but it's born color. The white color appears alsoon naturally regrown sheeps? (It has already been reported that RegrowingSheepCoat's command recolors the sheep to white, I have tried to contact author). Sheeps not appearing on /ssheep list seems to me as pure RegrowingSheepCoat bug, that is unrelated to MendelsSheep (I could be wrong, but again, I don't have RegrowingSheepCoat's source code, so unfortunatelly I can do very little about compatibility.
Awesome idea, thanks! :)
I have noticed two problems though:
1) In the color list on https://github.com/M0rt1mer/Mendel-s-sheep/blob/master/src/mort/mendelsheep/MendelGenome.java, purple is missing from the colormap, but there's a duplicate magenta.
2) When using this patch after sheep have been dyed and shorn already using the w49 weekly build (where sheep regrow wool when eating grass), some sheep don't regrow their wool with /ssheep regrow, and the /ssheep list is empty after issuing the command. They cannot be shorn again, though. (Most of the sheep do regrow correctly (white).)
I had two out of about 30 that showed that behavior. One was originally pink one, and I don't know what the other color was. It didn't happen to all originally pink ones.
Basically, it is based on Mendelian inheritance. It's a simple genetics law, and the plugin only implements this law into minecraft (obviously the "traits" are made up, as you can't get colored sheep in real life, but the rest works exactly as nature intended)
Basically, you breed two sheep, and now they have a chance because of genetics, to breed a different color baby, or one of the parents colors. It just adds behavior to the breeding of sheep that makes their wool color spawned act more like genetics are involved.
@M0rt1mer And I read your message on the other forum, thank you for the new update! Now I am tossing over my other rainbow sheep plugin for yours. This one sounds more fun, especially now it works with the regrowingsheepcoat. Going to put it in today and test it all together.
Can someone explain exactly how this works? After reading this a couple times I'm still unsure.