generated from Team-Abode/abode-template
-
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.
- Loading branch information
Showing
9 changed files
with
45 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,6 @@ | ||
### Gameplay Changes | ||
* Netherite Shield enchantability has been reduced. `20 -> 15` | ||
* Barbed durability damage has been reduced. `2 -> 1` | ||
* Barbed success chance has been increased. `20% -> 33%` | ||
* Barbed damage can now be inflicted from ranged attacks. | ||
* Added the "Attacks Blocked by Shield" stat. | ||
* Added the "Attacks Parried by Shield" stat. | ||
|
||
### Config Changes | ||
* The enchantability of the Shield and Netherite Shield have been made configurable. | ||
* Configurations for Pummeling and Barbed and projectile deflection strength have been removed. | ||
|
||
### Technical Changes | ||
Guarding now uses 1.21's data driven enchantments, for this reason, several configurations were removed in favor of this new system. | ||
|
||
Added 3 new enchantment effect components: | ||
|
||
`guarding:shield_blocked`: Effects applying after an attack is blocked. | ||
* Condition Context: Damage Parameters | ||
* Effect: Entity Effect | ||
* Additional fields: | ||
- `cancel_on_parry`: When true, stops the effects from being applied when a parry is landed | ||
- `affected`: A specifier for whom the effect is applied to. Possible values are `attacker`, `damaging_entity`, and `victim` | ||
|
||
`guarding:shield_parried`: Effects applying after an attack is parried. | ||
* Condition Context: Damage Parameters | ||
* Effect: Entity Effect | ||
* Additional fields: | ||
- `affected`: A specifier for whom the effect is applied to. Possible values are `attacker`, `damaging_entity`, and `victim` | ||
|
||
`guarding:shield_knockback`: Effects for the amount of knockback to deal when an attack is blocked. | ||
* Condition Context: Damage Parameters | ||
* Effect: Value Effect | ||
### Fixes | ||
* Fixed an issue where players wouldn't receive knockback from parries. |
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
22 changes: 22 additions & 0 deletions
22
src/main/java/com/teamabode/guarding/core/registry/GuardingStats.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,22 @@ | ||
package com.teamabode.guarding.core.registry; | ||
|
||
import com.teamabode.guarding.Guarding; | ||
import net.minecraft.core.Registry; | ||
import net.minecraft.core.registries.BuiltInRegistries; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.stats.StatFormatter; | ||
import net.minecraft.stats.Stats; | ||
|
||
public class GuardingStats { | ||
public static final ResourceLocation ATTACKS_BLOCKED_BY_SHIELD = register("attacks_blocked_by_shield", StatFormatter.DEFAULT); | ||
public static final ResourceLocation ATTACKS_PARRIED_BY_SHIELD = register("attacks_parried_by_shield", StatFormatter.DEFAULT); | ||
|
||
private static ResourceLocation register(String name, StatFormatter format) { | ||
ResourceLocation location = Guarding.id(name); | ||
Registry.register(BuiltInRegistries.CUSTOM_STAT, location, location); | ||
Stats.CUSTOM.get(location, format); | ||
return location; | ||
} | ||
|
||
public static void init() {} | ||
} |
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