Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (entity instanceof Egg) {
- for(Entity e : entity.getNearbyEntities(5, 5, 5)){
- if (e instanceof LivingEntity) {
- LivingEntity le = (LivingEntity) e;
- le.addPotionEffect(PotionEffectType.BLINDNESS.createEffect(400, 2));
- le.addPotionEffect(PotionEffectType.POISON.createEffect(800, 1));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment