Skip to content

Commit

Permalink
Whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
IcarussOne committed Oct 1, 2024
1 parent 3e909f6 commit 30469e8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/main/java/twilightforest/entity/EntityTFLoyalZombie.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ protected void applyEntityAttributes() {
this.getEntityAttribute(SharedMonsterAttributes.ARMOR).setBaseValue(3.0D);
}

@Override
public boolean attackEntityAsMob(Entity entity) {
boolean success = entity.attackEntityFrom(DamageSource.causeMobDamage(this), 5);

if (success) {
entity.motionY += 0.2;
}

return success;
}

/*@Override
public void onLivingUpdate() {
// once our damage boost effect wears out, start to burn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public ActionResult<ItemStack> onItemRightClick(@Nonnull World world, EntityPlay
}

if (!player.isCreative())
player.getCooldownTracker().setCooldown(this, 200);
player.getCooldownTracker().setCooldown(this, 140);
}

return ActionResult.newResult(EnumActionResult.SUCCESS, stack);
Expand Down

0 comments on commit 30469e8

Please sign in to comment.