Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // @EventHandler
- // public void onEntityTarget(EntityTargetLivingEntityEvent e) {
- // if (Objects.requireNonNull(e.getTarget()).getType().equals(EntityType.PLAYER)) {
- // IronGolem ironGolem = (IronGolem) e.getEntity();
- // Player player = (Player) e.getTarget();
- //
- // if (!ironGolem.getNearbyEntities(15, 5, 15).contains(player)) {
- // e.setCancelled(true);
- // }
- //
- // if (!player.getGameMode().equals(GameMode.SURVIVAL)) {
- // e.setCancelled(true);
- // }
- // }
- //
- // if (Objects.requireNonNull(e.getTarget()).getType().equals(EntityType.ZOMBIE)) {
- // e.setCancelled(true);
- // }
- // }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement