Files
TinkersConstruct/src/main/java/tconstruct/library/util/PiercingEntityDamage.java
T
DrParadox7 7ff7f25f73 Mod Friendly Piercing (Rapier, Arrow & Bolts) (#60)
* Mod Friendly piercing

Piercing damage converted to bonus damage equivalent to victim's armor protection (capped at diamond armor).

This prevents rapiers from bypassing immunities.

* Run SpotlessApply

* Delete commented out code
2022-12-27 09:11:45 +01:00

11 lines
277 B
Java

package tconstruct.library.util;
import net.minecraft.entity.Entity;
import net.minecraft.util.EntityDamageSource;
public class PiercingEntityDamage extends EntityDamageSource {
public PiercingEntityDamage(String str, Entity entity) {
super(str, entity);
}
}