Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void addEffectsToBees(List<CustomBeeEntity> bees) {
- if (!this.world.isRemote && doEffects()) {
- for (BeeEntity mob : bees) {
- for (BeeconEffect effect : effects) {
- if (!effect.active) continue;
- System.out.println("adding effect");
- mob.addPotionEffect(new EffectInstance(effect.effect, 120, 0, true, true));
- }
- }
- for (PlayerEntity player : world.getEntitiesWithinAABB(PlayerEntity.class, getEffectBox())) {
- for (BeeconEffect effect : effects) {
- if (!effect.active) continue;
- player.addPotionEffect(new EffectInstance(effect.effect, 120, 0, true, true));
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment