WENOPAL

ProceduralDistributions

BakeryCake

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

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

IDNameWeight
CakeSliceCake Slice20
CakeSliceCake Slice10
CakeBlackForestBlack Forest Cake Slice8
CakeCarrotCarrot Cake Slice8
CakeCheeseCakeCheese Cake Slice8
CakeChocolateChocolate Cake Slice8
CakeRedVelvetRed Velvet Cake Slice8
CakeStrawberryShortcakeStrawberry Cake Slice8

Add your item to this list

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