aikawayumi Posted August 18, 2023 Share Posted August 18, 2023 I'm trying to create a custom healing item which acts similar to a honey poultice. the only difference is that, it does not stack in inventory (poultice uses has 40) but has limited uses, say at least 4 uses before it turns to a different item that can't be used unless cleaned (i.e washed in pond) I tried using honey poultice as reference. This though shows it is using the "healer" component. Thing is, that component destroys 1 stack of that item after a use. When I tried following that by creating my own custom healer component to remove the code that removes 1 stack, my item lost its ability to be used as a healing item. As if the component does not exist Link to comment https://forums.kleientertainment.com/forums/topic/150490-custom-healing-item-that-does-not-stack-has-finite-uses-and-shows-durability-instead/ Share on other sites More sharing options...
Merkyrrie Posted August 20, 2023 Share Posted August 20, 2023 On 8/18/2023 at 9:47 AM, aikawayumi said: When I tried following that by creating my own custom healer component to remove the code that removes 1 stack, my item lost its ability to be used as a healing item. As if the component does not exist This is likely because your custom component has no actual ties to an Action to be done. There is a "Heal" action tied to the healer component that allows those items to clicked on an used in that way, which wouldn't exist for a new component. You would have to add a component action in your modmain so the item (and anything else with the new component) can be used. Link to comment https://forums.kleientertainment.com/forums/topic/150490-custom-healing-item-that-does-not-stack-has-finite-uses-and-shows-durability-instead/#findComment-1660313 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