Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/13/23 in all areas

  1. We don't write your mod for you. Nor do we teach java or basic logic. You also need to learn how to use your IDE by the sounds of it? Here is some untested pseudo code that checks for indirect (e.g. projectile/arrow) damage from skeletons @Override public int getDamageProtection(int level, DamageSource source) { if (source.isBypassInvul()) return 0; if (source instanceof IndirectEntityDamageSource indirect && indirect.getEntity() instanceof Skeleton) { return calculateProtection(); } return 0; } Damage protection is a flat addition calculation. I would say look at the vanilla code for the logic, but you don't seem to know how to do that?
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.