Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void submissiveHurt(LivingHurtEvent event)
- {
- if (TragicConfig.allowSubmission && event.entityLiving.isPotionActive(TragicPotion.Submission))
- {
- double x = (event.entityLiving.getActivePotionEffect(TragicPotion.Submission).getAmplifier() + 2) / 3;
- if (x <= 0)
- {
- x = 0.1;
- }
- if (x > 3.0)
- {
- x = 3.0;
- }
- float f = (float) (event.ammount * x);
- event.ammount += f;
- ...
- }
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment