Create new item drink

how to create new drinkable item!

You can add any drink in config.lua look for

  • name

    • The name is the item name (not the label) so whatever item name you put there will get registered to that specific item (on standalone it will be command so example: /item)

  • numbersOfSips

    • The number of sips is how many times the player can sip from the bottle he holds.

  • eachSipGiveDrunk

    • This is how much percentage of alcohol each sip gives to the player

{
    name = "beer",
    numbersOfSips = 5, -- max 5 sips then the vodka bottle will be empty.
    eachSipGiveDrunk = 2, -- 2 * 5 = 10% drunk from one beer if he drinks whole
    attachmentInfo = DefaultAttachmentPropertiesOfItem,
    
    -- after finished drinking this will insta remove bottle he is holding
    removeBottle = false,    
},

Example of the config:

-- Configurable drunk list
-- here you can add your own item that can be drinkable
Config.DrunkList = {
    {
        name = "beer",
        numbersOfSips = 5, -- max 5 sips then the vodka bottle will be empty.
        eachSipGiveDrunk = 2, -- 2 * 5 = 10% drunk from one beer if he drinks whole
        attachmentInfo = DefaultAttachmentPropertiesOfItem,

        -- this is optional if its commented out nothing will be given to player
        -- will not work on standalone
        --giveEmptyBottle = "bread",        
    },
    -------
    {
        name = "another item example",
        numbersOfSips = 5, -- max 5 sips then the alcohol bottle will be empty.
        eachSipGiveDrunk = 2, -- 2 * 5 = 10% drunk from one beer if he drinks whole
        attachmentInfo = DefaultAttachmentPropertiesOfItem,

        -- this is optional if its commented out nothing will be given to player
        -- will not work on standalone
        --giveEmptyBottle = "bread",        
    },
    -------
    {
        name = "yet again another drink!",
        numbersOfSips = 5, -- max 5 sips then the alcohol bottle will be empty.
        eachSipGiveDrunk = 2, -- 2 * 5 = 10% drunk from one beer if he drinks whole
        attachmentInfo = DefaultAttachmentPropertiesOfItem,

        -- this is optional if its commented out nothing will be given to player
        -- will not work on standalone
        --giveEmptyBottle = "bread",        
    },
}

Last updated