Jump to content

I want create a edible item

Recommended Posts

Ok. I don't know what exhausted items is.

So the first step would be to create your edible item. I suggest you to take example on mod like "waiter 101" ( https://steamcommunity.com/sharedfiles/filedetails/?id=381565292 )

This way you have a template to follow (modded items are a little different to game item, so it will be easier).

When your item is done, you probably have to use addprefabpostinit to add the item to the drop list of the structure you want.


Take a look here for some example, you'll see a prefabpostinit function here.

Link to comment
Share on other sites


local function OnEat(inst, food)
    if food.prefab == "redgem" 
    or food.prefab == "bluegem" 

Will give you 100 hunger and 50 sanity for eating a redgem or a bluegem. Just edit it as you will :p

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...