This mod adds a "lootbox" item type that, when used, will randomly give you an item (from a specific list)
it's pretty simple and not really customizable - each lootbox has exactly 10 slots for items, and an empty slot will give no item. If you want fewer than 10, you'll have to put some items...