ProceduralDistributions
BakeryCake
Project Zomboid B42 loot table with 8 items and 4 rolls.
| ID | Name | Weight |
|---|---|---|
CakeSlice | Cake Slice | 20 |
CakeSlice | Cake Slice | 10 |
CakeBlackForest | Black Forest Cake Slice | 8 |
CakeCarrot | Carrot Cake Slice | 8 |
CakeCheeseCake | Cheese Cake Slice | 8 |
CakeChocolate | Chocolate Cake Slice | 8 |
CakeRedVelvet | Red Velvet Cake Slice | 8 |
CakeStrawberryShortcake | Strawberry Cake Slice | 8 |
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)
endGoes inside a function hooked to Events.OnPostDistributionMerge. Full loot guide (Spanish) → · All lists