Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void performEffect(LivingEntity entity, int amplifier) {
- if (closestPlayer(entity)) {
- }
- }
- @Override
- public boolean isReady(int duration, int amplifier) {
- if (this == LifeBindingPotion.LIFE_BINDING_EFFECT.get()) {
- int i = 40 >> amplifier;
- if (i > 0) {
- return duration % i == 0;
- } else {
- return true;
- }
- }
- return true;
- }
- public boolean closestPlayer(LivingEntity entity) {
- entity.world.getClosestPlayer(entity, 3.0D);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement