Skip to content

Instantly share code, notes, and snippets.

@unascribed
Created November 13, 2014 20:35
Show Gist options
  • Save unascribed/736186c20af87b78f986 to your computer and use it in GitHub Desktop.
Save unascribed/736186c20af87b78f986 to your computer and use it in GitHub Desktop.
@Override
public Multimap getAttributeModifiers(ItemStack stack) {
Multimap multimap = super.getAttributeModifiers(stack);
double damage = /* ... */;
multimap.put(SharedMonsterAttributes.attackDamage.getAttributeUnlocalizedName(),
new AttributeModifier(field_111210_e, "<My item> damage modifier", damage, 0));
return multimap;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment