• check_circle Functions
  • 3,111 views, 4 today
  • 248 downloads, 1 today
  • 13
  • 10
  • 5
Vexxen0725's Avatar Vexxen0725
Level 51 : Grandmaster Engineer
20
Have you ever tried to breed a good minecraft horse and thoght? Why cant i breed one faster then a elytra! Well animal genetics fixes that for you! Along with introducing real genetic math to pigs, sheep, cows, horses, striders, foxes, wolves, and more! Animal genetics makes it possible to selectivly breed animals to do whatever you desire.

The mechanics of animal genetics are simple enough, only the math for genetics is complex. First breed 2 animals, and make several babies, each of these babies will have the genes of the 2 parents mixed, if you only breed the babies that have the trait you desire, lets say speed, then you get the 2 fastest babies and make the next generation, then repeat until you have a pig faster then a jet!



Well how many traits are controlled by genetics you may ask? There are 5 genomes in each animal, these genomes literally are there genetic data(admins can view the genetic data with a command). The speed genome, the strength genome, the health genome, the jump genome, and the visual genome.



Speed: Controls the speed of the mob, you can make a mob so slow it cant move, or a mob so fast its faster then a jet.

Strength: Controls attack damage, size, and amount of drops a mob gives. It will even increase the number of eggs a chicken lays! If a mob has a enormous amount of strength, they will break leaves they walk into, even more strength, and they will break fences. It is to note that the min and max size a mob can have is 0.25x, and 2x respectively. The max drop multiplier is 4, min is 0. Multiplication of drops, and changes in size require the pekui mod.

Health: Controls mob health. Max of ~35, min of 1.

Jump: Only works for horses, this can control the jump hight, ranging from being incapable of jumping, to jumping 25 blocks.

Visual: Changes from mob to mob. For horses, it controls there color. For foxes, there colors. Rabbits, colors, and if they are a killer rabbit. Pandas, there personality. Etc. They also have a hidden feature of mutations, where if a mob gets lucky when they are born, they can get a mutation that allows them to have superpowers. Only some mobs can have these special mutations. They can also only be gotten thru breeding the mob.



Special Mutations:

Flight/No Fall Damage: Makes rideable mobs capable of flight when ridden, as well as making non-rideable and rideable mobs not take fall damage. Fight is slower when pekui is not installed. May not work if you are using the datapack before 1.19.4. However should not cause big issues.

Fire Resistance: They have permanent fire resistance.

Water Breathing: They have permanent water breathing.

Frost Walker: Permanent frost walker.

Regeneration: They have permanent regeneration.



This datapack also adds many settings to the op menu. If you are in creative mode, and have access to commands, you can use the op menu. Simply type "/trigger op_menu". If you hover over the settings in the menu they tell you what they do. There are all kinds of settings. From disabling the visual genome from effecting different mobs colors, to disabling special mutations. This allows you to balance the datapack to your own servers needs. As well as a few smaller tools like a command to view the genome of a nearby mob. Or reroll there genome.



Post bugs to my discord or in the comments here.

Pekui Download

My Discord
CompatibilityMinecraft 1.19
toMinecraft 1.20
Tags

Create an account or sign in to comment.

1
01/25/2024 2:26 am
Level 4 : Apprentice Miner
tjb3171
tjb3171's Avatar
Interesting!!! I’ll try this out
3
06/28/2023 6:43 pm
Level 15 : Journeyman Artist
MangyCoyote
MangyCoyote's Avatar
how did you get minecraft to recognize exactly which animals values to use and pass to the next generation? I'm trying to create a similar pack thats purely based on visuals.
1
06/29/2023 11:13 pmhistory
Level 51 : Grandmaster Engineer
Vexxen0725
Vexxen0725's Avatar
I first store the genetic information in the form of a scoreboard. 2 per trait i want to make genetic. EG: a speed male scoreboard, a speed female scoreboard. Then i use a binary to decimal converter to convert the base 10 number in the scoreboard into a list off 1's & 0's. Then combine the female and male scoreboard. EG: 9 male -> 01001, 8 female -> 01000. Then combined the speed gentic info is: 02001.



When the world starts, i have a random number generator that generates 31 diffrent 1's and 0's, then i combine them into a single base 10 number. The reason for 31, is that's the maximum binary number you can store in a scoreboard.

Honestly the visual apperences of the mobs were one of the harder fetures to do. If i want to be acurate i need specifc genes to have specific effects that interact with other genes effects. As thats how its done irl. Gene1,2,3 controls the darkness of the horse, 5,6,7 controls whether it has spots or not, etc. Basically the more chaotic you make the genes effects, the more the effects of the genes counter, or help each other, the more they intract, the more acurate it will be for the purposes of a block game.

When its time to read the genetic info, and use it to apply real effects, i turn the base 10 number into binary and for each digit, i apply a diffrent effect. Its important to note that the combined genetic info from both the female side, and male side is used, meaning 3 values, 0, 1, 2. If 0 in the first digit, add 0.1 speed. If 1 in the first digit, add -0.1 speed. If 2 in the first digit, add 0.5 speed.



In order to make your genetics more realisitc, i recomend you make each digit(gene), have more intresting effects, or intract with one in other. So if you have gene1 as 1, and gene2 as 2 then add 30, and ignore the original 2 effects.



Its rather complex honestly. If you want my help you can join my discord and i can explain it too you better. I recomend using my datapack as a base if you want realistic genetics. I made the system rather eazy to exspand, and control what it does, thou it requires understanding what it does. Feel free to use my code as you like as long as i get credit.
2
06/29/2023 11:22 pm
Level 15 : Journeyman Artist
MangyCoyote
MangyCoyote's Avatar
I'm going to join the discord to discuss further, what I want is fairly simple, really just two 'genes' that have 50% chance to pass on to the offspring. each 'gene' only has 1-3 alleles.
2
06/23/2023 8:02 pm
Level 40 : Master Wolf
ItzOrangey
ItzOrangey's Avatar
That is actually a really good idea!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome