mirror of
https://github.com/jimathy/jim-consumables.git
synced 2026-08-17 06:26:03 +01:00
Update item example snippet
This commit is contained in:
@@ -42,6 +42,10 @@ To add an item, you only need to add a new item table in the Config.Consumables
|
|||||||
heal = 0, -- Set amount to heal by after consuming
|
heal = 0, -- Set amount to heal by after consuming
|
||||||
armor = 5, -- Amount of armor to add
|
armor = 5, -- Amount of armor to add
|
||||||
type = "food", -- Type: "alcohol" / "drink" / "food"
|
type = "food", -- Type: "alcohol" / "drink" / "food"
|
||||||
|
returnItem = { -- Item that will be given when the item is used
|
||||||
|
item = "plastic", -- eg. Plastic bottles can give "plastic"
|
||||||
|
amount = 1,
|
||||||
|
},
|
||||||
stats = {
|
stats = {
|
||||||
screen = "rampage", -- The screen effect to be played when after consuming the item
|
screen = "rampage", -- The screen effect to be played when after consuming the item
|
||||||
effect = "heal", -- The status effect given by the item, "heal" / "stamina"
|
effect = "heal", -- The status effect given by the item, "heal" / "stamina"
|
||||||
|
|||||||
Reference in New Issue
Block a user