Project Zomboid

Project Zomboid

Get rid of maggots
Get Rid of Maggots
Anyone else not like the addition of so many maggots in the game? I am looking for a way to remove them completely from a world via mods or editing the actual game files. I would like to stop them from spawning at all on bodies and on the ground if possible. If there is anyone out there who can create a quick mod or knows how to remove objects from a world please let me know. Thank you in advance.
< >
Showing 31-45 of 45 comments
Diavolo Sep 9, 2022 @ 2:14pm 
Originally posted by Cumulous748:
Originally posted by Diavolo:
You can add them to the world item that disappears on ground after X hours.

Sandbox -> Chose your town -> Sandbox Option -> World section -> World item removal list -> On that string you'll add these 2 : Base.Maggots,Base.Maggots2 .

I think the lines were added to all vanilla start few patches ago, but i guess you're playing on a save prior to that. In this case you can go to the workshop and get a mod called "Change Sandbox Option 2" and add the 2 text to remove the maggots, so you can remove the maggots on an older save.


Thank you for your input Diavolo. Sadly I Have already applied this setting to my game. It does work for the bugs on the ground, this is true. However it does not remove the maggots from the zombies inventories. Any ideas how to change the maggot that spawns on zombies to some unseable junk item? Or something along those lines?


Ah now i think i got what you meant to ask in the very beginning.

Sadly i don't think you can prevent at all the spawn of the maggots, since are now kinda tied to a system of a "re-resurrection".

But i'm not sure i'm still getting why the maggots on the zombies are a problem, after all when the corpse despawn, the maggots will despawn too, and by adding the line i texted in the other message there shouldn't be any on the ground.

I did the same myself, to avoid performance issues on a 16x world population.

If the problem is about seeing the maggots while scrolling the zombie inventory, i think there's nothing to do really.

The last thing i can think of to help you is :

Go back to the sanbox option, and reduce the amount of time the corpses on ground needs to despawn, this way you'll get rid of them and the maggots on them quicker.
Manwith Noname Sep 9, 2022 @ 2:23pm 
Originally posted by Cumulous748:
Any ideas how to change the maggot that spawns on zombies to some unseable junk item? Or something along those lines?

Test the obsolete = true edit if you have not already. Simplest way to check.

1) Go to the install location of the game.

X:\...Steampath...\steamapps\common\ProjectZomboid\media\scripts

2) Open the items_food.txt file in a text editor.

3) Find "item Maggots". You should see...

item Maggots { DisplayName = Maggots, DisplayCategory = Food, Type = Food, Weight = 0.01, Icon = Insect_Maggots, FishingLure = true, HungerChange = -1, UnhappyChange = 20, Calories = 1.5, Carbohydrates = 0, Lipids = 0.05, Proteins = 0.25, WorldStaticModel = Maggots_Ground, }

4) At the end of the entry add "OBSOLETE = true," so it ends up like...

item Maggots { DisplayName = Maggots, DisplayCategory = Food, Type = Food, Weight = 0.01, Icon = Insect_Maggots, FishingLure = true, HungerChange = -1, UnhappyChange = 20, Calories = 1.5, Carbohydrates = 0, Lipids = 0.05, Proteins = 0.25, WorldStaticModel = Maggots_Ground, OBSOLETE = true, }

5) Load the game and check.

I think this should remove any existing items too but maybe kill a new zombie and monitor that for maggots if not.

This is just a quick test to see if that works. If it does then we can worry about making a "mod" that edits the recipe rather than manually editing game files that will get reverted with updates and verifies.
Cumulous748 Sep 10, 2022 @ 10:41am 
Originally posted by Manwith Noname:
Originally posted by Cumulous748:
Any ideas how to change the maggot that spawns on zombies to some unseable junk item? Or something along those lines?

Test the obsolete = true edit if you have not already. Simplest way to check.

1) Go to the install location of the game.

X:\...Steampath...\steamapps\common\ProjectZomboid\media\scripts

2) Open the items_food.txt file in a text editor.

3) Find "item Maggots". You should see...

item Maggots { DisplayName = Maggots, DisplayCategory = Food, Type = Food, Weight = 0.01, Icon = Insect_Maggots, FishingLure = true, HungerChange = -1, UnhappyChange = 20, Calories = 1.5, Carbohydrates = 0, Lipids = 0.05, Proteins = 0.25, WorldStaticModel = Maggots_Ground, }

4) At the end of the entry add "OBSOLETE = true," so it ends up like...

item Maggots { DisplayName = Maggots, DisplayCategory = Food, Type = Food, Weight = 0.01, Icon = Insect_Maggots, FishingLure = true, HungerChange = -1, UnhappyChange = 20, Calories = 1.5, Carbohydrates = 0, Lipids = 0.05, Proteins = 0.25, WorldStaticModel = Maggots_Ground, OBSOLETE = true, }

5) Load the game and check.

I think this should remove any existing items too but maybe kill a new zombie and monitor that for maggots if not.

This is just a quick test to see if that works. If it does then we can worry about making a "mod" that edits the recipe rather than manually editing game files that will get reverted with updates and verifies.


Awesome I will try it out now, thank you for the help.
Cumulous748 Sep 10, 2022 @ 12:18pm 
I can confirm that adding OBSOLETE = true, to the food items text fiel did not work. Maggots are still spawning on dead corpses.
Manwith Noname Sep 10, 2022 @ 1:42pm 
Hmm. I just did a quick test and my findings are that it removed existing maggots I keep in a bag and from dead zombies.

I didn't kill a new zombie and wait to see if they spawn but I wouldn't expect them to. If they do, then based on my experience closing the game and loading it again should delete them.

Edit: Oh hang on. Are you playing with mods? Do any of them supply a new base food item list that might be replacing your base file edits?
Last edited by Manwith Noname; Sep 10, 2022 @ 1:51pm
Cumulous748 Sep 11, 2022 @ 12:05am 
Ill check mods later tonight, try killing a new zombie and let me know if they spawn or not. It did remove existing ones when I tried it out. But new zombies still spawn them.
Cumulous748 Sep 15, 2022 @ 6:57pm 
Man with no name,

I don't think I have any mods adjusting the food files. I have mostly car and weapon mods that I play with, some clothes mods too. Any ideas?
Kaldrak Sep 15, 2022 @ 7:09pm 
Rejoice, OP. Soon they will be adding sandbox options to remove the spawning of maggots in the game world if you wish.
Quill Sep 15, 2022 @ 7:41pm 
Originally posted by Winterbloom:
why remove one of the easiest fishing baits?

In seriousness they should be altered to despawn after X amount of time on the ground, rather than just existing permanently.
I am almost 3 months into my game and have over 500 worms. I don't need 10,000 maggots lol
Cumulous748 Sep 19, 2022 @ 9:02am 
Originally posted by Kaldrak:
Rejoice, OP. Soon they will be adding sandbox options to remove the spawning of maggots in the game world if you wish.

Kaldrak could you elaborate on this please?
=JpS=Red5 Sep 19, 2022 @ 1:17pm 
@Cumulous748, I know you asked for no debate, but would you mind saying why the maggots are such a big deal to you?
pgames-food Sep 19, 2022 @ 2:24pm 
btw there used to be a cool mod to make insect or bug soups :)
i think it needed 20 - maybe there can be a way to cook the maggots into a stew?

some countries have big fat maggots which they fry for proteins :)
Kaldrak Sep 19, 2022 @ 5:15pm 
Originally posted by Cumulous748:
Originally posted by Kaldrak:
Rejoice, OP. Soon they will be adding sandbox options to remove the spawning of maggots in the game world if you wish.

Kaldrak could you elaborate on this please?

Sure. the news post last week had this link to a bunch of the changes they are going to be implementing: https://pastebin.com/z5b8xJpQ
Undefined (Banned) Sep 19, 2022 @ 5:43pm 
Originally posted by Kaldrak:
Originally posted by Cumulous748:

Kaldrak could you elaborate on this please?

Sure. the news post last week had this link to a bunch of the changes they are going to be implementing: https://pastebin.com/z5b8xJpQ
Just read the change log and saw this:

- Renamed Item "Weight" to "Encumbrance" in the UI and context menu.

When I update, I'm gonna change that back to Weight.
Animalman Sep 21, 2022 @ 10:03am 
Looks good m14 crit chance from 0 to 30

Lower weight walko talko well how did you know?
< >
Showing 31-45 of 45 comments
Per page: 1530 50

Date Posted: Sep 4, 2022 @ 1:10pm
Posts: 45