Jump to content

[Help] Item Distribution


ChilledHobo

Recommended Posts

I am currently working on a mod that adds a new item (a book) with a custom sprite and I don't know how to distribute the item in the world. I would like it to spawn in shelves and book cases but I don't know how to. So can you kind people help me out with how to distribute the item in the world? I know I have to make a .lua script in the sever folder and that's about it, I don't actually know the code to use. So if you all could help me out and provide a code or point me to a code that would help a lot. Thanks for your time!

 

Also here the new item I created in case you need that.

 

module NewJunkMod
{
        item BlueBook
 {
  Weight = 0.5,
  Type = Literature,
  UnhappyChange = -40,
  DisplayName = Blue Book,
  StressChange = -40,
  Icon = blue_book.png,
  BoredomChange = -50,
 }
}

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