Jump to content

Character Custom Items?

Recommended Posts

Hello everyone.
The last week I've created a custom character. But I want to put a custom item for it. Is there a way to give him a custom item,hat,armor, etc? 

For example, my character its a miner, i want to put his own helmet and a shovel, it its possible, and how?

Thanks :)

Link to comment
Share on other sites


Your question is related to modding, there is a special forum about modding. Also, you posted it twice.


To answer, it's possible to make your character able to craft his own helmet, and to give it this custom helmet and a shovel at the start of the game. I suggest you look at other character prefabs for example of the "start_inv" function.

Something like this should do :

-- Custom starting items
local start_inv = {
return MakePlayerCharacter("yourcharactername", prefabs, assets, common_postinit, master_postinit, start_inv)

For the recipe, you need to have a custom tag for your character. Then the recipe will use this tag to make the character the only one able to craft it. You could look at scripts/recipes.lua for examples.

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...