From Dark and Darker Wiki

< Module:Craft

This is the documentation page for Module:Craft

Overview

Functions for making Crafting table. Data comes from Data:Merchant.json.

Functions

draw_table

Creates a table of craftables

  • merchant - Merchant of interest.
  • item - Singular item for which to create a table.
  • ingredient - Ingredient name. Used to filter the provided merchant's crafts for those which use the ingredient.

{{#invoke:Craft|draw_table|item=Void Blade|merchant=Weaponsmith}}
NameIngredientsMerchant
Longsword.png1
Dark Matter.png1
Gold Ingot.png3
Gold Coin.png50



{{#invoke:Craft|draw_table|merchant=Weaponsmith|ingredient=Iron Ingot}}
NameIngredientsMerchant
Coral Fragment.png2
Iron Ingot.png1
Iron Ingot.png1
Iron Ingot.png2
Iron Ingot.png1
Iron Ingot.png1
Iron Ingot.png1
Bavin.png2
Longsword.png1
Spectral Hilt.png1
Cobalt Ingot.png3
Iron Ingot.png3
Gold Coin.png50
Iron Ingot.png2
Iron Ingot.png1



{{#invoke:Craft|draw_table|merchant=Weaponsmith}}
NameIngredientsMerchant
Coral Fragment.png2
Iron Ingot.png1
Sterling Axe.png1
Silver Ingot.png1
Iron Ingot.png1
Sterling Blade.png1
Silver Ingot.png1
Club.png1
Cyclops's Club.png1
Grave Essence.png1
Bone.png3
Gold Coin.png50
Sterling Bow.png1
Silver Ingot.png1
Recurve Bow.png1
Centaur Horn.png1
Bowstring.png5
Gold Coin.png50
Cobalt Ore.png3
Copper Ore.png3
Crystal Ball.png1
Cyclops Eye.png1
Grave Essence.png3
Gold Coin.png50
Sterling Dagger.png1
Silver Ingot.png1
Rapier.png1
Demon Blood.png1
Bone.png2
Gold Ingot.png3
Gold Coin.png50
Axe of Righteousness.png1
Silver Ingot.png2
Blade of Righteousness.png1
Silver Ingot.png2
Bow of Righteousness.png1
Silver Ingot.png2
Dagger of Righteousness.png1
Silver Ingot.png2
Rod of Righteousness.png1
Silver Ingot.png2
Short Sword of Righteousness.png1
Silver Ingot.png2
Staff of Righteousness.png1
Silver Ingot.png2
Falchion.png1
Token of Honor.png1
Rusty Broken Sword.png2
Gold Ingot.png3
Gold Coin.png50
Iron Ingot.png2
Crystal Sword.png1
Froststone Ingot.png1
Lantern Shield.png1
Froststone Ingot.png1
Spear.png1
Froststone Ingot.png1
War Maul.png1
Froststone Ingot.png1
Froststone Ore.png3
Gold Ore.png3
Felling Axe.png1
Gold Ingot.png2
Spellbook.png1
Gold Ingot.png1
Viking Sword.png1
Gold Ingot.png2
Zweihander.png1
Warlord's Broken Sword Blade.png1
Rubysilver Ingot.png2
Silver Ingot.png2
Gold Coin.png50
Iron Ingot.png1
Castillon Dagger.png1
Frost Wyvern's Claws.png1
Froststone Ingot.png2
Gold Coin.png50
Iron Ore.png3
Flanged Mace.png1
Firefly's Abdomen.png1
Broken Skull.png3
Gold Ingot.png3
Gold Coin.png50
Iron Ingot.png1
Crystal Ball.png1
Captured Mana Flakes.png1
Intact Skull.png2
Gold Coin.png50
Bardiche.png1
Obsidian Ingot.png2
Cutlass.png1
Obsidian Ingot.png1
Obsidian Ore.png3
Morning Star.png1
Obsidian Ingot.png1
Stiletto Dagger.png1
Obsidian Ingot.png1
War Hammer.png1
Obsidian Ingot.png1
Iron Ingot.png1
Bavin.png2
Spellbook.png1
Banshee Sonnet.png1
Broken Skull.png3
Intact Skull.png6
Gold Coin.png50
Sterling Rod.png1
Silver Ingot.png1
Halberd.png1
Rubysilver Ingot.png2
Rubysilver Ore.png3
Sterling Short Sword.png1
Silver Ingot.png1
Silver Coin.png60
Crystal Sword.png1
Ghostly Essence.png1
Rubysilver Ingot.png3
Grave Essence.png3
Gold Coin.png50
Spear.png1
Rotten Fluids.png2
Moldy Bread.png5
Gold Ingot.png3
Gold Coin.png50
Longsword.png1
Spectral Hilt.png1
Cobalt Ingot.png3
Iron Ingot.png3
Gold Coin.png50
Wendigo's Antler Fragment.png1
Mimic Tongue.png1
Maggots.png3
Gold Coin.png50
Sterling Staff.png1
Silver Ingot.png1
Silver Powder.png1
Silver Powder.png1
Silver Powder.png1
Silver Powder.png1
Silver Powder.png1
Silver Powder.png1
Silver Powder.png1
Iron Ingot.png2
Crystal Ball.png1
Tidestone Ingot.png1
Falchion.png1
Tidestone Ingot.png1
Kris Dagger.png1
Tidestone Ingot.png1
Tidestone Ore.png3
Spellbook.png1
Volcanic Ash.png1
Demon Blood.png1
Gold Coin.png50
Iron Ingot.png1
Troll's Club.png1
Wolf Claw.png5
Bone.png2
Gold Coin.png50
Longsword.png1
Dark Matter.png1
Gold Ingot.png3
Gold Coin.png50

page

Creates, if possible, two tables. The first presents recipes for if the given item is craftable. The second presents recipes that use the item to create other items.

  • item - Singular item for which to create a table.
  • category - Item's item category. Used to lookup merchant crafting presence.

{{#invoke:Craft|page|item=Void Blade|category=Weapon}}

Craftable

Void Blade is craftable with the following crafting recipes.
NameIngredientsMerchant
Longsword.png1
Dark Matter.png1
Gold Ingot.png3
Gold Coin.png50



{{#invoke:Craft|page|category=Misc|item=Iron Ingot}}

Craftable

Iron Ingot is craftable with the following crafting recipes.
NameIngredientsMerchant
Iron Ore.png3
Iron Ore.png3

Ingredient

Iron Ingot is used in the following crafting recipes.
NameIngredientsMerchant
Heavy Gauntlets.png1
Dog Collar.png1
Bat Claw.png3
Iron Ingot.png3
Gold Coin.png50
Coral Fragment.png2
Iron Ingot.png1
Iron Ingot.png1
Iron Ingot.png2
Iron Ingot.png1
Iron Ingot.png1
Iron Ingot.png1
Bavin.png2
Longsword.png1
Spectral Hilt.png1
Cobalt Ingot.png3
Iron Ingot.png3
Gold Coin.png50
Iron Ingot.png2
Iron Ingot.png1
Iron Ingot.png1
Bavin.png2



{{#invoke:Craft|page|category=Misc|item=Iron Ore}}

Ingredient

Iron Ore is used in the following crafting recipes.
NameIngredientsMerchant
Iron Ore.png2
Iron Ore.png3
Iron Ore.png3