Smithborn: Trades

Unlisted
Smithborn addon: villagers reroll gear stats, vaults, strongholds and mobs carry rolled gear, and the grindstone salvages materials.
An Expert Weaponsmith's extra trade: any sword or axe and 8 emeralds, and it comes back with all new stats.

An Expert Weaponsmith's extra trade: any sword or axe and 8 emeralds, and it comes back with all new stats.

Description

Smithborn: Trades

An addon for Smithborn that brings rolled gear into the world's economy: villagers reroll your gear, chests and mobs carry rolled gear, and the grindstone gives back materials.

It needs Smithborn (1.10.3 or newer) and Fabric API.

Smithborn: Trades on the wiki: every feature and number, with animated previews.

Features

Villager reroll

Every Expert (level 4) Weaponsmith and Armorer gets one more trade, on top of vanilla's:

Villager Give it Plus You get
Weaponsmith Any sword or axe 8 emeralds The same item with all new stats
Armorer Any piece of armor 8 emeralds The same item with all new stats
  • It works like a Reforging Table reforge with nothing locked: every stat rerolls.
  • Gear with no stats yet gets its first roll.
  • 3 uses per restock, like other villager trades.
  • The result shows before you take it. Putting the same item back shows the same result, so there are no free peeks at other rolls.
  • The offer's tooltip says what it takes: "Reroll: any sword or axe and 8 emeralds; it comes back with all new stats".

Loot gear

Trial Chamber vaults and stronghold chests can hold a piece of gear that already has Smithborn stats, always Fine or better, sometimes a Masterwork. Nobody knows who made it, so a found Masterwork has no "Crafted by".

Where Chance of a rolled piece What it can be Chance it's a Masterwork
Trial Chamber vault 25% Iron sword, axe, helmet, chestplate, leggings or boots, or (rarely) a diamond sword 15%
Ominous Trial Chamber vault 40% Diamond sword, axe, helmet, chestplate, leggings or boots 30%
Stronghold corridor and crossing chests 15% The same gear as a Trial Chamber vault 10%

Swords come up a bit more often than the other pieces.

Mob gear

When a zombie or skeleton (and their kinds, such as husks and strays) enters the world wearing armor, that armor gets Smithborn stats, at most Fine (never a Masterwork). Mobs wear armor as often as in vanilla, and it drops as often as vanilla mob armor does. Armor that already has stats is left alone.

Salvage

Put one piece of gear alone in a grindstone, with no enchantments on it, and the grindstone gives back about a quarter of its materials (at least one).

Gear Made from You get back
Sword 2 1
Axe 3 1
Pickaxe 3 1
Shovel 1 1
Hoe 2 1
Helmet 5 1
Chestplate 8 2
Leggings 7 2
Boots 4 1
  • You get the material that repairs the gear: iron ingots for iron gear, diamonds for diamond gear, and so on.
  • Netherite gear always gives 1 Netherite Scrap.
  • Smithborn: Metals gear gives that metal's shards.
  • Enchanted gear still gets vanilla's grindstone (it takes the enchantments off and gives experience), so you never lose enchantments by mistake.

Settings

Everything is in Smithborn's settings file, config/smithborn.json, in the "trades" block (it is added the first time the server starts with Trades). Run /reload after editing: the server reads it again and sends it to every player.

Key Default What it does
villager_reroll.enabled true Expert Weaponsmiths and Armorers offer the reroll
villager_reroll.cost_emeralds 8 Its price (1 to 64)
villager_reroll.uses 3 Rerolls per restock (1 to 99)
loot_gear.enabled true Rolled gear in Trial Chamber vaults and stronghold chests
loot_gear.vault.chance / masterwork_chance 0.25 / 0.15 Trial Chamber vault
loot_gear.ominous_vault.chance / masterwork_chance 0.4 / 0.3 Ominous vault
loot_gear.stronghold.chance / masterwork_chance 0.15 / 0.1 Stronghold corridor and crossing chests
mob_gear.enabled true Zombies' and skeletons' armor rolls stats
mob_gear.best_tier fine The best tier mob armor can have: crude, standard, fine or masterwork
salvage.enabled true One unenchanted piece alone in the grindstone gives back materials
salvage.share 0.25 How much of the materials come back (0 to 1, always at least one)

Every number is a setting too (since 1.2.0):

  • Villager reroll: villager_level (4), currency (minecraft:emerald), villager_xp (15), reputation_discount (0.05), allow_locks (off; on, a reroll keeps the item's best stat), and who sells it: weaponsmith, armorer (both on).
  • Loot gear: min_tier (fine), count (1 piece), max_tries (500), what each place's gear can be (vault.items and ominous_vault.items: item ids with their weights; strongholds use the vault's) and which chests are the stronghold's (stronghold.loot_tables).
  • Mob gear: which mobs wear rolled armor (mobs: entity ids and # tags, #minecraft:zombies and #minecraft:skeletons by default) and max_tries (32).
  • Salvage: the units of each kind of gear (the table above), min_return (1), netherite_scrap (1) and allow_enchanted (off).

With the defaults everything plays as described above.

Works with other Smithborn addons

  • Smithborn: Metals: its gear can be rerolled by the villagers and salvaged at the grindstone (it gives back that metal's shards).

Requirements

  • Minecraft 26.1.2
  • Fabric Loader 0.19.5 or newer
  • Fabric API
  • Smithborn 1.10.3 or newer
  • Needed on both the server and the players' games.

Smithborn: Trades Team

profile avatar
  • 2
    Projects
  • 13
    Downloads

Hello :>