Immersive Smithing: Datapack and Java API
On this page (26)
- Material units
- Smithing recipes
- Exact source policy and precedence
- Conditions
- Material families
- Recycling overrides
- Coverage decisions
- Anvil patterns
- Forge patterns
- Process profiles
- Workpiece profiles
- Tags
- Automatic detection
- Built-in mod support
- Epic Fight, Epic Knights and Simply Swords
- Loot quality
- Quality inheritance
- Grindstone
- Item data
- Hands-on work and protocol
- The work view
- The Smithing Guide (Patchouli)
- Demonstrations (Ponder)
- Events
- Java API
- Commands
Immersive Smithing is configured almost entirely through datapacks. The Java API exists for items that datapacks
cannot describe. Everything below is re-read on /reload (or /immersivesmithing reload).
Material units
Saved metal accounting uses integers: nugget = 1, ingot or raw ore = 9, storage block = 81. Reviewed Epic component graphs use rational arithmetic during reload: round the final forge charge up once and known recoverable content down. Fractional components are not direct melt sources; the saved unit scale is unchanged.
Smithing recipes
Recipe type immersive_smithing:smithing. Recipes are ordinary Minecraft recipes, so they live in
data/<namespace>/recipes/ (any subfolder) and support Forge conditions, for example forge:mod_loaded.
They are synced to clients and shown in JEI.
{
"type": "immersive_smithing:smithing",
"material": "examplemod:steel",
"metal_units": 27,
"auxiliary": [
{ "ingredient": { "item": "minecraft:stick" }, "count": 2 }
],
"result": { "item": "examplemod:steel_pickaxe" },
"anvil_pattern": "immersive_smithing:pickaxe",
"process_profile": "immersive_smithing:pick_head"
}
| Field | Required | Notes |
|---|---|---|
material |
yes |
Material family id. A recipe whose family does not exist is deactivated and reported. |
metal_units |
yes, except policy templates |
Positive integer; an Epic policy template derives it from its active source. |
source_policy |
no |
epic_knights marks a reviewed item/family/pattern template. Every supported active native source resolves separately at reload; no static numeric cost is trusted. |
auxiliary |
no |
Non-metal ingredients taken from the smith’s inventory when the plan is committed at the forge’s tray. They wait in the job’s escrow until the billet is drawn (cancelling the job hands them back exactly once) and are fitted at the anvil after the quench. count defaults to 1. With "consume_equipment": true the ingredient is a finished piece the recipe reworks (a netherite helmet becoming an ignitium helmet): it is matched by item, whatever its damage or quality, escrowed like any other auxiliary and replaced by the new piece with the quality of the new forging. |
result |
yes |
Standard item-stack JSON; nbt is kept on the finished item. |
forge_pattern |
no |
Read and kept for compatibility. Since 1.3.0 it changes nothing: heating follows the material’s thermal block and the process profile. |
anvil_pattern |
no |
Defaults to the closest pattern family for the result item. Chooses the process profile unless process_profile names one. |
process_profile |
no |
1.3.0. A process profile id that overrides the pattern’s. An unknown id falls back to the pattern’s profile; /immersivesmithing process reports it. |
replaces |
no |
Ids of the native recipes this recipe stands in for. While it is active they are disabled (with replaceMetalEquipmentRecipes on), and only they: other recipes for the same result are kept and reported. |
derived_from |
no |
Ids of native recipes this recipe follows without disabling them (a remake that adds no metal stays beside it). |
keep_base_data |
no |
Default true. Exactly one reserved consume_equipment stack supplies reviewed enchantments, display name/lore/color, repair cost, trim, heraldry and decorations. Target defaults win. Equal durability keeps exact damage; otherwise proportional wear rounds up. Fractional wear carries over. Arbitrary tags/capabilities and loaded ammo are not copied. The quench supplies new quality and maker; false creates the declared result. |
An explicit recipe always wins over automatic detection for the same result item. Results tagged
immersive_smithing:non_smithable_equipment are ignored.
A recipe with replaces or derived_from is active only while at least one of the recipes it names is loaded. When a
datapack or KubeJS removes the native recipe, the forge recipe that stands in for it goes too, and the report says
why. A recipe naming neither is active whenever its conditions pass.
Exact source policy and precedence
An Epic template resolves to <template ID>/from/<source namespace>/<source path> for every validated active source,
retaining distinct variants and complete ingredient alternatives. A plain datapack replacement at the template ID,
or an explicit recipe claiming the source, has priority. Provider recipes are inserted once into the authoritative
manager; a loaded datapack recipe at the same ID wins. Sources are suppressed only after validation and publication.
Per-source rules live at data/<source namespace>/immersive_smithing/recipe_policies/<source path>.json:
{"operation":"native","reason":"Owned by this pack's progression"}
native vetoes replacement; forge permits the usual validation, never missing recipes or unsupported semantics.
Forge conditions apply; malformed policies preserve the native route. External bridge ownership and explicit server
exclusions precede every provider or datapack rule. A fresh reload generation never restores removed recipes.
In-flight sessions pin their recipe, cost, target assembly and escrow; new selections use the new snapshot.
Recovery uses proven primary content, including the consumed same-family base and additions, bounded by actual
reserved provenance and the lowest compatible route. Unknown custom alternatives and unanchored cycles establish
no inferred recovery. Explicit recycling overrides beat inference; recyclable: false beats positive values and raw
source mappings. Secondary metals/plating are forfeited. No TFC or Greg fluid units are translated to nuggets.
Conditions
Besides Forge’s conditions, immersive_smithing:mod_version is true when a mod is loaded and its version is in a
Maven version range. Use it when another version of a mod reuses the same recipe ids with other ingredients:
{ "type": "immersive_smithing:mod_version", "modid": "medieval_boomsticks", "versions": "[1.2,1.3)" }
The finished piece is assembled from what the forge’s escrow actually holds, before any metal is charged. If that is not possible when the minigame ends, the session is cancelled, the molten metal stays in the forge and the components go back to the smith.
Material families
data/<namespace>/immersive_smithing/materials/<name>.json
{
"family": "examplemod:steel",
"display_name": "material.examplemod.steel",
"sources": [
{ "tag": "forge:ingots/steel", "units": 9 },
{ "tag": "forge:nuggets/steel", "units": 1 },
{ "tag": "forge:storage_blocks/steel", "units": 81 },
{ "item": "examplemod:steel_scrap", "units": 3 }
],
"melt_time_multiplier": 1.0,
"requires_ignition": true,
"required_fuel_tag": "immersive_smithing:netherite_fuels",
"tint": "#FF8A3D",
"upgrade_policy": "shape",
"thermal": { "workable_min": 0.45, "optimal_min": 0.58, "optimal_max": 0.72, "workable_max": 0.80, "cooling": 1.0, "heating": 1.0 }
}
| Field | Required | Notes |
|---|---|---|
family |
yes |
The family id. Several files for the same id are merged in file-id order: sources add up, and the last file sets the other fields. |
sources_only |
no |
Default false. true: the file only adds its sources to a family that another file defines; its other fields are ignored, and a family with nothing but sources_only files is not created. Reviewed Epic Knights components instead receive their verified active-recipe value at reload; they are not fixed-value plate sources. |
display_name |
no |
A translation key (the key itself is shown if untranslated) or a text component object. |
sources |
yes |
Each entry has a tag or an item, plus positive units. |
melt_time_multiplier |
no |
Multiplies the configured base melt time. Default 1.0. |
requires_ignition |
no |
Default true. When false, solid fuel heats the forge without being lit. |
required_fuel_tag |
no |
The heat source must be in this item tag. Lava counts as minecraft:lava_bucket. |
tint |
no |
Colour of the molten metal, "#RRGGBB" or an integer. |
casting |
no |
false switches casting off for the family; an object { "enabled": true, "ingot": "...", "nugget": "..." } names the ingot (9 units) and nugget (1 unit) to cast. Overrides casting.preferredNamespaces. |
thermal |
no |
1.3.0. Heat bands of the metal on a 0..1 scale (1 is the hottest the forge reaches), ordered workable_min < optimal_min < optimal_max < workable_max, the optimal band at least 0.02 wide. cooling and heating (0.1 to 10) scale the base rates. Every field is optional; the defaults are the values shown. A metal without a thermal block uses its process profile’s heat block, then these defaults. Game design, not metallurgy: a fantasy metal may have any ordered bands. |
upgrade_policy |
no |
Generic upgrade pricing: shape (default) uses the base’s whole shape in this metal without consuming the base (vanilla netherite); addition consumes the exact base plus added metal. Epic Knights’ recipe-level policy takes precedence: structural upgrades consume their bases, native plating retains its template, and only genuine netherite replacement follows this material policy. |
Files support Forge conditions. An item claimed by two families is ignored and reported as ambiguous.
When autoDetectModdedMetals is on, every forge:ingots/<metal> tag that no definition covers becomes the
family forge:<metal>, with nuggets (1), storage blocks (81), raw materials (9) and raw storage blocks (81)
taken from the matching forge: tags. Its display name uses the key material.forge.<metal>.
Recycling overrides
data/<namespace>/immersive_smithing/recycling/<name>.json
{ "item": "examplemod:steel_greatsword", "family": "examplemod:steel", "units": 45 }
{ "tag": "examplemod:relics", "recyclable": false }
Use item or tag. With "recyclable": false the items can never be melted down. Items tagged
immersive_smithing:non_recyclable are excluded too.
Recycling values are resolved in this order: exclusions, explicit smithing recipes, recycling overrides, analysis
of the item’s crafting recipe, then Java IRecyclingValueProviders. The value returned is multiplied by
recyclingEfficiency and never exceeds the recognised value.
Coverage decisions
data/<namespace>/immersive_smithing/coverage/<name>.json records how equipment that has no forge recipe is obtained.
It adds and removes nothing: the coverage catalog (/immersivesmithing catalog <modid>) and the GameTests read it so
every item of a mod has one stated route.
{
"conditions": [ { "type": "forge:mod_loaded", "modid": "examplemod" } ],
"mod": "examplemod",
"tested_version": "1.4.2",
"policies": [
{ "items": ["examplemod:crown", "#examplemod:relics"], "disposition": "protected_loot",
"reason": "boss drop; the mod ships no recipe" },
{ "items": ["examplemod:open_helmet"], "disposition": "native_transformation",
"reason": "the open visor of examplemod:closed_helmet", "state_of": "examplemod:closed_helmet" }
]
}
| Field | Notes |
|---|---|
mod, tested_version |
Optional. The catalog shows the version the decisions were checked against. |
items |
Item ids or #tags. An item entry wins over a tag entry; otherwise the first match in file-id order. |
disposition |
native_nonmetal_recipe, native_transformation, native_assembly, protected_loot, non_equipment or disabled_by_upstream (the catalog derives forge_default, forge_auto, material_unavailable, integration_disabled and missing_support itself). COMPATIBILITY.md defines each. |
reason |
Shown in the catalog. |
state_of |
The item is another state of that piece (a visor swapped open or closed). It gets the same recycling value. |
Anvil patterns
data/<namespace>/immersive_smithing/anvil_patterns/<name>.json. The pattern id is the file id.
Since 1.3.0 a pattern is a shape family. Its id chooses the process profile (each profile lists the
patterns it serves) and its categories still classify items. The strike fields below belonged to the replaced anvil
minigame: they are still read, so existing files stay valid, but nothing in play uses them.
{
"targets": [[0.30, 0.70], [0.46, 0.54], [0.62, 0.38], [0.78, 0.22]],
"strikes": 10,
"target_radius": 0.075,
"target_lifetime": 1.8,
"ideal_fraction": 0.6,
"gap": 0.25,
"jitter": 0.03,
"time_multiplier": 1.0,
"categories": ["minecraft:swords"]
}
| Field | Default | Notes |
|---|---|---|
targets |
required |
1 to 64 points [x, y]. Unused since 1.3.0. |
strikes, target_radius, target_lifetime, ideal_fraction, gap, jitter, time_multiplier |
Unused since 1.3.0. |
|
categories |
none |
Item tags; items in them use this pattern before class-based classification. |
Built-in patterns: sword, axe, pickaxe, shovel, hoe, generic_tool, helmet, chestplate, leggings,
boots, shield, generic_weapon, generic_armor, generic_equipment (all in the immersive_smithing namespace).
A missing pattern falls back to immersive_smithing:generic_equipment.
The Spartan Weaponry patterns are named after its weapon types (immersive_smithing:longsword, immersive_smithing:javelin,
immersive_smithing:heavy_crossbow, … plus club and cestus). Their categories are Spartan’s per-type item tags
(spartanweaponry:longswords, …), so add-ons that tag their weapons the same way get the matching pattern.
Epic Fight and Simply Swords weapons use the same weapon-type patterns. Three more patterns, twinblade, warglaive
and chakram, cover the Simply Swords shapes that have no Spartan counterpart. Each weapon-type pattern also lists an
immersive_smithing:<type> item tag in its categories. There are 17 such tags: longswords, greatswords, katanas,
sabers, rapiers, daggers, parrying_daggers, spears, glaives, halberds, scythes, battleaxes,
battle_hammers, cestusae, twinblades, warglaives and chakrams. They hold the Epic Fight and Simply Swords
weapons as optional entries, generated by tools/generate_weapon_compat.py. Another mod or a datapack can add its own
weapons to them:
- An Epic Fight tachi or uchigatana is a
katanasweapon. - A Simply Swords cutlass is a
sabersweapon, and a sai is aparrying_daggersweapon. - A claymore is a
greatswordsweapon, a greataxe abattleaxesweapon and a greathammer abattle_hammersweapon.
Forge patterns
data/<namespace>/immersive_smithing/forge_patterns/<name>.json
Still read so recipes and datapacks that name a forge pattern stay valid. They parameterised the forming-rhythm minigame that 1.3.0 replaced with hands-on heating, and have no effect any more.
{
"base_phases": 3,
"units_per_extra_phase": 24,
"min_phases": 3,
"max_phases": 7,
"zone_half_width": 0.085,
"min_speed": 0.45,
"max_speed": 0.8,
"acceleration": 0.35,
"transition_ms": 450
}
Process profiles
data/<namespace>/immersive_smithing/process_profiles/<name>.json (1.3.0). A process profile is the authoritative
description of how a kind of piece is worked: the operations struck on the anvil, the quench and the components fitted
afterwards. The server scores against it; clients only draw it. A committed job freezes its profile, so a reload never
changes a piece in progress.
{
"schema_version": 1,
"workpiece_profile": "immersive_smithing:straight_blade",
"patterns": ["immersive_smithing:sword", "immersive_smithing:longsword"],
"heat": { "optimal_min": 0.6 },
"operations": [
{ "id": "form_tang", "region": "tang", "kind": "shape", "work": 3, "weight": 1, "face": "front", "area": [0.0, 0.27, -0.5, 0.5] },
{ "id": "draw_blade", "region": "blade", "kind": "draw", "work": 6, "weight": 3, "face": "front", "area": [0.27, 0.85, -0.5, 0.5] },
{ "id": "dress_edge", "region": "edge", "kind": "finish", "work": 3, "weight": 2, "face": "back", "area": [0.27, 1.0, -0.5, 0.5],
"after": ["draw_blade"] }
],
"quench": { "duration_ticks": 60, "immersion_min": 0.7 },
"assembly": [ { "auxiliary_index": 0, "socket": "grip" } ]
}
| Field | Default | Notes |
|---|---|---|
schema_version |
1 |
Must be 1. |
workpiece_profile |
the file id |
The workpiece profile clients draw it with. |
patterns |
none |
Anvil pattern ids this profile serves. A recipe’s process_profile wins over this mapping. |
heat |
none |
Heat bands for these pieces when their metal defines no thermal block (same fields); the metal’s own bands win. |
operations |
required |
1 to 12 operations. The smith works them in any order their after lists allow. |
operations[].id |
required |
1 to 32 characters of a-z, 0-9, _; unique. |
operations[].region |
the id |
Name shown to the smith: operation.immersive_smithing.<region> when translated, otherwise the region with _ as spaces. |
operations[].kind |
required |
draw, spread, punch (rough work: a heavy blow does more), shape, curve, dish, finish. |
operations[].work |
required |
Work to finish it, more than 0 and at most 40. One unit is a normal blow on metal at the top of the workable band; cooler metal does less (about 0.87 at the middle of the default ideal band), a heavy blow on rough work 1.6 times as much. Scaled by the piece’s size relative to an iron sword. |
operations[].weight |
1 |
1 to 100. Its share of the anvil score. |
operations[].face |
any |
front, back or any: the side that must face up (the smith turns the piece over). |
operations[].area |
required |
[u0, u1, v0, v1]: along the piece 0..1 from the grip end, across it -0.5..0.5. A blow inside the area works it; where inside it lands never changes the rules. |
operations[].after |
none |
Ids of earlier operations that must be complete first. |
quench.duration_ticks |
60 |
20 to 200; scaled by trough.quenchTimeMultiplier. |
quench.immersion_min |
0.65 |
0.1 to 1. How deep the lowered piece is drawn in the water (presentation only; the quench rules are the same). |
assembly |
none |
One entry per recipe auxiliary, in order ( auxiliary_index must equal its position): the socket the component is fitted into at the anvil. At most 8. |
Profiles are validated as a whole; a broken file is skipped with its reason in the log and the other profiles still load.
Built-in profiles (namespace immersive_smithing): straight_blade, short_blade, curved_blade, chopping_head,
pick_head, digging_plate, hammer_head, polearm_head, armor_plate, shield_hardware, curved_thrown,
ranged_hardware and generic. Together they serve every built-in anvil pattern. A recipe is resolved in this order: its
own process_profile, the profile listing its anvil pattern, the profile of the pattern its result classifies as, then
generic. /immersivesmithing process writes logs/immersive_smithing_process_report.txt with every recipe’s profile,
how it was chosen and whether its workpiece profile exists.
Workpiece profiles
assets/<namespace>/immersive_smithing/workpiece_profiles/<name>.json (resource pack, 1.3.0). How a kind of piece looks
while it is worked: presentation only, it never changes an operation’s area or rules. The piece is drawn as twelve
segments along its length, each easing from the billet’s size to its target size as the operations over it progress.
{
"billet": { "length": 0.42, "width": 0.12, "thickness": 0.07 },
"length": 0.92,
"width": [[0.0, 0.045], [0.27, 0.14], [0.84, 0.095], [1.0, 0.01]],
"thickness": [[0.0, 0.05], [0.3, 0.026], [1.0, 0.012]],
"curve": [[0.0, 0.0], [1.0, 0.0]],
"lift": [[0.0, 0.0], [1.0, 0.0]],
"dish": 0.0,
"sockets": { "grip": [0.06, 0.0] }
}
Sizes are in blocks. width, thickness, curve (in-plane bend) and lift (vertical rise) are 1 to 32 keyframes
[u, value] in increasing u, interpolated in between. dish (0 to 0.3) cups plates. sockets place the components
named by the process profile’s assembly; unnamed ones spread along the first fifth. A missing or broken file falls back to
a plain bar, so a datapack-only profile still works without art.
Tags
| Tag | Meaning |
|---|---|
immersive_smithing:smithable_equipment |
Always a candidate for automatic detection. |
immersive_smithing:non_smithable_equipment |
Never detected, disabled or given a smithing recipe (explicit recipes included). |
immersive_smithing:smithable_shields |
Shields that may be detected even if not predominantly metal. |
immersive_smithing:non_smithable_shields |
Shields never redirected (contains minecraft:shield). |
immersive_smithing:non_recyclable |
Never melted down. |
immersive_smithing:forge_fuels |
Solid fuels the forge accepts (with a furnace burn time), plus minecraft:lava_bucket. |
immersive_smithing:forge_igniters |
Items that ignite the forge (flint and steel, fire charge). |
immersive_smithing:netherite_fuels |
Heat sources for netherite (lava only). |
immersive_smithing:tongs, immersive_smithing:hammers |
The smithing tools. |
immersive_smithing:quality_eligible |
Equipment the forge never makes that may still carry quality: it is graded as loot and can be refined at the grindstone (Simply Swords’ runic and unique weapons, Epic Knights’ gilded pieces and relics). Never adds a recipe. Entries of a mod whose integration is switched off are ignored. |
immersive_smithing:compat/<integration>/quality_eligible, .../smithable_equipment, .../non_recyclable |
Generated entries of the built-in integrations ( epicknights), included in the tags above. |
immersive_smithing:<weapon type> |
|
immersive_smithing:weapon_scaled_projectiles (entity types) |
Thrown weapons whose damage already comes from the thrown stack’s quality-adjusted attack damage, so efficacy is not applied a second time (Simply Swords’ thrown swords and spears, including those its runic powers and unique weapons throw). |
Automatic detection
With autoDetectEquipment on, each crafting recipe whose result is a single unstackable, damageable weapon, tool,
armor piece or metal shield is analysed. It becomes an automatic smithing recipe
(immersive_smithing:auto/<namespace>/<item>) only if:
- it is exact vanilla shaped or shapeless crafting, or a crafting recipe known to hand the reworked piece’s data to its
result (
botania:armor_upgrade), - every ingredient is entirely one metal family or entirely non-metal,
- one metal family is the main one. When ingredients include the result’s repair material, that material’s family is the main one: a gold weapon with iron-nugget fittings is gold equipment, and the nuggets are components. Fittings of another metal must come to fewer units than the main metal; otherwise the recipe is a true alloy and is skipped. When the repair material is not metal (diamond, leather, bone), the recipe is skipped as “not predominantly metal”, so a diamond weapon with iron fittings is never sold as iron,
- no ingredient is itself damageable equipment, apart from one finished piece (see below),
- the result is not blacklisted (tag, recipe id, mod id, family),
- no explicit recipe exists for the result.
Recipes of any other class or serializer are never converted or disabled; the report lists them as kept. That
includes a subclass of a vanilla recipe and Simply Swords’ smithing_reroll.
Detection reads the recipes as the last datapack load produced them, not the manager it has already rewritten. Every
rebuild (at server start, and after /reload, including the /reload that applies a config change) therefore finds
the same sources and gives the same result, and no original recipe is lost.
Native recipes. With replaceMetalEquipmentRecipes on, a native crafting or smithing-table recipe is disabled only
when a forge recipe replaces that very recipe. That forge recipe is either generated from it or makes the same item
from the same metal (or, for an upgrade, from the addition’s metal). Every other native recipe is kept, and
/immersivesmithing report lists it with the reason.
An ingredient that is itself a shield is dismissed when the result is a shield: a metal shield built on a wooden base
shield costs only its metal, and the base is not required. Everything else is skipped and listed by
/immersivesmithing report. Bows, crossbows, fishing rods and tridents are not candidates unless tagged
immersive_smithing:smithable_equipment.
The following generic upgrade rules do not override curated Epic Knights source policies.
Smithing-table upgrades (minecraft:smithing_transform) whose result is candidate equipment without a smithing
recipe are redirected too, when the addition is a single metal family (for example netherite from any mod). The
template is never required. Under the addition metal’s shape policy the cost is the base item’s shape in that
metal: the base’s own smithing recipe if it has one (units scaled by the addition’s unit value), otherwise its
crafting recipe, where ingredients the base accepts as repair material (or forge:gems/forge:ingots) are the
material slots, other components stay auxiliary and a base shield is dismissed. A finished piece in that recipe counts
with its own shape when that shape is gems or ingots: Epic Fight’s diamond longsword is a diamond sword and two
diamonds, so its netherite upgrade costs four ingots. A leather or cloth piece leaves the base without a metal shape.
Iron’s Spells’ wandering magician boots, for example, are leather boots and arcane essence. Under the addition policy, or
when the base has no metal shape of its own (a loot weapon, a cloth robe), the cost is the addition itself and the
base piece is consumed. The recipe id is immersive_smithing:auto/<namespace>/<item>.
Finished pieces in crafting. A crafting recipe with exactly one finished piece among its ingredients is handled by what it does to that piece:
- Growth. When the forge makes the piece from the same metal the recipe adds, the result grows from the piece. Its forge recipe costs the piece’s own recipe plus the added metal and components. Epic Fight’s iron longsword is an iron sword and two iron ingots: 36 units and a stick. Growth stays within one kind of equipment (one armour slot, shields, mining tools or weapons). A recipe that would turn a pickaxe into boots is skipped and reported.
- Upgrade chain. When the piece is reworked with another metal, the recipe is priced like a smithing-table upgrade (Botania’s terrasteel armour from manasteel armour), and its other components stay auxiliary. The piece must be of the result’s class (same anvil pattern and armour slot) and something the forge already makes; otherwise the recipe is skipped and reported.
- Remake. A recipe that adds no metal only reshapes a finished piece, as when Epic Fight makes a spear from an iron sword and two sticks. The forge gets a recipe that makes the same result from the piece’s own metal plus every component (18 iron units and three sticks for that spear). The native recipe is kept next to it, so an existing piece can still be remade, and the result inherits the piece’s quality. A recipe whose piece has no metal at all (a bone sword given dragon blood) is not the forge’s business and is not reported.
Predominance. A recipe with fewer metal slots than other components and less than one ingot of metal (a helmet
with a single gold nugget) is skipped as “not predominantly metal” unless the result is tagged
immersive_smithing:smithable_equipment.
Built-in mod support
Recipes for other mods live under data/immersive_smithing/recipes/compat/<modid>/ and start with a
forge:mod_loaded condition, so they are inert without that mod. Material definitions for other mods live under
immersive_smithing/materials/compat/<modid>/ with the same condition and give the metal a name, tint, melt rule and
upgrade policy:
| Mod | Families | Notes |
|---|---|---|
Cataclysm |
cataclysm:black_steel, cataclysm:ancient_metal, cataclysm:witherite, cataclysm:cursium, cataclysm:ignitium |
Cataclysm ships no forge:ingots tags, so these are listed item by item. The three boss metals need lava and use the addition policy: an ignitium helmet costs one ingot plus the netherite helmet it reworks. Ignitium and cursium armour is unbreakable, so it is tagged smithable_equipment to count as equipment at all. |
Ice and Fire |
forge:fire_dragonsteel, forge:ice_dragonsteel, forge:lightning_dragonsteel |
Lava only. The ids match the tags Spartan Fire adds, so recipes are the same with or without it. |
Spartan Fire |
recipes under compat/spartanfire/ |
Every dragonsteel weapon of all 24 Spartan types, generated by tools/generate_spartan_compat.py --spartanfire <jar>; follows the integrations.spartanWeaponry toggle. |
Iron’s Spells ‘n Spellbooks |
forge:mithril, forge:pyrium |
Pyrium needs lava and uses addition, so the hellrazor and legionnaire flamberge rework their loot base. The cloth wizard sets are tagged non_smithable_equipment; the netherite mage set is forged. |
Botania |
forge:manasteel, forge:terrasteel, forge:elementium |
Terrasteel uses addition: terrasteel armour costs its three ingots plus the manasteel piece, as in Botania. |
Minecraft Comes Alive |
forge:rose_gold |
Name and tint only. |
Fire Sticks, Lit It Up and Hardcore Torches fire starters ignite the forge (forge_igniters), and #forge:coal_coke
is a forge fuel. Ars Nouveau robes, Ice and Fire sheep armour and elytra-like items are tagged non-smithable.
Spartan Weaponry: every metal weapon of all 24 types (melee, throwing weapons, longbows, heavy crossbows) in copper,
gold, iron and netherite, and in tin, bronze, steel, silver, electrum, lead, nickel, invar, constantan, platinum and
aluminum when another mod supplies those ingots. Costs and components mirror Spartan’s own recipes; netherite
weapons use the diamond shape in netherite. The studded club and cestus cost 9 iron units and no base weapon.
Spartan’s type_disabled config conditions are honoured. Arrows and bolts are not smithed. The server config option
integrations.spartanWeaponry (default true) turns these recipes off; Spartan Weaponry is then handled by automatic
detection like any other mod.
Quality reaches projectiles: a thrown Spartan Weaponry weapon’s base damage is multiplied by its efficacy, and any arrow or bolt by the efficacy of the bow or crossbow that fired it.
Epic Fight, Epic Knights and Simply Swords
All integrations are optional. Common classes never eagerly link absent addons. Reviewed version-gated mixins
handle native visor, hitscan and projectile boundaries; conditional data handles recipe mappings. Unsupported
versions are reported rather than silently claimed as tested. The server options integrations.epicFight,
integrations.epicKnights (with integrations.epicKnightsDisabledAddons for single add-ons) and
integrations.simplySwords (default true) switch each one off. The mod’s recipes are then left exactly as it ships
them, nothing of it is forged, and its quality_eligible entries are ignored. Pieces that already carry quality keep
it.
- Epic Fight and Epic Knights are curated. Data under
recipes/compat/<modid>/is generated from pinned jars bytools/generate_epic_compat.py. Epic Knights policy templates resolve the currently loaded native sources at reload, producing separate recipes with exactreplacesIDs, complete inputs and rational costs. Epic Fight retains its established bundled recipes. Automatic detection never runs on their items, so a piece the bundled data does not cover keeps its native recipe and shows asmissing_supportin the catalog. Everything else (wooden and diamond pieces, gilding and other transformations, visor states, firearms, relics) has a coverage decision. Epic Fight’s uchigatana gets a forge recipe and the bokken a crafting recipe, because Epic Fight ships neither. Costs, versions and upstream issues: COMPATIBILITY.md. - Simply Swords is found by automatic detection: metal weapons are forged on their weapon-type patterns; runic upgrades, rerolls and unique weapons keep their native recipes or stay loot.
- Quality. Quality lives in the item’s attribute modifiers, so it applies exactly once:
- in Epic Fight’s vanilla and battle modes, in the main hand and the off hand (Epic Fight swaps the hands’ modifiers for an off-hand strike), Epic Knights weapons included;
- to Simply Swords’ attack-scaled abilities, which read the wielder’s attack damage;
- to Simply Swords’ thrown weapons, which are tagged
weapon_scaled_projectiles.
- Loot. Pieces the forge does not make but which may carry quality are tagged
quality_eligible: Simply Swords’ runic weapons and uniques, and Epic Knights’ metal transformations, visor states and relics. - Recycling. Runic weapons recycle for the netherite weapon they were made from. A transformed Epic Knights piece
(gilded, darkened) recycles like its base piece, and a visor state like its helmet (coverage
state_of). Epic Knights’ integral metal components melt for their verified active-recipe content; fractional/ambiguous components do not. Simply Swords’ uniques and the Seven Kingdoms’ relics are taggednon_recyclable. To let a pack melt them, replace that tag in a datapack ("replace": true) with only the entries the pack still wants, and give each piece a recycling override with its metal content. - Inventory. The fixtures under
compatibility/inventory/<profile>/record every registered item of the tested versions: its route, forge recipe, cost, pattern and components, quality and recycling. The coverage GameTests compare the live game with them, and/immersivesmithing catalog <modid>writes the same audit for the running game.
When replaceMetalEquipmentRecipes is on and allowVanillaCraftingAlongsideSmithing is off, crafting recipes
with validated exact replacement source IDs are removed at reload, including supported smithing-table upgrades
when suppressSmithingTableUpgrades permits it. Sharing an output item is not enough to suppress another route. Armor trim recipes are never touched. Changing these options needs a /reload.
Loot quality
A global loot modifier (immersive_smithing:forged_loot) grades equipment that comes out of loot tables (chests,
mob loot tables, treasure bags) when it carries no quality yet and the forge has a smithing recipe for it or it is
tagged immersive_smithing:quality_eligible. Server
config lootQuality.mode: OFF, STANDARD (default: both scores between 35 and 69, so Fine and Masterwork are
always someone’s work) or RANDOM (the villager distribution). lootQuality.excludedLootTables lists table ids or
whole namespaces that stay ungraded. Equipment a mob drops from its own hands is not loot-table output and stays
ungraded.
Quality inheritance
When a crafting recipe consumes exactly one graded piece and produces other equipment without a quality of its own
(dyeing, an elemental upgrade of a dragonbone sword, a sword made into a spear), the result keeps the quality, the
maker’s mark, the title and the inscription (inheritQualityOnCraft, default on). The crafting grid’s preview already
shows the inherited quality, so the piece you see is the piece you take. Smithing-table upgrades and rerolls carry the
piece’s whole data natively and do not depend on this option.
Grindstone
The Smith’s Grindstone refines a graded piece. A piece without a grade starts from Standard (both scores 50) if the
forge makes it or it is tagged quality_eligible. That starting grade is written only together with a paid
refinement, so looking at the price changes nothing.
Since 1.3.0 refinement is visible work: the piece rests at the wheel (use the grindstone with it), the smith picks the
aspect (durability or efficacy, shown with its exact step and price) and holds its edge to the turning wheel for
grindstone.passTicks (default 40 ticks). The levels are taken and the score written together when a pass completes, after
the piece, the score and the price are checked again; an interrupted pass costs and gives nothing. Step, cost formula, cap
and the Faulty restriction are unchanged. The piece on the rest belongs to the workshop like a chest’s contents.
Jade shows the server’s per-player refinement quote, including cost modifiers. Quotes refresh while looking at the station and are matched to the dimension, station and piece; a pending or stale quote never falls back to the unmodified price. The current wire format is network protocol 9 on both sides.
Item data
Finished items keep quality and the maker’s mark in the immersive_smithing compound of the stack’s tag:
immersive_smithing: { Version: 1, Forged: 1b, ForgeScore: 94, AnvilScore: 82, Faulty: 0b, Quality: "fine", DurabilityCarry: 0.4d,
SmithName: "Otectus", SmithUUID: [I; ...], Signed: 1b }
Newly quenched pieces also store RecyclingFamily and RecyclingUnits in this compound: the material and units
actually charged by the forge. Recycling takes the smaller of this amount and the normal recipe/provider value,
then applies recycling efficiency. Old pieces without these fields keep their existing recycling value because
their original paid cost is unknown. A mismatched recorded material cannot be recycled as a different metal.
Crafting repairs and remakes preserve the known input metal even with quality inheritance disabled; native
smithing-table recipes copy the fields with the base’s tag. Reforging writes a new paid amount at the quench.
SmithName and SmithUUID are written when the piece is completed (at the quench, or when its last component is fitted). Cosmetic transformations preserve them; a structural
forge upgrade writes the completing smith and resets the signature flag. A signed piece stores its title as the
vanilla display.Name (non-italic, in the quality colour) and its inscription as display.Lore, so every tooltip
mod shows them. Only the smith named in the mark can sign, by sneak-using the Smith’s Anvil with the finished piece (with
signing.openAfterQuench the screen also opens when the piece is collected); Faulty work is never signed. The server sanitises titles and
inscriptions (formatting codes and control characters are stripped, lengths capped by the signing config).
A stack without this compound behaves exactly like Standard quality. Tongs and Hot Workpiece items carry
immersive_smithing.HeldWorkpiece with Version, TargetStack, RecipeId, MaterialFamily, MetalUnits,
RecoverableUnits, ForgeScore, AnvilScore, Faulty, State (FORGED or SHAPED, the old two-state view, still
written), AnvilPattern and, from schema version 3 (1.3.0), Process: the piece’s work in progress (id, revision, stage
BILLET/SHAPING/SHAPED/QUENCHING/COOLED/FITTING, the frozen process profile and heat bands, per-zone Heat
and the holder clock it was last written at, heat preparation, per-operation work, quality and marks, the face up,
quench progress and control, and component sockets with their stacks). The same record is stored by the anvil, the
forge’s reheat rest and the trough.
Schema version 2 separated recovery from the charged MetalUnits; version 1 without RecoverableUnits defaults to its
saved paid units, capped against current recipe content on melting. Version 1 and 2 pieces are migrated when read: a
FORGED piece keeps its forge score and is shaped again on the new anvil; a SHAPED one keeps both scores and only needs
its quench; neither is charged for components again, and each gets a deterministic id from its saved data. A record that
cannot be read (a missing mod’s item, a future version) is kept unchanged as raw data in whatever holds it and reported,
never deleted. The target stack retains its full supported NBT.
Hands-on work and protocol
Since 1.3.0 the forge, anvil, trough and grindstone are worked in the world. Clients send intents only
(WorkActionPacket: station position and instance, action, a strictly growing sequence number, target part, a point on
the piece and flags); the server checks, in order, a known action, finite numbers, a loaded station of a known kind and the
exact instance the client aimed at, a living smith within minigames.maxStationDistance of the real eyes and with line
of sight, the station’s lease (one writer per station, permission checked when taken through the ordinary block-use hook,
so claim and protection mods apply), the sequence number and a per-smith action budget. Each station then validates tools,
the piece and timing itself and scores the result. Nothing a client sends carries a score, a heat, a quality or an item.
A lease ends after work.leaseIdleSeconds without an action, on death, logout, a dimension change, moving out of reach,
taking damage while focused, or when the station is removed; an idle World-view hold can be taken over after three seconds.
A committed forge job belongs to its smith for work.jobPrioritySeconds after their last action on it; after that anyone in
the workshop may work, draw or cancel it (a non-owner’s cancel drops the escrow at the forge). Work keeps its own clock per
holder: a station’s piece changes only while its chunk is loaded, a piece in tongs cools as the item ticks, and nothing
changes offline or unloaded. Network protocol is 9 (1.3.2: the work view’s FOCUS, RELEASE and FocusPacket);
clients and servers of other versions refuse each other at login.
What the server tells clients is presentation only, never a score, an item or a permission:
WorkEventPacket: one per accepted outcome (work/WorkEvents: strike, refused, pump, turn, draw, place, take, flip, fit, complete, lower, lift, grind, stamp, recycle, commit, cancel, collect, shaped, refined), sent to the players tracking the station. It carries its identity (dimension, station position and instance, a serial unique for the server’s run), the smith (entity id and UUID) and the hand used, the client’s sequence number when it answers an intent, a station-local point, a strength, a small data field, a key of the piece or job, and the game time. Decoding is bounded; a client shows each event once, waits up to a second for a station or smith it has not loaded yet, and drops stale events.SmithPosePacket: a smith’s hold on a station (taken, moved, released), to the players tracking the smith and to a player who starts tracking them, so someone arriving mid-work sees the current hold without a replay of old blows.FocusPacket: the answer to a smith’sFOCUS(open or closed, and the station), and the end of a work view the server ended (closed), to that smith only (below).KnowledgePacket: the server’s reference for the Smithing Guide (process profiles, the pattern-to-profile map, material families with heat bands, fuel rules and example sources), at login, after a datapack reload and after/immersivesmithing reload. Bounded in size.
The work view
Since 1.3.2 the focused work view is Smithing’s own again (1.3.1 built it on Diegesis, which Smithing no longer uses). The client draws it and the server holds the station for the smith:
- The client asks with the action
FOCUS(aWorkActionPacketat the station, with its instance). The server checks a loaded station of a known kind and the exact instance the client saw (else “That station was replaced.”), then a living smith who is not a spectator, withinminigames.maxStationDistanceof the real eyes and with line of sight, one smith a station (another smith’s idle World-view hold makes way) and protection (the ordinary block-use hook, so claim and protection mods apply), and tells a smith it refuses why. Admitted, the smith’s lease there becomes focused andFocusPacketanswers open; refused, it answers closed and the camera never moves. - While the view is open the client repeats
FOCUSevery two seconds, which keeps the lease from idling out.FOCUSat another station goes over to it: the station left is free at once, and a refusal there ends the view. RELEASEleaves. A focused lease the server ends (damage, death, a dimension change, out of reach, the station removed, or idle) sendsFocusPacketclosed, with the reason where there is one (idle has none); a smith who logs out just loses the lease.- A client asks only from its own use of the block: a use that asks for hands-on work in Cinematic mode, or the Work at station key, which never uses the block. A mod that takes the click first keeps it, and no view opens. World view never asks.
The camera is placed at the end of Camera.setup (mixin/client/CameraMixin, optional: where another camera mod keeps it
from running, the view ends within a few frames and says so, and until the world is left no view is asked for). The
player’s body, its collision and every server check stay where the player stands. Wherever no view can be had, a use of
the station goes on as in World view.
Scenes are client resources, assets/immersive_smithing/work_views/<station>.json for smiths_forge, smiths_anvil,
smiths_trough and smiths_grindstone (work/WorkViewScene reads them). Points are [x, y, z] in the station’s pixels,
0 to 16 across the block with its model facing north (front at z = 0), turned with the block’s facing; the client option
camera.side = LEFT mirrors the shots across the middle.
| Field | Required | Meaning |
|---|---|---|
camera.position, camera.target |
yes |
Where the camera stands and the point it looks at (not the same point). |
transition |
no |
Seconds of the flight in and back, 0 to 10 (default 0.4). |
glances.<id> |
no |
A close-up: position, target and time (0 to 10, default 0.45). The anvil’s fitting is used while components are fitted. |
neighbors.range, neighbors.time |
no |
How far each way a station beside it is looked for, 0 to 6 blocks (default 3), and the seconds of the flight over, 0 to 5 (default 0.45). |
item_zone.from, item_zone.to |
no |
Opposite corners of the box where pointing at the item the station’s renderer draws (the finished piece, the piece at the wheel, the pinned drawing) shows its tooltip. Without it, none. |
Unknown fields are ignored. Times are divided by the client’s camera.transitionSpeed; a speed of 0 or reduced motion
makes every flight a cut. A malformed file is refused, the game log naming the field, and a station whose scene is missing
or refused opens no view and says so; it is worked in World view. Where the camera would stand in a block or not see the
work, it comes closer along its line of sight, at most to 30% of the way; with no room even there the view does not open
and says so. Players and mobs between the camera and the work are not drawn while it is open. Scenes change presentation
only; nothing in them widens what the server accepts.
The Smithing Guide (Patchouli)
The guide is the Patchouli book immersive_smithing:smithing_guide (Patchouli is required on both sides). The book’s
data is data/immersive_smithing/patchouli_books/smithing_guide/book.json; its contents are resources
(use_resource_pack), translated per language (i18n): assets/immersive_smithing/patchouli_books/smithing_guide/<lang>/
holds categories/, entries/<category>/<entry>.json and templates/. A resource pack can change any entry, add
entries to a category ("category": "immersive_smithing:<category>") or add a category; the categories are
first_workshop, forge, anvil, finished, materials, atlas and help. The book is generated from
tools/guide/content.py by tools/generate_guide.py; edit the source, not the JSON.
Other mods open it with Patchouli’s API: PatchouliAPI.get().openBookEntry(new ResourceLocation("immersive_smithing", "smithing_guide"), entry, page). Entry ids are stable: the 25 chapters of the 1.3.0 guide map to entries in
guide/GuideData.ENTRIES (chapter numbers stay valid: ClientHooks.openGuide(n)), and help links name pages by their
anchor, never by number (client/guide/HelpTopics, checked by the generator and the client pack test).
Live page types (each a template of the same name; the values are page JSON fields):
| Type | Fields | Shows |
|---|---|---|
immersive_smithing:recipe_card |
item, optionally recipe (one recipe id) |
the server’s smithing routes to the item, cycling: metal, components, process, what it replaces |
immersive_smithing:material_card |
family |
the family’s sources in units, fuel rule, heat bands |
immersive_smithing:process_card |
profile (an id, or selected) |
the parts, faces and order of a process |
immersive_smithing:process_examples |
profile (an id, or selected) |
fittings and quench, and the items made this way |
immersive_smithing:process_browser |
title |
every process on the server, one at a time, with its demonstration |
immersive_smithing:quality_card |
aspect: effects, refinement or all |
the score multipliers, grades, refinement step and price |
immersive_smithing:live_facts |
topic, title |
settings of forge, trough, tools, work, automation, signing, casting, integrations |
immersive_smithing:controls_card |
view, title |
the player’s own key bindings: work, work_more, world, world_more |
immersive_smithing:tag_strip |
tag, label, text |
the items of an item tag, cycling |
immersive_smithing:watch |
lesson, entry, text |
a button that opens the lesson and comes back to this page |
Every card draws only what fits its page. Recipe, tag and process-list cards show only the server’s own data; the material, process, quality and settings cards say “This server”, or “Example” while they show the mod’s bundled data because the server’s has not arrived. A card that cannot draw explains itself instead of breaking the page.
Demonstrations (Ponder)
The demonstrations are Ponder scenes (Ponder 1.0.91, optional and client-only; players get it with Create, and without it
the guide’s Watch buttons are off): one per lesson in
guide/Lessons, with the scene id immersive_smithing:<lesson>. They are listed under their items (stations, every tier
of tongs and hammers, the hot workpiece, the guide) and in six topic tags (immersive_smithing:first_workshop, forge,
shaping, quenching_and_fitting, refinement, recovery). Each lesson also has a tag
immersive_smithing:lesson/<lesson> that is in no index: PonderUI.of(item, tag) with it opens the item’s scenes at
that lesson, which is how the guide and the help key open one (client/compat/ponder/PonderNavigation). Scene text is in
the lang files under immersive_smithing.ponder.; the benches are assets/immersive_smithing/ponder/<bench>.nbt
(generated by tools/generate_ponder_structures.py).
The Process Atlas has a lesson for each bundled process (atlas_<profile>). A datapack’s own process has no lesson of
its own: the guide lists it with its live card in the Atlas (process_browser), and it is taught by the general anvil
lesson unless a resource pack maps it to a lesson that does fit, with
assets/<namespace>/immersive_smithing/lessons/<name>.json:
{ "lesson": "atlas_polearm_head", "profiles": ["mymod:spear_head", "mymod:trident_head"] }
lesson is a lesson id (guide/Lessons); mapping a bundled process, or naming an unknown lesson, is ignored with a
warning. The mapping changes which demonstration help and the browser offer; nothing about the work.
Events
com.otectus.immersivesmithing.api.event.ItemSmithedEvent is posted on the Forge bus (server side, not cancellable)
once per finished piece, when it is completed: at the trough as it is lifted from a correct quench (pieces without
components, and pieces forged before 1.3.0), or at the anvil when its last component is fitted. Quality and the maker’s
mark are already written and the piece has not reached its output or the inventory. It carries the smith, the live result
stack (changes stay on the item), the QualityData, the smithing recipe id, the material family, the units consumed, the
trough position (getTroughPos) and, since 1.3.0, where it was completed (getCompletedAt: TROUGH or ANVIL, and
getCompletionPos). Timing changed in 1.3.0 for pieces with components: after fitting instead of at the quench.
Refinement and signing never post it again. KubeJS scripts can subscribe with
ForgeEvents.onEvent('com.otectus.immersivesmithing.api.event.ItemSmithedEvent', ...). With
integrations.fireVanillaCraftEvent (default on) the vanilla PlayerEvent.ItemCraftedEvent is fired too, with a
one-slot container, so mods that reward crafting see forged items.
Java API
com.otectus.immersivesmithing.api.ImmersiveSmithingAPI. Register during FMLCommonSetupEvent, or send an IMC message to
immersive_smithing whose payload is a Supplier of the interface.
| Interface | IMC method | Purpose |
|---|---|---|
ISmithingMaterialProvider |
material_provider |
Adds material definitions, resolved like datapack files. |
ISmithingRecipeProvider |
recipe_provider |
Adds smithing recipes; they rank with explicit recipes. |
ISmithingEfficacyHandler |
efficacy_handler |
Replaces the default attribute and mining-speed changes for items it claims. |
IShieldSmithingHandler |
shield_handler |
Applies efficacy to shields (neutral by default). |
IEquipmentClassifier |
equipment_classifier |
Chooses the anvil pattern for an item. |
IRecyclingValueProvider |
recycling_provider |
Supplies metal content when nothing else does. |
Predicate<ItemStack> |
exclusion |
Excludes items from detection, suppression, recycling and quality. |
IMeltVeto |
melt_veto |
Refuses an item at the Smith’s Forge (hand and automation) with a player-facing reason, for items whose other data melting would destroy. |
ISmithingRecipeGate |
recipe_gate |
1.1.0. Refuses a recipe to a smith with a reason: the Forge screen leaves it out (and shows the first reason when nothing is left), and the selection is refused again before any metal or auxiliary is taken. For progression mods that gate the making of gear. |
ISmithingCostModifier |
cost_modifier |
1.1.0. Adjusts the metal units the forge charges (never below one, never above the recipe’s own; the work keeps the recipe’s own size) and the experience levels a Smith’s Grindstone refinement costs (never below zero). |
ISmithingAssistSource |
assist_source |
1.1.0. Per-player assistance ( SmithingStation). Answers multiply, clamped to 1.0..minigames.maxAssistTimeMultiplier. Since 1.3.0 the ANVIL answer divides the hammer’s recovery time between blows (never below four ticks); FORGE is not asked. Applied by the server; nothing is sent to clients. |
InterModComms.sendTo("immersive_smithing", ImmersiveSmithingAPI.IMC_CLASSIFIER,
() -> (IEquipmentClassifier) stack -> stack.is(MY_GLAIVES) ? new ResourceLocation("immersive_smithing", "generic_weapon") : null);
Commands
Operators (permission level 2):
/immersivesmithing reload– full datapack reload./immersivesmithing config– active server config mode (WORLDorSHARED) and file path./immersivesmithing material <item>– family, units and the rule that matched, or the recycling value./immersivesmithing recipe <item>– smithing recipes for the item and the conventional recipes they disabled./immersivesmithing quality– quality and multipliers of the held item./immersivesmithing report– writeslogs/immersive_smithing_report.txtwith every detection decision./immersivesmithing session– open pattern books and every smith’s hold (lease) on a station./immersivesmithing process– writeslogs/immersive_smithing_process_report.txt: each recipe’s process profile, how it was chosen, and whether its workpiece profile exists./immersivesmithing catalog <modid>– writeslogs/immersive_smithing_catalog_<modid>.json, covering every piece of equipment the mod registers: its anvil shape, its forge recipes, what happened to each native recipe, whether it carries quality and what it recycles for.