Khelldon
New member
This modlet has moved
View and Download this modlet from here:
https://7daystodie.com/forums/showthread.php?99776-Khelldon-s-Modlets
View and Download this modlet from here:
https://7daystodie.com/forums/showthread.php?99776-Khelldon-s-Modlets
Get Nailed!
This is a very simple modlet that adds nails to more of the wooden items in the game that 'should' have nails as part of their recipes.
Features:
- Adds nails to most wooden blocks recipes
- Adds Bent Nails into the game
- Adds Crowbar into the game
- Wood blocks require nails to repair when damaged
- Get nails from harvesting wood blocks. Use claw hammer or crowbar to get good nails, use anything else, get bent nails.
- Amount of nails found in loot doubled
- Straighten bent nails out via recipe
IMPORTANT: Since I'm not sure how to use xpath to write localization, you'll need to copy these few lines into your 7 Days To Die directory at the bottom of the text file: "/Data/Config/Localization.txt" in order for the new "Bent Nails" and "Crowbar" to have a proper name and description. You can open this file with any text editor.
Code:
resourceNailBent,items,Item,KgNone,Bent Nails,,,,,
resourceNailBentDesc,items,Item,KgNone,"You have some bent nails, you can probably straighten them out.",,,,,
khelldonCrowbar,items,Tool,KgNone,Crowbar,,,,,
khelldonCrowbarDesc,items,Tool,KgNone,"Great for disassembling mechanical devices. Can take nails out of wooden blocks without damaging them. Can also be used to repair and upgrade walls.\nRepair with Forged Steel.",,,,,

Download:
Khelldon-GetNailed Google Drive (recommended)
Khelldon-GetNailed Github Repo (advanced)
Notes:
- I highly encourage that you edit this modlet to suit your own needs. I left some comments in the code to help anyone editing it to understand what everything is doing and how to change things.
- This modlet was designed to work with vanilla a17.x.x and may cause some conflicts with any mods or modlets that add or alter wooden blocks in the game. It was designed to dynamically find recipes and change them, so in theory it should work no matter what recipes are added or changed, however, there are always exceptions and I think it's worth noting that it's something to look out for if problems arise.
- Feel free to use this modlet as you like. If you want to copy or edit or redistribute it please feel free to do so without worrying about credit.
- This modlet has not been tested fully. Please report any problems.
Thank you:
Thank you Sphereii for a great xpath tutorial that taught me everything I know about xpath.
Thanks to StompyNZ and Doombringer101 for coming up with most of the ideas for this modlet.
Thank you Guppycur for motivating me to make this.

Last edited by a moderator: