ProceduralDistributions
CrateCannedFoodSpoiled
Project Zomboid B42 loot table with 12 items and 4 rolls.
| ID | Name | Weight |
|---|---|---|
TinCanEmpty | 10 | |
TinCanEmpty | 10 | |
TinCanEmpty | 10 | |
TinCanEmpty | 10 | |
Cockroach | 6 | |
Cockroach | 6 | |
WaterBottleEmpty | 6 | |
WaterBottleEmpty | 6 | |
DeadRat | 4 | |
DentedCan | 4 | |
DeadMouse | 2 | |
MysteryCan | 2 |
Add your item to this list
lua
local dist = ProceduralDistributions.list["CrateCannedFoodSpoiled"]
if dist and dist.items then
table.insert(dist.items, "MiMod.MiItem")
table.insert(dist.items, 2)
endGoes inside a function hooked to Events.OnPostDistributionMerge. Full loot guide → · All lists