-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from StellarWitch7/drop-my-stuff-please
- Loading branch information
Showing
13 changed files
with
89 additions
and
4 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
24 changes: 24 additions & 0 deletions
24
src/main/java/dev/enjarai/trickster/misc/ModDamageTypes.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,24 @@ | ||
package dev.enjarai.trickster.misc; | ||
|
||
import dev.enjarai.trickster.Trickster; | ||
import net.minecraft.entity.damage.DamageSource; | ||
import net.minecraft.entity.damage.DamageType; | ||
import net.minecraft.registry.RegistryKey; | ||
import net.minecraft.registry.RegistryKeys; | ||
import net.minecraft.world.World; | ||
|
||
public class ModDamageTypes { | ||
public static final RegistryKey<DamageType> MANA_OVERFLUX = register("mana_overflux"); | ||
|
||
public static DamageSource of(World world, RegistryKey<DamageType> key) { | ||
return new DamageSource(world.getRegistryManager().get(RegistryKeys.DAMAGE_TYPE).entryOf(key)); | ||
} | ||
|
||
private static RegistryKey<DamageType> register(String name) { | ||
return RegistryKey.of(RegistryKeys.DAMAGE_TYPE, Trickster.id(name)); | ||
} | ||
|
||
public static void register() { | ||
|
||
} | ||
} |
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/main/resources/data/minecraft/tags/damage_type/always_hurts_ender_dragons.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 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"trickster:mana_overflux" | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/data/minecraft/tags/damage_type/avoids_guardian_thorns.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 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"trickster:mana_overflux" | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/data/minecraft/tags/damage_type/bypasses_armor.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 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"trickster:mana_overflux" | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/data/minecraft/tags/damage_type/bypasses_effects.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 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"trickster:mana_overflux" | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/data/minecraft/tags/damage_type/bypasses_enchantments.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 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"trickster:mana_overflux" | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/data/minecraft/tags/damage_type/bypasses_resistance.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 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"trickster:mana_overflux" | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/data/minecraft/tags/damage_type/bypasses_shield.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 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"trickster:mana_overflux" | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/data/minecraft/tags/damage_type/no_impact.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 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"trickster:mana_overflux" | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/resources/data/trickster/damage_type/mana_overflux.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,5 @@ | ||
{ | ||
"exhaustion": 0.1, | ||
"message_id": "mana_overflux", | ||
"scaling": "never" | ||
} |