-
Notifications
You must be signed in to change notification settings - Fork 6
ZenRepairWells
NOTE: This mod is included in my modpack and can be enabled/disabled via ZenRepairWells in ZenModPackConfig.json

This mod increases the complexity of survival by adding broken water 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/ZenRepairWells.json
Here you can specify the message that gets sent to the player when they try to use a broken well, as well as the message that gets sent when they try to repair a well that is already repaired.
You can also turn on/off wells being broken by default. If you set "DisableWellsByDefault": 1 then all the wells 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 well. Set this to 0 if you want to decide which wells are broken.
Once the well 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 well is repaired it will be added to the list of repairable wells. This list includes the well's map position and 3 parameters: "Invincible", "Repaired", and "BreakTime". If you want certain wells to be repaired by default/always working, repair a well 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 well is always repaired (useful if you want to enable all the northern wells on Livonia but have all the southern wells broken and require repair, for example).
When a player repairs a well, "Repaired" will be set to 1 and all players can use that well without needing to repair it until its timer runs out.
Once the UNIX timestamp "BreakTime" expires, the well will be set back to broken ("Repaired": 0) and players can no longer use the well without repairing it first. Each well's repaired status updates on server restarts, so the well will not break again until the timer expires and the server restarts.
Config file: profiles/Zenarchist/ZenRepairableWellsConfig.json
{
"ConfigVersion": "1.29.1", // Don't touch
"MessageNotDrink": "#zen_well_broken", // Message sent when using a broken well
"MessageRepaired": "#zen_well_already_repaired", // Message sent when repairing a repaired well
"DisableWellsByDefault": 1, // Disable ALL wells by default
"DamageTool": 50, // Damage wrench after repairs
"TimeToBreak": 1209600 // Time til a repaired well breaks again (seconds)
}NOTE: The database file is saved to mpmissions/map.name/storage_1/zenarchist/ZenRepairableWellsDB.json
To make a well never break (eg. in safezones etc), repair the well in-game (to generate its config in this file) and change Invincible: 1
{
"ConfigVersion": "1.29.1",
"RepairableWells": [
{
"Location": [
7152.9169921875,
294.758544921875,
7702.88134765625
],
"Invincible": 1, // Change this
"Repaired": 1,
"BreakTime": 1777637771
}
]
}All my mods are open-source and published under the Mozilla Public License Version 2.0. Any mods based on my code must be open-source - no obfuscation!
You can modify/reupload/repack my mods if you like, but please credit any original authors/3D model/3rd-party asset creators, and keep in mind any future updates I make will not be automatically applied to repacked mods so make sure to check back from time to time for bugfixes and improvements.
If you find my mods useful, please consider buying me a coffee - it's not expected but very much appreciated: https://buymeacoffee.com/zenarchist
- General Setup Guide
- Core Mod Setup Guide
- ZenModPack Master Config
- Various Info
- Known Bugs & Issues
- Report Bug
My utility style mods for debugging etc.
Mods which affect game mechanics:
- ZenAlcohol
- ZenAllowMapBagSlot
- ZenAntiCombatLogout
- ZenAutoConvertStash
- ZenAutoStackItems
- ZenAutoWinterDetect
- ZenAutoRun
- ZenBasebuildingConfig
- ZenBatteryPASPersistence
- ZenBetterChatFont
- ZenBrokenGlasses
- ZenBuildingDescription
- ZenCarAttachments
- ZenCarBatteryIcon
- ZenCarCompass
- ZenCarGlovebox
- ZenCarsCutDownTrees
- ZenCanteenTablets
- ZenCatchRain
- ZenCauseOfDeath
- ZenChickenCoops
- ZenCraftingSounds
- ZenCraftRagHands
- ZenComboLocks
- ZenCombineJSON
- ZenDropRuinedClothing
- ZenDynamicZoneLoot
- ZenEarPlugs
- ZenFireFuel
- ZenFireWood
- ZenFireplaceStick
- ZenFishingConfig
- ZenFixCarAttachmentGUI
- ZenGraves
- ZenGroundCleaning
- ZenHideGearInCars
- ZenHints
- ZenHologram
- ZenHologramControls
- ZenImmersiveChatHUD
- ZenImmersiveLogin
- ZenInformWeaponStateBug
- ZenInventoryAnimation
- ZenKnifeGardens
- ZenLeftovers
- ZenLogPiles
- ZenMagObfuscation
- ZenMap
- ZenMicCheck
- ZenNotifications
- ZenOpenCansRock
- ZenPainting
- ZenPimpMyRide
- ZenRadioPlugin
- ZenRebuildableWells
- ZenRepairJSON
- ZenRepairPumps
- ZenRepairWells
- ZenServerGUI
- ZenShove
- ZenSplitUI
- ZenSleep
- ZenStaminaSlope
- ZenTerritories
- ZenWeaponEngrave
- ZenWoodHealth
- ZenZombieDoors
Mods which add gear to the game:
- ZenArtillery
- ZenBackwardsCaps
- ZenBookshelf
- ZenBunnyMasks
- ZenCamoCamp
- ZenCarWorkbench
- ZenChess
- ZenChristmasTreeCraft
- ZenConcussionGrenade
- ZenDoubleArmbands
- ZenFlask
- ZenFlint
- ZenGhillie
- ZenJameson
- ZenLadders
- ZenMusic
- ZenNotes
- ZenRaidAlarm
- ZenRaybans
- ZenRunes
- ZenStaticObjects
- ZenSwissKnife
- ZenTimeBomb
- ZenTireRack
- ZenTreasure
- ZenTreehouse
- ZenVikingAxe
- ZenZippoLighter
Mods which run purely server-side:
- ZenBloodDrips
- ZenCampSites
- ZenDynamicZoneLoot
- ZenLootCyclingDetection
- ZenNightConfig
- ZenPersistentTrees
- ZenShelterCargo
- ZenTreesplosions
- ZenZombieController
- ZenZombieConfig
- ZenJameson
My standalone mods