Uploaded July 2025 | Updated September 2026, 3 hours ago
Learn how to create a Dwarf Fortress mod that uses the Lua procedural generation API. This is a tutorial by DPh Kraken (patreon.com/c/DPhKraken) for experienced modders.
0:00 Introduction
0:35 Adding init.lua
0:57 Registering Raws with do_once
1:56 Pre-scripted Raws from a Table
2:38 Random Generation
3:21 generate_from_list
4:23 Custom Divine Metals
5:33 Conclusion
Links:
Text guide: dwarffortresswiki.org/index.php/Lua_scripting
Copiable scripts: dwarffortresswiki.org/index.php/Lua_script_examples
Example secret: github.com/Putnam3145/Putnam-Mini-Mods/blob/master/Secrets%20and%20Curses/objects/interaction_secret_putnamagic.txt
Join the Kitfox Discord server: discord.gg/kitfoxgames
Learn how to create a Dwarf Fortress mod that uses the Lua procedural generation API. This is a tutorial by DPh Kraken (patreon.com/c/DPhKraken) for experienced modders.
0:00 Introduction
0:35 Adding init.lua
0:57 Registering Raws with do_once
1:56 Pre-scripted Raws from a Table
2:38 Random Generation
3:21 generate_from_list
4:23 Custom Divine Metals
5:33 Conclusion
Links:
Text guide: dwarffortresswiki.org/index.php/Lua_scripting
Copiable scripts: dwarffortresswiki.org/index.php/Lua_script_examples
Example secret: github.com/Putnam3145/Putnam-Mini-Mods/blob/master/Secrets%20and%20Curses/objects/interaction_secret_putnamagic.txt
Join the Kitfox Discord server: discord.gg/kitfoxgames










