Bit Forge

The Bit Crucible is one of four workstations that BitCrafting adds to Minecraft, and allows for the crafting of bits into tools.

Crafting a Tool
There are two primary steps to crafting a tool in the Bit Forge: creating a tool template, and arranging bits in the grid.

Templates
There are 5 types of template, each corresponding to one of the primary tool types: Axe, Hoe, Pickaxe, Shovel, and Sword. Based on the template chosen, the resulting tool will act in exactly the same way and its vanilla counterpart, with the exception of altered stats and any Elemental Quirks the tool has.

Laying out the Bits
The second step is more straightforward, just put the bits you have into the slots you want them. The crafting grid of the Forge contains 256 slots in a 16x16 square. Each slot corresponds to a single pixel in the 16x16 texture of the tool you're creating. Each slot has a maximum stack size of 1, and only accepts bits.

If there's a template in the template slot, the texture will appear in the output slot and will update as you add or remove bits.

Vanilla tools have the handle of the tool in the bottom left corner, since that's where the item intersects the player's hand.

Tool Stats
The stats of the tool being crafted are determined by the stats of the bits in the crafting grid. Different stats are combined in different ways.

Damage, Durability, Enchantability
The Durability and Enchantability of the tool are equal to the sums of their respective stats (i.e. the Forge adds the Durability of every bit together, and that is the Durability of the tool). Damage is similar but slightly different, since it starts at 1 and adds the bits' Damage values on top (an unarmed player can deal 1 damage by default; using a weapon should deal more damage on top of that).

Harvest Level
The Harvest Level of a tool is calculated by taking the highest Harvest Level that occurs 64 or more times. If there are 64 bits that have a Harvest Level of 3, the tool will have a Harvest Level of 3. If there are only 63 bits with a Harvest Level of 3, the tool would take the next highest Harvest Level with 64 bits. Additionally, bits of a higher Harvest Level will count toward a lower Harvest Level if there are not 64 of them. For example, if there were 63 bits with a Harvest Level of 3, but there was 1 bit with a Harvest Level of 4, the tool would have a Harvest Level of 3. If there is no Harvest Level with 64 or more bits, the tool will have a Harvest Level of 0.

Elemental Quirks
A tool will only have Elemental Quirks if the bits used in the Forge have Quirks. A tool's Elemental Quirks are calculated as follows:


 * 1) If any bit has an Elemental Quirk, the tool will also have that Quirk. A tool can have multiple Quirks if the bits used have different Quirks.
 * 2) For each Elemental Quirk, the Forge takes only the bits with that Quirk and performs the following calculations:
 * 3) * Adds each bit's Power together. This value becomes the Power of this Quirk for the tool. If a bit doesn't have the Quirk currently being calculated, it is ignored.
 * 4) * Combines each bit's Chance according to the following equation: $$1 - (1 - c_1)(1 - c_2)...(1 - c_n)$$, where cx is the chance of a given bit.

If the player combined both Fire and Lightning bits in the Forge, the Power and Chance of the tool's Fire Quirk would be calculated based on only the Fire bits—the Lightning bits would not affect these values in any way, and would likewise be calculated on their own.