Posted July 23, 20196 yr Hi there, I'm Moonbad. How does one implement a custom variable that can have different values throughout different instances of the same item? I created a Class called ItemAbsorber that increases it's "Charge" variable over time, but all instances of this item have the same "Charge", as if they where one. How do I make Minecraft understand that each item has it's own "Charge"? EDIT (1): Messing with the item's durability does not seem to solve the issue. Edited July 23, 20196 yr by Doctor Moonbad
July 23, 20196 yr Author 3 hours ago, diesieben07 said: You can use the stack metadata ("damage value") for simple things. The modern approach is to use capabilities. I see. Thank you Reality Controller!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.