Zen's Swiss Knife - ZenarchistCode/ZenModPack GitHub Wiki
This mod adds a multi-tool Swiss knife to the game.
The Swiss knife has the following tools built into it:
- Can Opener
- Small Knife
- Lockpick
- Scissors (sewing kit)
- Screwdriver
- Firewood Saw
This item is designed to be spawned into the world using the base class ZenSwissKnife
.
This base object contains several actions to extend the various tools. Each tool has twice as much HP as their vanilla/standard tool types.
Once a tool is extended, you can use it for its intended purpose, and once finished you can retract the tool to turn it back into its base item.
Actions performed with this tool will take twice as long as its regular counterpart, and the wood saw can only be used to craft firewood, not planks.
This is intended to keep the tool from being too OP.
Over time each tool will become damaged, but most tools can be repaired (eg. knife with a sharpening stone).
Once a tool is ruined it cannot be used anymore - but the other tools can still be used, so each tool has its own health.
<!-- Swiss knife --> <type name="ZenSwissKnife"> <nominal>3</nominal> <lifetime>14400</lifetime> <restock>3600</restock> <min>2</min> <quantmin>-1</quantmin> <quantmax>-1</quantmax> <cost>100</cost> <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/> <category name="tools"/> <tag name="shelves"/> <usage name="Hunting"/> <value name="Tier3"/> </type> <type name="ZenSwissKnife_CanOpener"> <lifetime>14400</lifetime> <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="1" deloot="0"/> </type> <type name="ZenSwissKnife_Knife"> <lifetime>14400</lifetime> <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="1" deloot="0"/> </type> <type name="ZenSwissKnife_Lockpick"> <lifetime>14400</lifetime> <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="1" deloot="0"/> </type> <type name="ZenSwissKnife_Scissors"> <lifetime>14400</lifetime> <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="1" deloot="0"/> </type> <type name="ZenSwissKnife_Screwdriver"> <lifetime>14400</lifetime> <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="1" deloot="0"/> </type> <type name="ZenSwissKnife_SmallSaw"> <lifetime>14400</lifetime> <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="1" deloot="0"/> </type>