Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.16.5]The difference between attribute and capability


Recommended Posts

I have confused between attribute and capability

Should i add new custom attribute to vanilla entity?

If i want add a custom attribute(e.g. add Mental state as a second Health Bar) to LivingEntity, whitch should i use?

I want vanilla Effect system work with my custom attribute

sorry for my english 😆

Edited by tt36999
add mc version to title
Link to comment
Share on other sites

  • tt36999 changed the title to [1.16.5]The difference between attribute and capability

Capabilities are a generic system that allow things (entities, tile entity, etc.) to provide an API as well as store data.

Attributes are simply a single double value. Additionally, attributes can be influenced by various things: currently active potion effects, the currently held items or just directly applied attribute modifiers. All these modifiers work together to produce the final value for an attribute. So in your case it sounds like an attribute might be a good choice.

  • Thanks 1
Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.