Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public Multimap<String, AttributeModifier> getAttributeModifiers(ItemStack stack){
- double damageModifier = 0;
- if (getCorrectness(stack) > 0.95){
- damageModifier = 1.0;
- }
- else if (getCorrectness(stack) > 0.9){
- damageModifier = 0.95;
- }
- else if (getCorrectness(stack) > 0.85){
- damageModifier = 0.9;
- }
- else if (getCorrectness(stack) > 0.8){
- damageModifier = 0.85;
- }
- else if (getCorrectness(stack) > 0.75){
- damageModifier = 0.8;
- }
- else if (getCorrectness(stack) > 0.7){
- damageModifier = 0.75;
- }
- Multimap modifiers = HashMultimap.create();
- modifiers.put("generic.attackDamage", new AttributeModifier("generic.attackDamage", 9.0*(damageModifier), 0));
- return modifiers;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement