@@ -0,0 +1,1910 @@
+package com.tehbeard.enchancedadv.commands;%0A%0Aimport java.util.List;%0A%0Aimport net.minecraft.command.CommandBase;%0Aimport net.minecraft.command.ICommandSender;%0Aimport net.minecraft.command.WrongUsageException;%0Aimport net.minecraft.entity.Entity;%0Aimport net.minecraft.entity.player.EntityPlayer;%0Aimport net.minecraft.util.AxisAlignedBB;%0A%0A/**%0A * Adds the /velocity command%0A * @author James%0A *%0A */%0Apublic class WipeEntitiesCommand extends CommandBase%7B%0A%0A%09@Override%0A%09public String getCommandName() %7B%0A%09%09return %22wipeentities%22;%0A%09%7D%0A%0A%09public int getRequiredPermissionLevel()%0A%09%7B%0A%09%09return 2;%0A%09%7D%0A%0A%0A%09@Override%0A%09public String getCommandUsage(ICommandSender icommandsender) %7B%0A%09%09return %22command.wipeentities.usage%22;%0A%09%7D%0A%0A%09@Override%0A%09public void processCommand(ICommandSender sender, String%5B%5D args) %7B%0A%09%09double xPos = Double.parseDouble(args%5B0%5D);%0A%09%09double yPos = Double.parseDouble(args%5B1%5D);%0A%09%09double zPos = Double.parseDouble(args%5B2%5D);%0A%09%09double radius  = Double.parseDouble(args%5B3%5D);%0A%09%09%0A%09%09double distSqrd = radius * radius; // Use squared radius to distance check quicker instead of sqrting%0A%09%09%0A%09%09AxisAlignedBB bb = AxisAlignedBB.getBoundingBox(%0A%09%09%09%09xPos,%0A%09%09%09%09yPos,%0A%09%09%09%09zPos,%0A%09%09%09%09xPos,%0A%09%09%09%09yPos,%0A%09%09%09%09zPos%0A%09%09%09%09);%0A%09%09bb.expand(radius, radius, radius);%0A%09%09@SuppressWarnings(%22unchecked%22)%0A%09%09List%3CEntity%3E found = sender.getEntityWorld().getEntitiesWithinAABB(Entity.class, bb);%0A%09%09%0A%09%09for(Entity e : found)%7B%0A%09%09%09if(distanceSqrd(e.posX,e.posY,e.posZ,xPos,yPos,zPos) %3C=distSqrd)%7B%0A%09%09%09%09//We want this.%0A%09%09%09%09if(e instanceof EntityPlayer)%7Bcontinue;%7D //ignore players%0A%09%09%09%09%0A%09%09%09%09//TODO - Entity Type selection%0A%09%09%09%09e.setDead();%0A%09%09%09%7D%0A%09%09%7D%0A%0A%09%09throw new WrongUsageException(getCommandUsage(sender));%0A%0A%09%7D%0A%09%0A%09private double distanceSqrd(double x1,double y1,double z1,double x2,double y2,double z2)%7B%0A%09%09return (x1 - x2) * (x1 - x2) +%0A%09%09%09   (y1 - y2) * (y1 - y2) +%0A%09%09%09   (z1 - z2) * (z1 - z2);%0A%09%7D%0A%0A%09@Override%0A%09public int compareTo(Object arg0) %7B%0A%09%09return 0;%0A%09%7D%0A%0A%7D%0A%0A

Work on wipeentities command (clears area of stuff)