Skip to content

ZenRepairPumps

Zenarchist edited this page May 6, 2026 · 3 revisions

NOTE: This mod is included in my modpack and can be enabled/disabled via ZenRepairPumps in ZenModPackConfig.json

download

What Is This?

This mod increases the complexity of using vehicles by adding broken petrol pumps to the game that require repair before you can use them. You can make all pumps broken by default, or specify only certain pumps that require repair.

When you install the mod and run it for the first time, a JSON config file will be generated in your server profile folder %server_root/profiles/Zenarchist/ZenRepairPumps.json

Here you can specify the message that gets sent to the player when they try to use a broken pump, as well as the message that gets sent when they try to repair a pump that is already repaired.

You can also turn on/off pumps being broken by default. If you set "DisablePumpsByDefault": 1 then all the pumps on the map will be broken, and in order to use them, players must find either a small wrench or a pipe wrench and repair the pump. Set this to 0 if you want to decide which pumps are broken.

Once the pump is repaired, it will stay functional for as long as you specify in the JSON config "TimeToBreak": 1209600 by default, which is 2 weeks in seconds).

When a pump is repaired it will be added to the list of repairable pumps. This list includes the pump's map position and 3 parameters: "Invincible", "Repaired", and "BreakTime". If you want certain pumps to be repaired by default/always working, repair a pump to have its location added to the JSON file and then you can modify its settings there.

If you set Invincible to 1 then the pump is always repaired and useable.

When a player repairs a pump, "Repaired" will be set to 1 and all players can use that pump without needing to repair it until its timer runs out.

Once the UNIX timestamp "BreakTime" expires, the pump will be set back to broken ("Repaired": 0) and players can no longer use the pump without repairing it first. Each pump's repaired status updates on server restarts, so the pump will not break again until the timer expires and the server restarts.

Config

Config file: profiles/Zenarchist/ZenRepairablePumpsConfig.json

{
    "ConfigVersion": "1.29.1", // Don't touch
    "MessagePumpNotWork": "#zen_fuelpump_broken", // Message sent when using a broken pump
    "MessageRepaired": "#zen_fuelpump_already_repaired", // Message sent when repairing a repaired pump
    "DisablePumpsByDefault": 1, // Disable ALL pumps by default
    "DamageTool": 50, // Damage wrench when repairing
    "TimeToBreak": 1209600 // Time a repaired pump takes to break again (seconds)
}

NOTE: The database file is saved to mpmissions/map.name/storage_1/zenarchist/ZenRepairablePumpsDB.json

To make a pump never break (eg. in safezones etc), repair the pump in-game (to generate its config in this file) and change Invincible: 1

{
    "ConfigVersion": "1.29.1",
    "RepairablePumps": [
        {
            "Location": [
                7152.9169921875,
                294.758544921875,
                7702.88134765625
            ],
            "Invincible": 1, // Change this
            "Repaired": 1,
            "BreakTime": 1777637771
        }
    ]
}

ZEN'S MOD WIKI

Setup Guide

General Information


Utilities

My utility style mods for debugging etc.

Game Mechanics

Mods which affect game mechanics:

Gear / Objects

Mods which add gear to the game:

Server-Side Mods

Mods which run purely server-side:

Mods Not In Modpack

My standalone mods

Clone this wiki locally