This commit is contained in:
sainagh
2026-07-25 16:18:14 -05:00
parent 3533ad27ec
commit 5463fe8373
3932 changed files with 5500 additions and 211408 deletions
-19
View File
@@ -1,19 +0,0 @@
#reloadable
import crafttweaker.entity.IEntityLivingBase;
val HP_THRESHOLD = 100000;
events.onPlayerAttackEntity(function(event as crafttweaker.event.PlayerAttackEntityEvent) {
if ((isNull(event.player.currentItem))) {
return;
}
if (!((event.player.currentItem.matches(<bloodarsenal:glass_dagger_of_sacrifice>)) || (event.player.currentItem.matches(<bloodmagic:dagger_of_sacrifice>)))) {
return;
}
if (event.target instanceof IEntityLivingBase) {
val target as IEntityLivingBase = event.target;
if(target.maxHealth >= HP_THRESHOLD) {
event.cancel();
}
}
});