Project Zomboid

Project Zomboid

Homemade Bleach (Build 41.78.16)
64 Comments
nnve  [author] 23 Feb, 2024 @ 12:50pm 
Hey. Yes, you should be able to use this mod with "Clean Dirt" without problems.
TheTexanSquigly 22 Feb, 2024 @ 12:08pm 
heya! I'm just curious...can i use this Homemade Bleach combined with the "Clean Dirt" mod? I mean, it's neat tat i can finally clean my house but it sucks to look for bleach
retr0l0gy 22 Dec, 2023 @ 3:45pm 
oh yeah never realized it was made by you but i use your other mod "homemade saw" and i like that one :3
retr0l0gy 22 Dec, 2023 @ 3:43pm 
gonna be honest never even used it to make bleach yet 💀 well i never needed to yet really and i honestly dont remember why i installed this mod i just remember some other mod suggested this mod in a description and thought it was cool and installed it i just use vodka to disinfect and make molotovs tbh xD but cool mod nonetheless
nnve  [author] 22 Dec, 2023 @ 3:32pm 
Sure, why not :) And thanks - didnt know people still use this mod too much - glad to hear it could be helpful.
retr0l0gy 22 Dec, 2023 @ 3:27pm 
can i add you anyway? i like this mod
nnve  [author] 22 Dec, 2023 @ 3:25pm 
No problem! If you would need some more help in the future, feel free to message me on discord - my username is in the mod description.
retr0l0gy 22 Dec, 2023 @ 3:21pm 
yo thanks :D
nnve  [author] 22 Dec, 2023 @ 2:30pm 
retr0l0gy - I just updated mod. You can now choose between the rare and common loot distribution. Simply just activate the main mod, and then also activate one submod - either Common or Rare (new version). Hope that helps!
retr0l0gy 21 Dec, 2023 @ 2:57am 
i meant like do you think you have like a preset i should change the code to for myself? i dont mean update the entire mod i just need some sort of preset/guide
nnve  [author] 20 Dec, 2023 @ 7:09pm 
retr0l0gy - No worries, i understand. Ill look into it myself and make some adjustments and testing. Will try to update it as soon as possible - i think like in a day or two. Take care there!
retr0l0gy 20 Dec, 2023 @ 4:38am 
also apologies my power is out so i couldn't respond i am typing this from school
retr0l0gy 20 Dec, 2023 @ 4:13am 
yes tbh i do need some help. im not a coder im just a guy who knows how to read but this is kinda complicated for me so im wondering if you can come up with some sort of preset for me if that makes sense to match what im looking for and tell me how to edit it or whatever. im looking to reduce the spawn rates of vodka because its a bit op but not to the point where i can never find it i just want it to be rare but also not to the point where its impossible to find. what do you think i should do?
nnve  [author] 19 Dec, 2023 @ 8:07pm 
And further more in code, you can see other categories/places where the items would spawn - ive separated each category with empty space for easier readability, and sorted them alphabetically.

Let me know if you would need some more help. Take care!
nnve  [author] 19 Dec, 2023 @ 8:05pm 
For a second file, the code structure is much more clean and easier to understand.
For example, first entry:
table.insert(ProceduralDistributions.list["ArmyStorageMedical"].items, "HMB.VodkaFull");
table.insert(ProceduralDistributions.list["ArmyStorageMedical"].items, 4);
table.insert(ProceduralDistributions.list["ArmyStorageMedical"].items, "HMB.VodkaBox");
table.insert(ProceduralDistributions.list["ArmyStorageMedical"].items, 2);

You can see the pattern in this code - in first line we are calling the name of item we want to spawn - then, in the second line we specify the number (probability of spawning the item).
Then we are repeating the same, just for the different item - in this case, first full vodkas, then the full boxes of vodka. Similarly, you need to change the number - or if you want the specific spawn gone, delete each entry (in this case, each two lines).
nnve  [author] 19 Dec, 2023 @ 8:04pm 
For the first file - you need to find the specific category you want to change, for example "Garbagebag":

Garbagebag = {
rolls = 1,
items = {
"HMB.VodkaFull", 0.02,
"HMB.VodkaEmpty", 0.2,
},
fillRand = 2,
},

Just lower those numbers after "HMB.VodkaFull" and "HMB.VodkaEmpty". Or if you dont want the specific spawn - delete (in this case) entire Garbagebag category - entire section from "Garbagebag = {" all the way to "},"
nnve  [author] 19 Dec, 2023 @ 8:02pm 
retr0l0gy - Sorry for the late response as well and thank you for the feedback!

Its difficult to make loot distribution fair and balanced. I remember lowering the values once at some point, but youre right - it would be best if you could change it yourself to your likings.
To do so, go to the mod folder: "SteamLibrary\steamapps\workshop\content\108600\2479859182\mods\HomemadeBleach\media\lua\server\items"
There you will see 2 files:
HMB_Distributions.lua
HMB_Procedural.lua

First file is for specific, individual loot spawns - like in certain bags and caches. Second one is more like for groups/types of loot spawns - like "StoreShelfDrinks" or "StoreShelfMedical". To edit those, use some kind of code editor, for example Notepad++.
retr0l0gy 16 Dec, 2023 @ 8:06am 
and to be clear im not re uploading the mod im changing it for my own use
retr0l0gy 16 Dec, 2023 @ 8:05am 
hey great mod love the concept but its just one issue. I find the spawn rates of vodka too high and OP because you can use vodka as both a disinfectant and molotov and one box gives 12 vodka bottles that is 24 sterilised bandages or 12 Molotov's so im wondering what line of code in the mod would i have to change/delete to fix this issue? i dont want to be an asshole, complain and unsubscribe just cause of this so i figured i can just fix it myself with just a little bit of an info. thanks!
nnve  [author] 7 Dec, 2023 @ 2:53pm 
What you need to do, is to replace the "BleachEmpty" with different Zomboid item id name, like "Bowl" or "WhiskeyEmpty". If you want to use multiple different containers, separate those by "/" sign. So, for example: "BleachEmpty/WhiskeyEmpty/Bowl,". Make also sure you didnt miss the comma sign on the end of line.

You can find all container items ids in the main game folder: "\SteamLibrary\steamapps\common\ProjectZomboid\media\scripts"
Inside the files: "items.txt" and "newitems.txt".

Hope this helps - if you would have more questions, let me know. Take care!
nnve  [author] 7 Dec, 2023 @ 2:53pm 
ThreeTacks - Hey, sorry for the late response. This mod uses only the empty bleach containers, but you can pretty easily edit the recipes yourself, to add containers you would like to use.

First find the mod folder: "SteamLibrary\steamapps\workshop\content\108600\2479859182\mods\HomemadeBleach\media\scripts"
You should see there 3 .txt files. Open the file called "homemadebleach_recipes.txt".

Inside, after the "imports" section, you will be able to see two sections called "recipe Prepare Homemade Bleach" and "recipe Prepare Homemade Vinegar Lemon Bleach".
The first four elements, in both sections, are the required items used in the recipe.
For example:
VodkaFull=1,
BleachEmpty,
Water=5,
Vinegar=3,
ThreeTacks 3 Dec, 2023 @ 5:46am 
Is it possible to use other containers to make bleach? I am in a world where there are no loot spawns, and I need to use things like bowls I carved out of logs or spare glass bottles I find on zombies.
nnve  [author] 23 Sep, 2023 @ 1:50pm 
AlexiOs - i didnt find any specifically for the vinegar, that wouldnt be outdated, but this one with tomato vinegar seems fine: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2971511782

It seems like you can find it also in some other mods that are focused on similar, additional survival recipes - but if you need only vinegar, i think the mod from link above would be the most lightweight.
Alexi0s 23 Sep, 2023 @ 1:29pm 
other mods that add the possibility to create your own Vinegar.?pls help
nnve  [author] 29 Jul, 2022 @ 9:47am 
Hello. Sorry for the waiting time. Loot distribution tables are updated for the 41.73 build, and french translation by Zunder was added. Thanks!
🌴 Zunder 🌴 18 Jun, 2022 @ 9:51am 
By the way, translation files must be saved in ANSI format so that special characters such as "é" can be displayed correctly.
Best Regards
nnve  [author] 18 Jun, 2022 @ 9:42am 
Thank you Zunder! Will add your translation in the next update, also your nickname here on steam page in credits.
Soon ill be checking this mod to see if there are any new changes in loot distribution.
🌴 Zunder 🌴 16 Jun, 2022 @ 10:05am 
Translation into French

Tooltip_FR = {

-- Drying
Tooltip_HMB_HomemadeBleach = "Laissez-le dans un conteneur ou l'inventaire, jusqu'à ce que le processus de mélange soit terminé.",


}
Arkhiel 8 Mar, 2022 @ 1:56am 
Thanks for the loot fix :D
nnve  [author] 7 Mar, 2022 @ 2:40pm 
Mod has been updated to version 41.66 (it may also work with version 41.67, but it wasnt tested).
Ive added new changes to loot distributions that comes with version 41.66, and also adjusted spawning of vodkas in some places, as Arkhiel suggested (thanks!). Vodka bottles and boxes should spawn now in 'healthy' amounts :) It seems like the best places to find those now, would be in Fossoil, Gas-2-Go, Restaurants/Bars, and in smaller amounts in medical buildings.

I also deleted the files related to older versions (41.50 and 41.54), but if you need those, you can still find them through link in description.

Unfortunately didnt have opportunity to test this mod in multiplayer, but it should work there without problems as well - if something is crashing, just let me know.

Thanks, and enjoy surviving!
Arkhiel 21 Oct, 2021 @ 4:19am 
thanks, don't rush it's still playable ^^ (I perfectly know the issue between time remaining IRL and modding XD )
nnve  [author] 20 Oct, 2021 @ 3:03pm 
No problem. Sorry for the issue - when ill have some more time, will try to look into distrubutions once again and try to balance spawn rates more.
Arkhiel 20 Oct, 2021 @ 12:50pm 
thanks for the quick response ^^, it will help :)

smuggling is a thing but 1/2 crate has packs of vodka :D
nnve  [author] 20 Oct, 2021 @ 8:44am 
Hello Arkhiel. Mod should work without issues in the newest 41.55 build - no new loot distrubutions changes were made in this update.

For the vodkas in crates, it was actually intentional - kind of like creating a bit of background story, that the alcohol could be smuggled somehow inside these crates.
Although im not sure about frequency of their spawning there, may adjust it more in the future.

If you feel that spawn in crates is unnecessary, or you would want to adjust it manually - go to the folder:
"(YourSteamFolder)\steamapps\workshop\content\108600\2479859182\mods\HomemadeBleach_41_54\media\lua\server\items\HMB_Procedural.lua"

Then open this .lua file with Notepad++ or similar app, and change or delete lines from 51 to 69 (CrateCamping, CrateFarming etc.)
Hope this helps. Thank you for using the mod and for the feedback.
Arkhiel 20 Oct, 2021 @ 6:40am 
on last build i still get vodka everywhere (in mc coy crates of planks IE)
nnve  [author] 18 Sep, 2021 @ 3:51pm 
Mod has been updated to build 41.54. Loot distributions are adjusted and 3D models for items are now placeable. Enjoy surviving (and placing items everywhere) :)
nnve  [author] 18 Sep, 2021 @ 9:42am 
Hello orb. Yes, im working on it. Already adjusted loot distributions for the 41.54 (which is the most time consuming), and now just working on the models.
Update should come later today or tomorrow.
sergal saturn (they/them) 17 Sep, 2021 @ 9:22pm 
Any plans on adding 3D models for 41.54?
nnve  [author] 13 Aug, 2021 @ 8:04am 
Anti Bullying Agent - Thank you for your kind words! Im glad this mod could help you - i have often the same problem with finding the saw as well :)

duttes - No problem, youre right - it can be very confusing at first. Good luck with surviving in your gameplay there - and thank you for your comment.
duttes 12 Aug, 2021 @ 10:35am 
n_nve- Thank you!! I was talking about 40.43. This game's versioning can be confusing.
Big Bang Theory Viewer 12 Aug, 2021 @ 1:04am 
I spent an hour an a half tonight just trying to find a saw to make some planks for my house. You're doing the lord's work sir, thanks. :cozybethesda:
nnve  [author] 11 Aug, 2021 @ 12:10pm 
duttes - Hey. Im not sure if i understand your question correctly. Did you mean beta build 41.50 or stable build 40.43? For the beta build - there are two additional patches with loot tables, inside this mod - one is for beta version 41.50, and second for the latest 41.53. So you will need to choose one of them accordingly (in addition to the main mod).

But if you mean the stable build 40.43 (default version of the game) - this mod unfortunately wont work with it, and it would need to be remade - to work without issues. I may prepare the version of this mod for the stable build in the future, but i cant promise anything, sorry. But if you need alternative for the homemade bleach mod for stable build - i think there were few mods here for this version as well, and they should work fine.
Thanks for your message.
duttes 11 Aug, 2021 @ 10:02am 
Is there a way to make the loot tables work with the standard steam version build 41 spawns? I can use the recipes but cannot find the vodka to make the bleach.
nnve  [author] 22 Jul, 2021 @ 9:53am 
This mod is now updated to build 41.52. Please remember to enable additional mod/patch, as mentioned on top of description (or in Change Notes).
nnve  [author] 21 Jul, 2021 @ 1:34pm 
Hello. This mod now works with new build 41.51.
To make it work properly you need to enable additional mod/patch "Homemade Bleach (Build 41.51 - Loot tables)", which is included with this mod. And also make sure that the "(Build 41.50 - Loot tables)" mod is disabled.
And if you want to use this mod with the previous, 41.50 build - you need to do otherwise. For more details please read the note on top of mod description, or the Change Notes.
Enjoy surviving!
nnve  [author] 20 Jul, 2021 @ 1:24pm 
Hello. Please dont use this mod in the new version 41.51 yet. New version added some changes in loot tables, and the mod needs to be adjusted to spawn its items properly. I will look into it in the near future and let you know when the update will be available.
My other mod - Homemade Saw, should work properly, because it only adds new recipes, without accessing the loot tables. But its always good to test it before using it in your main-save gameplay (and also its always good to backup your saves). Thanks.
nnve  [author] 16 Jul, 2021 @ 6:52am 
Hey, it should be under Health category.
Empyrean Zephyr.HKG 15 Jul, 2021 @ 10:53am 
hi sorry, which category should the recipe fall under?
nnve  [author] 4 Jul, 2021 @ 10:11am 
Added missing recipes for disinfection of sheets/bandages with Vodka Bottles. The recipes works the same as in disinfection with Whiskey Bottles.
Empyrean Zephyr.HKG 16 Jun, 2021 @ 4:16am 
WOW, thank you truly!