Try   HackMD

Lottery for Terraria

This is a Terraria mod that introduces a new item, the Lottery Ticket:

Lottery Ticket

It has a 1:10 chance of 1-3 of them being dropped by any mob. When used in a Extractinator it has a 1:3 chance of producing the following items:

40% money
    60% silver 1-99 coins
    35% gold 1-20 coins
     5% platinum 1-5 coins
25% crate
    50% wooden
    30% iron
    10% golden
    10% themed
16% ore (1-10 units)
    20% tin/copper
    20% tungsten/silver
    20% gold/platinum
    20% demonite/crimtane
    20% random gem
16% random non-regular ammo (1d10 * 100 units, cap at 999)
    40% arrows
    40% bullets
    20% rockets
 3% seaweed

Note that these figures are orientative, subject to change, and do not exactly reflect the current implementation.

Installation

Install from the Mod Browser or download from https://github.com/raydeejay/Lottery/releases.

Source code

The source code is included.
Github repository: https://github.com/raydeejay/Lottery
License: MIT