Sign in to follow this  
March-Isa

Uncraftable+infinite durability starting item?

Recommended Posts

March-Isa    2

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!

Share this post


Link to post
Share on other sites
Lumina    2153

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.

Share this post


Link to post
Share on other sites
Amalleus    13

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.

Share this post


Link to post
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
Sign in to follow this