Forge Hammer

## Overview

Forge Hammers are blocks in Tetra that together with workbench form a multiblock structure of a functional hammer. They provide a way of upgrading tools to higher tiers (since they function as a tier 5 hammers in their base form) as well as providing additional bonuses to crafted modules.

They are a great alternative to a hand-held hammer, as they allows for building designated workshop and crafting high tier tools without the need for carrying a high tier hammer in the inventory.

Forge Hammer is used as a part of a multi-block structure consisting of a Workbench, the difference is purely aesthetic), a single block high gap above it and a Forge Hammer block. They may be found in the underground ancient ruins.

They have 4 interactive sides with slots for attachments found randomly empty or already equipped with items. Attached upgrades can be removed with a claw tool (an indicator is visible when hovering over a slot) by clicking in the appropriate, indicated spot

## Obtaining

They are often found generated naturally in the Ruins. As other forged blocks, they can be picked up with a Hammer enchanted with Silk Touch.

### minecraft 1.18

Due to structure generation getting disabled they are not present in this version of the game and can't be obtained.

## Mechanics

To use a Forge Hammer it first needs to be activated. Use two Thermal Cells for each of the smaller square slots. The two other slots require equipping any of the forge attachments. When the Forge Hammer activates, orange lights will turn on, and the player will unlock the "Restored Machinery" advancement.

Place a tool down on the Workbench underneath the Forge Hammer to tinker with it. Now you can upgrade your tool like you usually do without a need for an extra hammer in your inventory.

The Forge Hammer has a lower priority than a hammer present in the inventory and a tool on a Rack when tinkering with tetra tools, so inventory must first be cleared of other hammers to use forge hammer bonuses.

### Jamming

   A Forge Hammer's head may jam occasionally with an audible sound. To unjam it, use a handheld hammer of at least tier 4 on the indicated spot. Doing so for the first time unlocks the "Maintenance Acquired" advancement. This mechanic was present until 1.16 and reappeared in 1.19.

### Attachments

There are several items found in the structures capable of upgrading and adjusting the forge. Use `RMB` click on the empty slots to equip them. For detailed bonus calculation of each module check Details below. Thermal cells fit only in square holes, while other modules fit only in the other, rectangular slots.

* Thermal Cell - required for the forge to work, doesn't provide any additional bonus.
* Combustion Chamber - increases the hammer's tier by +1, increases fuel consumption and using the hammer may cause nearby blocks to catch fire in a 3x2x3 (x,y,z) area around the hammer following rules below:
	+ 0 combustion chambers — 0% chance of fire
	+ 1 combustion chamber — 66% chance to ignite 3-6 blocks
	+ 2 combustion chambers —80% chance to ignite 3-10 blocks
* Planar Stabilizer - causes major modules with this hammer to slightly improve the stats of the item (each one increases internal attack, ability and ranged attack damage modifier by 0.05 and efficiency of a tool by 1)
* Lubricant Dispenser - each one reduces the chances of the hammer to jam by 50% (two lubricant dispensers prevent jamming altogether)
* Insulated Plate - increases the efficiency of the hammer by reducing the fuel consumption by 40%

### Bugs

It may so happen, that the forge hammer's tier is not immediately detected when you open the workbench (for example when the tool was placed on a workbench but you upgraded hammer's tier with Combustion Chambers). You can wait a bit, navigate through interface or take the tool out and place it in again to refresh the hammer tier.

### Fuel consumption

Each usage of the Forge Hammer consumes the same amount of fuel from **both cells** (out of a total charge of 128 each) according to the following equation:

f
u
e
l
\_
c
o
n
s
u
m
e
# d
m
a
x
(
1
,

⌊
(
5
4
∗
#
c
o
m
b
u
s
t
i
o
n
\_
c
h
a
m
b
e
r
s
)
∗
(
1
−
0.4
∗
#
i
n
s
u
l
a
t
e
d
\_
p
l
a
t
e
s
)
⌋
)

{\displaystyle fuel\\_consumed = max(1,\,\lfloor(5+4\*\#combustion\\_chambers)\*(1 - 0.4\*\#insulated\\_plates)\rfloor)}

The exact fuel consumption rates are given below. "Regular modules" are modules other than insulated plate and combustion chamber.

* 2 insulated plates — **1 fuel each**
* 1 regular module, 1 insulated plate — **3 fuel each**
* 2 regular modules — **5 fuel each**
* 1 combustion chamber, 1 insulated plate — **5 fuel each**
* 1 regular module, 1 combustion chamber — **9 fuel each**
* 2 combustion chambers — **13 fuel each**

## Change of mechanics in minecraft 1.16

   Until 1.16, the Forge Hammer consisted of a Hammer Base, a Hammer Head and a Workbench.

Activation of the hammer proceeded as follows (see attached video):

1. Use Claw to remove the covers from slots (brown patches). By doing so you get Vent Plates and Metal Scrap.
2. Use hammer of any tier on those freshly uncovered patches until the forge emits particles. Each click changes the indicator on the hammer.
3. Use charged Thermal Cells to enable the forge.

This creates a tier 5 forge hammer.

Forge hammer has two slots on both sides that play a role of 4-state switches. To activate the hammer, those slots have to be adjusted by using an adequate tool on both sides. Their texture changes on each use. Setting those toggles to correct positions will emit smoke particles. The "correct" positions are randomly generated, so you have to experiment to activate the forge.

Since 1.16 forges have been slightly reworked and the slot covers along with the tweaking mechanics has been removed. Instead, several Forge Additions are used to increase the hammer's tier. Use them on the forge's side to equip them.

## History

 1.18, tetra v4.0.0
 since 1.19.2, tetra v5.0.0

1. ↑ https://github.com/mickelus/tetra/blob/a23378b5d23c1873333e16fc51ac32e800a2ae71/src/main/java/se/mickelus/tetra/blocks/forged/hammer/HammerBaseTile.java#L233
2. ↑ https://github.com/mickelus/tetra/blob/a23378b5d23c1873333e16fc51ac32e800a2ae71/src/main/java/se/mickelus/tetra/blocks/forged/hammer/HammerBaseTile.java#L194
3. ↑ https://github.com/mickelus/tetra/blob/a23378b5d23c1873333e16fc51ac32e800a2ae71/src/main/java/se/mickelus/tetra/blocks/forged/hammer/HammerBaseTile.java#L273