WENOPAL

ProceduralDistributions

CratePaint

Project Zomboid B42 loot table with 15 items and 8 rolls.

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

IDNameWeight
PaintCyanPaint - Cyan20
PaintOrangePaint - Orange20
PaintPinkPaint - Pink20
PaintPurplePaint - Purple20
PaintTurquoisePaint - Turquoise20
PaintBlackPaint - Black10
PaintBluePaint - Blue10
PaintBrownPaint - Brown10
PaintGreenPaint - Green10
PaintGreyPaint - Gray10
PaintLightBluePaint - Light Blue10
PaintLightBrownPaint - Light Brown10
PaintRedPaint - Red10
PaintWhitePaint - White10
PaintYellowPaint - Yellow10

Add your item to this list

lua
local dist = ProceduralDistributions.list["CratePaint"]
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