SHARE
TWEET

Untitled

a guest Aug 23rd, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //    @EventHandler
  2. //    public void onEntityTarget(EntityTargetLivingEntityEvent e) {
  3. //        if (Objects.requireNonNull(e.getTarget()).getType().equals(EntityType.PLAYER)) {
  4. //            IronGolem ironGolem = (IronGolem) e.getEntity();
  5. //            Player player = (Player) e.getTarget();
  6. //
  7. //            if (!ironGolem.getNearbyEntities(15, 5, 15).contains(player)) {
  8. //                e.setCancelled(true);
  9. //            }
  10. //
  11. //            if (!player.getGameMode().equals(GameMode.SURVIVAL)) {
  12. //                e.setCancelled(true);
  13. //            }
  14. //        }
  15. //
  16. //        if (Objects.requireNonNull(e.getTarget()).getType().equals(EntityType.ZOMBIE)) {
  17. //            e.setCancelled(true);
  18. //        }
  19. //    }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top