Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (shouldAltar == 1)
- {
- if (player.isPotionActive(AlchemicalWizardry.customPotionSoulFray))
- {
- findAndFillAltar(world, player, 1);
- } else
- {
- float maxHealth = player.getMaxHealth();
- int divisor = ThreadLocalRandom.current().nextInt(1, 11);
- //int senight = divisor + 1;
- float altarAddVal = maxHealth / divisor;
- int altarAdd = Math.round(altarAddVal);
- findAndFillAltar(world, player, altarAdd);
- }
- if (player.getHealth() <= 0.001f)
- {
- player.onDeath(DamageSource.generic);
- }
- return stack;
Add Comment
Please, Sign In to add comment