Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onMinecartHit(EntityDamageByEntityEvent e) {
- if (e.getEntity() instanceof Minecart
- && e.getDamager().getType() == EntityType.SNOWBALL)
- e.setCancelled(true);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement