Zen's Zippo Lighter - ZenarchistCode/ZenModPack GitHub Wiki

zippo

What Is This?

This mod adds a refillable Zippo lighter to the game, complete with a flame and light source.

The Zippo can be refilled using gasoline from bottles and jerry cans.

It will slowly damage over time, so eventually players will need to find a new one.

It also converts the vanilla petrol lighter into essentially a non-refillable Zippo, with the flame and light source.

A petrol lighter lasts for about 15 minutes of continuous use, while a Zippo lasts half an hour (when full).

Instructions

This mod comes with some custom item types, make sure to merge the types.xml entries listed below.

Master Config

To disable this mod set "ZenZippo": 0 in %server_profile/Zenarchist/ZenModPackConfig.json

If enabled, then all vanilla petrol lighters PetrolLighter will automatically be converted into my custom version of the vanilla lighter ZenPetrolLighter. This version acts like the zippo and must be 'turned on' before it can be used.

If disabled, then all my ZenPetrolLighter items will automatically be converted back into the vanilla PetrolLighter.

Types.xml

    <!-- Zippo -->
    <type name="ZenZippoLighter">
        <nominal>2</nominal>
        <lifetime>14400</lifetime>
        <restock>1800</restock>
        <min>1</min>
        <quantmin>20</quantmin>
        <quantmax>100</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="Village"/>
        <usage name="Hunting"/>
        <usage name="Military"/>
    </type>
    <type name="ZenZippoLighter_Peace">
        <nominal>2</nominal>
        <lifetime>14400</lifetime>
        <restock>1800</restock>
        <min>1</min>
        <quantmin>20</quantmin>
        <quantmax>100</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="Village"/>
        <usage name="Hunting"/>
        <usage name="Military"/>
    </type>
    <type name="ZenZippoLighter_Anarchy">
        <nominal>2</nominal>
        <lifetime>14400</lifetime>
        <restock>1800</restock>
        <min>1</min>
        <quantmin>20</quantmin>
        <quantmax>100</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="Village"/>
        <usage name="Hunting"/>
        <usage name="Military"/>
    </type>
    <type name="ZenZippoLighter_Zenarchist">
        <nominal>1</nominal>
        <lifetime>14400</lifetime>
        <restock>1800</restock>
        <min>1</min>
        <quantmin>20</quantmin>
        <quantmax>100</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="Village"/>
        <usage name="Hunting"/>
        <usage name="Military"/>
        <value name="Tier3"/>
    </type>
    <type name="ZenPetrolLighter">
        <nominal>9</nominal>
        <lifetime>14400</lifetime>
        <restock>3600</restock>
        <min>6</min>
        <quantmin>20</quantmin>
        <quantmax>100</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="Village"/>
    </type>
⚠️ **GitHub.com Fallback** ⚠️