Skip to content

Commit

Permalink
Use player attack damage type tag for standard attack.
Browse files Browse the repository at this point in the history
  • Loading branch information
Provismet committed Jul 25, 2024
1 parent 7a6e40d commit 5712734
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"values": [
"minecraft:player_attack",
{
"id": "#minecraft:is_player_attack",
"required": false
},
"minecraft:mob_attack",
"minecraft:mob_attack_no_aggro"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public DamageTypeTagGenerator (FabricDataOutput output, CompletableFuture<Regist
@Override
protected void configure (RegistryWrapper.WrapperLookup wrapperLookup) {
getOrCreateTagBuilder(CPCDamageTypeTags.STANDARD_ATTACK)
.add(DamageTypes.PLAYER_ATTACK)
.addOptionalTag(DamageTypeTags.IS_PLAYER_ATTACK)
.add(DamageTypes.MOB_ATTACK)
.add(DamageTypes.MOB_ATTACK_NO_AGGRO);

Expand Down

0 comments on commit 5712734

Please sign in to comment.