by loftar » Sun Sep 13, 2015 9:49 pm
Just to expound a bit on the mechanic:
A particular construction project will use the different "ingredient" slots for various things. Most simpler things just take one material from a certain slot, like the rustic chair, which takes its bark material from the wood-block slot, and its bare wood material from the board slot. In these simpler cases, it's simply the most common wood type used that determines the material, even if that material is used for less than half of the building materials. If there are more than one type that were used as much (like 2 blocks of birch and 2 blocks of pine for a total of 4), then it is not well-defined which one will be used.
For more complex projects, on the other hand, several materials may be deduced from the same input slot; such as for the stone mansion, which uses three stone materials from its single stone slot. In these cases, the different stone types used are sorted according to prevalence, and the top three are used, but only under the condition that each subsequent material in that list is used at least half as much as its preceding material. If that is not the case, the last "common-enough" material is used for the rest of the stone materials.
For instance, if you build a mansion out of 130 pieces of gneiss, 70 pieces of granite, and 50 pieces of basalt, then gneiss will be used for the first stone material, granite for the second, and basalt for the third. This is because granite was used at least half as much as gneiss, and basalt was used at least half as much as granite (though less than half as much as gneiss, but that is not a problem).
On the other hand, if you build it from 150 pieces of gneiss, 75 pieces of granite, and 25 pieces of basalt, then then gneiss will be used for the first stone material, but granite for both the second and third, because while granite was used at least (in this case, precisely) half as much as gneiss and is thus valid, basalt was used less than half as much as granite, and is thus not valid, so only gneiss and granite are considered. If you were to build a mansion from 247 pieces of gneiss, 2 pieces of granite and 1 piece of basalt, then naturally gneiss would be used for all three materials.
Of course, what input slots and at what precedence their contents are used for different materials on the completed project, differs from construction to construction.
"Object-oriented design is the roman numerals of computing." -- Rob Pike