WENOPAL

ProceduralDistributions

GroceryStorageCrate2

Project Zomboid B42 loot table with 10 items and 4 rolls.

Data taken from the game files: Project Zomboid 42.21.0 · updated on

IDNameWeight
CannedCarrots2Canned Carrots10
CannedCornCanned Corn10
CannedPeasCanned Peas10
CannedPotato2Canned Potato10
CannedTomato2Canned Tomato10
CannedCarrots_BoxBox of Canned Carrots0.1
CannedCorn_BoxBox of Canned Corn0.1
CannedPeas_BoxBox of Canned Peas0.1
CannedPotato_BoxBox of Canned Potato0.1
CannedTomato_BoxBox of Canned Tomato0.1

Add your item to this list

lua
local dist = ProceduralDistributions.list["GroceryStorageCrate2"]
if dist and dist.items then
    table.insert(dist.items, "MiMod.MiItem")
    table.insert(dist.items, 2)
end

Goes inside a function hooked to Events.OnPostDistributionMerge. Full loot guide (Spanish) → · All lists