Jump to content

How does the AttributeSystem work?


WorldsEnder

Recommended Posts

Hi guys,

as of the new update for 1.6 some code changed. One of these changes is that the Entity-sensitive method getDamage(...) for example swords got removed. Also a new method, not deobfuscated yet, has been introduced. (Item#func_111205_h()). You return a Multimap<String, AttributeModifier>. The sword for example puts a new entry in there: .put("generic.attackDamage", new AttributeModifier(..., ..., (double)this.weaponDamage, 0). This means what you guess when first looking at it: The sword damages with its attackDamage (normal damage). Done. Easy. The problem now is that there is no way known to me that this is entity-sensitive. At first I thought that maybe all entries of the map are passed to the entity but no. Putting something else than "generic.attackDamage" in there doesn't seem to affect anything. Do you know any solution? Or is this something not implemented?

 

Looking forward to your answers :) Ty

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.