Project Zomboid

Project Zomboid

Wells Construction
How do I place the well anywhere?
How do I modify the mod code to do it?
< >
Viser 1-5 af 5 kommentarer
Marshmallow 30. apr. 2024 kl. 14:41 
Wanting this as well. I built my base in the city, so I just don't get to use this feature? I understand the logic, it's just kind of annoying.
Koniv00 24. maj 2024 kl. 7:33 
Here's what you need to do, but it will probably get overwritten the next time the mod updates:

Find steamapps\workshop\content\108600\2852690210\mods\WellsConstruction\media\lua\server

In this directory there should be a file called WellObject.lua, which you need to edit,
Find the section that looks like this (but with the town squareZone as well):

-- Wells should not be able to be placed on roads, towns or trailer parks
function WellObject.isValidZone(square)
local squareZone = square:getZoneType();
if squareZone == "Nav" or squareZone == "TrailerPark" then return false; end
return true;
end

Just remove the zone you want to be able to build the well in, and you're good to go.
Spijuniro Golubiro 1. juni 2024 kl. 5:37 
Okay thx
Sr_Guarrior 6. juli 2024 kl. 22:42 
gracias, me sirvió editar el archivo
Spijuniro Golubiro 24. okt. 2024 kl. 4:45 
Oprindeligt skrevet af Koniv00:
Here's what you need to do, but it will probably get overwritten the next time the mod updates:

Find steamapps\workshop\content\108600\2852690210\mods\WellsConstruction\media\lua\server

In this directory there should be a file called WellObject.lua, which you need to edit,
Find the section that looks like this (but with the town squareZone as well):

-- Wells should not be able to be placed on roads, towns or trailer parks
function WellObject.isValidZone(square)
local squareZone = square:getZoneType();
if squareZone == "Nav" or squareZone == "TrailerPark" then return false; end
return true;
end

Just remove the zone you want to be able to build the well in, and you're good to go.

how i build inside house?, cand find the code line
< >
Viser 1-5 af 5 kommentarer
Per side: 1530 50