Created a tint modifier system for seeds to get a tint based on their genetically modified filling values. The tint serves as a visual representation for the filling rather than having to consume the seed to check.
The filling values are divided into 3 different categories and corresponding tinting modifiers are applied, namely the LowTinter, ModerateTinter and the MaxTinter. This can later be modified into categories for the seed which can be used to differentiate between varieties of seeds for other purposes like special cooking recipes.
It is probably not desirable to have all seeds of a particular colour, therefore seeds with filling less than 1.5f after being genetically modified, will not have any tint but rather retain their original colour.
The tinting mechanism can be extended with the addition of more traits to vary the saturation and brightness of the tint, thus giving a better idea of the genes of the seed.
How to test
Use the give <seedname> command to obtain a seed
Plant the seed on the ground by right-clicking the ground while holding the seed
Wait for the seed to grow or use the GrowthCan by the give GrowthCan command to speed up the process
Harvest the seed. Based on the range in which the filling value lies, the seed will get a tint.
Contains
Created a tint modifier system for seeds to get a tint based on their genetically modified filling values. The tint serves as a visual representation for the filling rather than having to consume the seed to check. The filling values are divided into 3 different categories and corresponding tinting modifiers are applied, namely the
LowTinter
,ModerateTinter
and theMaxTinter
. This can later be modified into categories for the seed which can be used to differentiate between varieties of seeds for other purposes like special cooking recipes. It is probably not desirable to have all seeds of a particular colour, therefore seeds with filling less than 1.5f after being genetically modified, will not have any tint but rather retain their original colour. The tinting mechanism can be extended with the addition of more traits to vary the saturation and brightness of the tint, thus giving a better idea of the genes of the seed.How to test
give <seedname>
command to obtain a seedgive GrowthCan
command to speed up the processhttps://github.com/Terasology/EdibleFlora/pull/8 must be merged for this PR to work.
The above picture shows fruits affected by the moderateTint