DayZ
105 ratings
Zens Repairable Wells
2
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod Type: Mechanics
File Size
Posted
Updated
32.604 KB
27 Jan, 2023 @ 6:42pm
18 Oct, 2024 @ 7:17pm
6 Change Notes ( view )

Subscribe to download
Zens Repairable Wells

Description
What Is This?

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.

An example JSON config is included in the mod folder.

Installation Instructions:

Install this mod like any other mod - copy it into your server folder and add it to your mods list. It must be run on both server and client. Make sure to copy the .bikey into your server keys if you're not using a server management tool like OmegaManager which does that automatically.

This mod requires Community Framework as a dependency.

Repack & Source Code:

Unfortunately due to lack of time I can't maintain all of my mods all of the time. I do my best, but these mods are offered as-is. If there's a problem, you have the source code and my permission to fix it yourself and upload a fixed version to the workshop without any credit necessary. It's all free.

You can repack this mod if you like, and do anything else you want with it for that matter. The source code is on my GitHub at www.zenarchist.io

Buy Me A Coffee:

All my mods are free and open source, but it takes an enormous amount of time to put some of these mods together. If I've helped you out, please consider helping me buy my next coffee! I don't expect it, but I very much appreciate it.

https://buymeacoffee.com/zenarchist

Enjoy!
Popular Discussions View All (1)
1
7 Dec, 2023 @ 7:35am
ZenRepairWellsConfig.JSON [CHERNARUS Land_Well_Blue]
Moby D
42 Comments
Alastrianna 26 Jun @ 3:03pm 
🌸Thank You, Beautiful mod💖I leave a Like and a Heart💖
Altar 30 May @ 4:45am 
Working well for me in 1.27 with Expansion Bundle ; @RaG_Immersive_Wells (with "WellWaterChance": 100) and some few others mods...
I can fill bottle (empty or not). I can repaire wells, I can put them in invicible mode... all seemss ok.
Thanks for this mod !
Enceladus 29 May @ 5:07pm 
Does it works with the livonia map? Do you have the pump ccordinates?
BrandedGuts 2 Mar @ 8:54pm 
anyone get an error where water bottles cant be filled if empty?
_Sebastian_ 2 Mar @ 6:09am 
Water springs from sakhal also need to be repaired with your mod, you better exclude them.
oh_tschiii_android 26 Feb @ 1:42pm 
Maybe Problem with 1.27? I get Error 0xC0000005 = STATUS_ACCESS_VIOLATION, when i remove this MOD, no Problems
FlipMcFly 9 Jan @ 1:25am 
Hi. What is the difference between "TimeToBreak" and "Breaktime" ?
BrandedGuts 10 Nov, 2024 @ 11:25am 
Is this the newest or should I use Virus fix?
D’Lucca 20 Oct, 2024 @ 3:38am 
It would be really cool if on the maps with ice they could use the blowtorch to repair.
Endergoth 18 Oct, 2024 @ 12:51pm 
thank you Virus!