-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
0097cbf
commit ccd81e5
Showing
31 changed files
with
271 additions
and
173 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
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
6 changes: 6 additions & 0 deletions
6
src/generated/resources/assets/malum/models/item/ring_of_manaweaving.json
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,6 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "malum:item/ring_of_manaweaving" | ||
} | ||
} |
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
src/generated/resources/data/malum/recipes/spirit_infusion/ring_of_manaweaving.json
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 @@ | ||
{ | ||
"type": "malum:spirit_infusion", | ||
"extra_items": [ | ||
{ | ||
"count": 6, | ||
"item": "malum:soul_stained_steel_plating" | ||
}, | ||
{ | ||
"count": 4, | ||
"item": "malum:processed_soulstone" | ||
} | ||
], | ||
"input": { | ||
"count": 1, | ||
"item": "malum:gilded_ring" | ||
}, | ||
"output": { | ||
"item": "malum:ring_of_manaweaving" | ||
}, | ||
"spirits": [ | ||
{ | ||
"type": "arcane", | ||
"count": 16 | ||
}, | ||
{ | ||
"type": "earthen", | ||
"count": 16 | ||
} | ||
] | ||
} |
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
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
.../com/sammy/malum/common/item/curiosities/curios/sets/alchemical/CurioManaweavingRing.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.sets.alchemical; | ||
|
||
import com.sammy.malum.common.capability.*; | ||
import com.sammy.malum.common.item.*; | ||
import com.sammy.malum.common.item.curiosities.curios.*; | ||
import com.sammy.malum.core.handlers.*; | ||
import net.minecraft.network.chat.*; | ||
import net.minecraft.world.entity.*; | ||
import net.minecraft.world.entity.player.*; | ||
|
||
import java.util.function.*; | ||
|
||
public class CurioManaweavingRing extends MalumCurioItem implements IMalumEventResponderItem { | ||
public CurioManaweavingRing(Properties builder) { | ||
super(builder, MalumTrinketType.ALCHEMICAL); | ||
} | ||
|
||
@Override | ||
public void addExtraTooltipLines(Consumer<Component> consumer) { | ||
consumer.accept(positiveEffect("spirits_weave_mana")); | ||
} | ||
|
||
@Override | ||
public void pickupSpirit(LivingEntity collector, double arcaneResonance) { | ||
if (collector instanceof Player player) { | ||
var handler = MalumPlayerDataCapability.getCapability(player).soulWardHandler; | ||
handler.soulWardProgress -= SoulWardHandler.getSoulWardCooldown(player) * arcaneResonance; | ||
} | ||
} | ||
} |
Oops, something went wrong.