March-Isa Posted March 5, 2017 Share Posted March 5, 2017 Hello, forums! I'm currently trying my hand at creating a character mod: I need something akin to Lucy the Axe in that it's uncraftable and that it has no durability limit (two necklaces, no special effects as of now). The character should start with those in the inventory, but there's also other items (but it also has to serve a purpose; in this case, it's an infinite-use sewing kit). How should I code this, especially in modmain.lua where I think you need the recipes for all custom items? Thank you! Link to comment Share on other sites More sharing options...
Lumina Posted March 5, 2017 Share Posted March 5, 2017 For the no durability, it should be easy, you could simply not put durability on item when you make the prefab. Starting with items in inventory is pretty simple if i'm not wrong, don't have the code here but should be doable. Link to comment Share on other sites More sharing options...
Amalleus Posted March 6, 2017 Share Posted March 6, 2017 1. don't put component ("finiteuses") on your weapon and it will be infinite. 2. put your item prefab in your character inventory on start. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now