-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c054895
commit 87ccc0a
Showing
19 changed files
with
131 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/java/com/sammy/malum/common/enchantment/ReplenishingEnchantment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.sammy.malum.common.enchantment; | ||
|
||
import com.sammy.malum.registry.common.item.*; | ||
import net.minecraft.world.entity.*; | ||
import net.minecraft.world.item.enchantment.*; | ||
|
||
public class ReplenishingEnchantment extends Enchantment { | ||
public ReplenishingEnchantment() { | ||
super(Rarity.UNCOMMON, EnchantmentRegistry.STAFF, new EquipmentSlot[]{EquipmentSlot.MAINHAND, EquipmentSlot.OFFHAND}); | ||
} | ||
|
||
@Override | ||
public int getMaxLevel() { | ||
return 5; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...main/java/com/sammy/malum/common/item/curiosities/curios/soulward/CurioLimitlessBelt.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.sammy.malum.common.item.curiosities.curios.soulward; | ||
|
||
import com.google.common.collect.*; | ||
import com.sammy.malum.common.capability.*; | ||
import com.sammy.malum.common.item.curiosities.curios.*; | ||
import com.sammy.malum.config.*; | ||
import com.sammy.malum.core.handlers.*; | ||
import com.sammy.malum.core.systems.item.*; | ||
import com.sammy.malum.registry.common.*; | ||
import net.minecraft.world.damagesource.*; | ||
import net.minecraft.world.entity.*; | ||
import net.minecraft.world.entity.ai.attributes.*; | ||
import net.minecraft.world.entity.player.*; | ||
import net.minecraft.world.item.*; | ||
import net.minecraftforge.event.entity.living.*; | ||
import team.lodestar.lodestone.registry.common.tag.*; | ||
import top.theillusivec4.curios.api.*; | ||
|
||
public class CurioLimitlessBelt extends MalumCurioItem implements IMalumEventResponderItem { | ||
|
||
public CurioLimitlessBelt(Properties builder) { | ||
super(builder, MalumTrinketType.VOID); | ||
} | ||
|
||
@Override | ||
public float overrideSoulwardDamageAbsorbPercentage(LivingHurtEvent event, LivingEntity wardedEntity, ItemStack stack, float original) { | ||
if (event.getSource().is(LodestoneDamageTypeTags.IS_MAGIC)) { | ||
return CommonConfig.SOUL_WARD_MAGIC.getConfigValue().floatValue(); | ||
} | ||
return IMalumEventResponderItem.super.overrideSoulwardDamageAbsorbPercentage(event, wardedEntity, stack, original); | ||
} | ||
|
||
@Override | ||
public void addAttributeModifiers(Multimap<Attribute, AttributeModifier> map, SlotContext slotContext, ItemStack stack) { | ||
addAttributeModifier(map, AttributeRegistry.SOUL_WARD_CAP.get(), uuid -> new AttributeModifier(uuid, | ||
"Curio Soul Ward Capacity", 1f, AttributeModifier.Operation.MULTIPLY_TOTAL)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
.../java/com/sammy/malum/common/item/curiosities/curios/soulward/CurioReinforcementRing.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.sammy.malum.common.item.curiosities.curios.soulward; | ||
|
||
import com.google.common.collect.*; | ||
import com.sammy.malum.common.capability.*; | ||
import com.sammy.malum.common.item.curiosities.curios.*; | ||
import com.sammy.malum.core.handlers.*; | ||
import com.sammy.malum.core.systems.item.*; | ||
import com.sammy.malum.registry.common.*; | ||
import net.minecraft.world.damagesource.*; | ||
import net.minecraft.world.entity.ai.attributes.*; | ||
import net.minecraft.world.entity.player.*; | ||
import net.minecraft.world.item.*; | ||
import net.minecraftforge.event.entity.living.*; | ||
import team.lodestar.lodestone.registry.common.tag.*; | ||
import top.theillusivec4.curios.api.*; | ||
|
||
public class CurioReinforcementRing extends MalumCurioItem { | ||
|
||
public CurioReinforcementRing(Properties builder) { | ||
super(builder, MalumTrinketType.ORNATE); | ||
} | ||
|
||
@Override | ||
public void addAttributeModifiers(Multimap<Attribute, AttributeModifier> map, SlotContext slotContext, ItemStack stack) { | ||
addAttributeModifier(map, AttributeRegistry.SOUL_WARD_CAP.get(), uuid -> new AttributeModifier(uuid, | ||
"Curio Soul Ward Capacity", 3f, AttributeModifier.Operation.ADDITION)); | ||
addAttributeModifier(map, AttributeRegistry.SOUL_WARD_STRENGTH.get(), uuid -> new AttributeModifier(uuid, | ||
"Curio Soul Ward Strength", 1f, AttributeModifier.Operation.ADDITION)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-3 Bytes
(99%)
src/main/resources/assets/malum/textures/item/belt_of_the_magebane.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-12 Bytes
(98%)
src/main/resources/assets/malum/textures/item/necklace_of_blissful_harmony.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+417 Bytes
src/main/resources/assets/malum/textures/item/ring_of_reinforcement.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters