in your save game
search for "materials":{"adamantine"
the lines below will give you enough mats for anything
and replace with
"materials":{"adamantine":500000,"bandage":500000,"blessed_divine_symbol":500000,"blue_moss":500000,"bone":500000,"boneancient":500000,"bonedragon":500000,"bread":5000050,"cloth":499910,"clothethereal":500000,"clothmagic":499900,"clothsilk":500000,"crystalized_ether":500000,"divine_symbol":500000,"earth_shard":500000,"fire_ruby":500000,"fish":4999950,"fishcakes":500000,"grain":499930,"herbs":500000,"ice_crystal":500000,"ink_base":500000,"ink_branding":0,"ink_hp":0,"ink_lust":0,"ink_makeup":0,"ink_mp":0,"ink_tribal":0,"insect_chitin":500000,"iron":499875,"leather":499885,"leatherdragon":500000,"leathermythic":500000,"leatherthick":499670,"lich_skull":500000,"lizard_skin":500000,"meat":5000050,"meatsoup":500000,"mithril":499925,"obsidian":499915,"ogre_teeth":500000,"princess_bracelet":500000,"rope":500000,"salvia":500000,"steel":499840,"stone":498600,"trap":500000,"troll_blood":500000,"unstable_concoction":500000,"vegetables":5000000,"wood":498830,"woodancient":500000,"woodiron":499575,"woodmagic":499840},"money":7500000,"oldmaterials":{"adamantine":500000,"bandage":500000,"blessed_divine_symbol":500000,"blue_moss":500000,"bone":500000,"boneancient":500000,"bonedragon":500000,"bread":5000050,"cloth":500000,"clothethereal":500000,"clothmagic":500000,"clothsilk":500000,"crystalized_ether":500000,"divine_symbol":500000,"earth_shard":500000,"fire_ruby":500000,"fish":5000050,"fishcakes":500000,"grain":500000,"herbs":500000,"ice_crystal":500000,"ink_base":500000,"ink_branding":0,"ink_hp":0,"ink_lust":0,"ink_makeup":0,"ink_mp":0,"ink_tribal":0,"insect_chitin":500000,"iron":500000,"leather":500000,"leatherdragon":500000,"leathermythic":500000,"leatherthick":500000,"lich_skull":500000,"lizard_skin":500000,"meat":5000050,"meatsoup":500000,"mithril":500000,"obsidian":500000,"ogre_teeth":500000,"princess_bracelet":500000,"rope":500000,"salvia":500000,"steel":500000,"stone":500000,"trap":500000,"troll_blood":500000,"unstable_concoction":500000,"vegetables":5000050,"wood":500000,"woodancient":500000,"woodiron":500000,"woodmagic":500000},
and then
"money":xxx,
where xxx is the amount of money you currently have and replace the xxx with any amount, i suggest 5000000