Jump to content

Recommended Posts

There is a little bug I found when I was making my own mod... I'm making a lightning sword... It will be charged by lightning, and uses a finiteuses component to count usage... I maked it unbreakable, so after finiteuses component reaches 0 uses, it removes finiteuses and it can be charged again...

 

The problem is that removing finiteuses component doesn't remove a big "0%" from the inventory image...

I was trying to fix it by adding a OnRemoveFromEntity() function, but I could not come up with the solution...

Link to comment
https://forums.kleientertainment.com/forums/topic/33879-finiteuses-and-item-tile/
Share on other sites

If it has infinite uses, why don't you just remove the component that counts down its usage?

 

The whole idea is in other thread.

It is a sword that has infinite uses but get charged by lightning and finiteuses component is used to count uses for charged sword then component is removed when charges reach 0%, and that big 0% stays there until you pick up and put away the sword to other slot in invenotry.

 

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