# Stills

* Stills can be either placeable by players or at static locations defined in the config
* If set to placeable ensure give players a method to obtain the item
* The still object coords (if using the static method) must be `vector4`&#x20;
* You can define multiple categories and items available to smelt in the `Crafting`table
* If enabled define the explosion settings and chances for failed batches

***

```lua
Config.Stills = {-- define items that can be crafted at the moonshine stills
    Stills = {
        model = 'prop_still', -- prop name for crafting bench
        openicon = 'fa-solid fa-bars', -- target icon
        openlabel = 'Use Still', -- target label
        closeicon = 'fas fa-xmark', -- target icon
        closelabel = 'Remove Still', -- target label
        distance = 4.0, -- target distance
        explosion = { -- define explosion settings
            enabled = true, -- enable the chance for an explosion when processing in the still
            realExplosion = true, -- set to true for a real explosion which can kill players, set to false for just the steam visuals instead
            chance = 10, -- chance for still to explode
            policeChance = 50, -- chance to notify police if still explodes
        },
        spawning = {
            method = 'static', -- choose between static or placeable moonshine stills
            --use 'static' for static crafting bench locations (make sure to define coords below)
            --use 'placeable' for placeable moonshine stills (make sure the item is in your items.lua)
            --if set to static you must define coords for spawn locations below
            --if set to placeable you can ignore the coords and blip table below
            coords = { -- define coords for crafting bench locations if set to 'static'  must be vector4
                vector4(5328.16, -5265.12, 33.17, 133.84), -- plants
                vector4(5089.13, -4891.52, 17.1, 338.03), -- trees
                --add more still locations here if set to static above
            },
            blip = { -- define blip settings
                enabled = true, -- enable blip
                id = 514, -- blip id
                colour = 3, -- blip colour
                scale = 0.7, -- blip scale
                title = 'Moonshine Still', -- blip title
            },
        },
    },
    Crafting = {
        ['Mash'] = { -- crafting category name
            ['moonshinemash'] = { -- the key is the craftable item name
                recipe = { -- recipe required to craft item 
                    --name is item name
                    --amount is required amount
                    --remove is boolean if that item should be removed (things like tools etc set to false)
                    {name = 'corn', amount = 10, removed = true, },
                    {name = 'barley', amount = 10, removed = true, },
                    {name = 'water', amount = 3, removed = true, },
                    {name = 'yeast', amount = 1, removed = true, },
                },
                returned = { -- define return amount
                    amount = 1, -- amount of crafted item given (this is the base amount if using XP as the XP level will determine the reward amount)
                },
                progress = { -- define progressCircle settings
                    duration = 5000, --progressCircle duration to craft the item (multiplied by the amount player chooses)
                    label = 'Processing mash', -- progressCircle label
                    anim = { -- define animation settings
                        anim = 'anim@amb@board_room@supervising@', -- animation name
                        dict = 'think_01_hi_amy_skater_01', -- animation dict name
                        flag = 49, -- flag number
                    },
                    prop = { -- define prop settings
                        model = nil, -- prop model
                        bone = nil, -- bone index
                        pos = nil, -- prop position
                        rot = nil, -- prop rotation
                    },
                },
            },
            --add more items as requried
        },
        ['Vodka'] = { -- crafting category name
            ['potatovodka'] = { -- the key is the craftable item name
                recipe = { -- recipe required to craft item 
                    --name is item name
                    --amount is required amount
                    --remove is boolean if that item should be removed (things like tools etc set to false)
                    {name = 'potato', amount = 10, removed = true, },
                    {name = 'vodkamash', amount = 1, removed = true, },
                    {name = 'water', amount = 1, removed = true, },
                    {name = 'demijohn', amount = 1, removed = true, },
                },
                returned = { -- define return amount
                    amount = 1, -- amount of crafted item given (this is the base amount if using XP as the XP level will determine the reward amount)
                },
                progress = { -- define progressCircle settings
                    duration = 5000, --progressCircle duration to craft the item (multiplied by the amount player chooses)
                    label = 'Distilling Vodka', -- progressCircle label
                    anim = { -- define animation settings
                        anim = 'anim@amb@board_room@supervising@', -- animation name
                        dict = 'think_01_hi_amy_skater_01', -- animation dict name
                        flag = 49, -- flag number
                    },
                    prop = { -- define prop settings
                        model = nil, -- prop model
                        bone = nil, -- bone index
                        pos = nil, -- prop position
                        rot = nil, -- prop rotation
                    },
                },
            },
            --add more items as requried
        },
        --add more categories as required
    },
}
```
