else if(item == Items.minecart) return new EntityMinecartEmpty(worldObj);
else if(item == Items.chest_minecart) return new EntityMinecartChest(worldObj);
else if(item == Items.furnace_minecart) return new EntityMinecartFurnace(worldObj);
else if(item == Items.hopper_minecart) return new EntityMinecartHopper(worldObj);
else if(item == Items.tnt_minecart) return new EntityMinecartTNT(worldObj);
else if(item == Items.boat) return new EntityBoat(worldObj);
}
EntityItem item = new EntityItem(worldObj);
item.setEntityItemStack(inventory[0].copy());
item.age = 4800; // 1200 ticks left to live, = 60s.